*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
  background-color: #f0f2f5;
  color: #000;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.flex {
  display: flex;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}
.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* ===== Layout ===== */
header {
  width: 100%;
  padding: 12px 5%;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: fixed;
  top: 0;
}

.brand {
  font-size: 22px;
}

.container {
  margin-top: 60px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
}

/* ===== Card ===== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #d0d0d0;
  flex-shrink: 0;
}

.composer {
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  min-height: 80px;
  font-size: 15px;
  color: #333;
  background: transparent;
}

/* ===== Footer ===== */
.footer {
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.count {
  font-size: 14px;
  color: #666;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.count.warning {
  color: #e07b00;
}
.count.danger {
  color: #cc0000;
}

button#postBtn {
  background-color: #1d9bf0;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button#postBtn:hover:not(:disabled) {
  background-color: #1a8cd8;
}

button#postBtn:disabled {
  background-color: #9fd3f8;
  cursor: not-allowed;
}
