/* ===================================================================
   STATION FEEDBACK APP — Design System (placeholder branding)
   Palette:
     --ivory     #FAF7F0  background
     --ink       #23241F  primary text
     --forest    #2F5D50  primary accent (trust, calm)
     --coral     #E8623A  CTA / recording indicator
     --sand      #E4DCC8  borders, muted panels
   Type:
     Display : 'Poppins' (rounded, warm, approachable)
     Body    : 'Inter'
   Signature element: an "inbox" motif — feedback arrives as message
   cards (voice / photo / text) landing in a shared feed, echoing the
   idea of listener voices reaching the station.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --ivory: #FAF7F0;
  --ink: #23241F;
  --forest: #2F5D50;
  --forest-2: #24473D;
  --coral: #E8623A;
  --sand: #E4DCC8;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

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

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  color: var(--ivory);
  padding: 20px 0;
}

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand-logo { height: 40px; width: auto; border-radius: 6px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

nav.main-nav a {
  color: var(--ivory);
  opacity: 0.85;
  margin-left: 20px;
  font-size: 14px;
  text-decoration: none;
}
nav.main-nav a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Hero / listen panel ---------- */
.hero { padding: 36px 0 28px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 36px);
  margin: 0 0 10px;
}

.hero p {
  color: rgba(35,36,31,0.7);
  margin: 0 0 22px;
  max-width: 48ch;
}

.listen-panel {
  background: white;
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.listen-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--coral);
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.listen-btn:hover { background: #d3532c; }

.listen-info .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--forest);
  font-weight: 600;
}
.listen-info .title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }

/* ---------- Section ---------- */
.section { padding: 32px 0; border-top: 1px solid var(--sand); }
.section h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 0 0 6px; }
.section .sub { color: rgba(35,36,31,0.6); font-size: 14px; margin: 0 0 22px; }

/* ---------- Feedback form ---------- */
.tab-row { display: flex; gap: 8px; margin-bottom: 18px; }

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--sand);
  background: white;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.tab-btn.active { background: var(--forest); color: white; border-color: var(--forest); }

.panel-card {
  background: white;
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 22px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(35,36,31,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

input[type=text], textarea {
  width: 100%;
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 16px;
  background: var(--ivory);
}

.record-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.record-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--coral);
  color: white;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.record-btn.recording { animation: pulse-rec 1s ease-in-out infinite; }

@keyframes pulse-rec {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,98,58,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(232,98,58,0); }
}

.record-status { font-size: 13px; color: rgba(35,36,31,0.6); }

.photo-drop {
  border: 2px dashed var(--sand);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: rgba(35,36,31,0.5);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
}
.photo-drop.has-file { border-color: var(--forest); color: var(--forest); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: var(--forest);
  color: white;
  cursor: pointer;
}
.btn:hover { background: var(--forest-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Feed / admin cards ---------- */
.feed { display: flex; flex-direction: column; gap: 14px; }

.fb-card {
  background: white;
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 16px 18px;
}

.fb-card .who {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--forest);
}
.fb-card .when { font-size: 12px; color: rgba(35,36,31,0.45); margin-left: 8px; }
.fb-card .type-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--sand);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
}
.fb-card audio, .fb-card img { max-width: 100%; margin-top: 10px; border-radius: 8px; }
.fb-card p { margin: 10px 0 0; }

.empty-state {
  border: 1px dashed var(--sand);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: rgba(35,36,31,0.5);
  font-size: 14px;
}

/* ---------- Admin stats ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .admin-grid { grid-template-columns: 1fr; } }

.stat-row {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--sand); font-size: 14px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .num { font-family: var(--font-display); font-weight: 700; color: var(--coral); }

.location-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 10px; background: var(--ivory); border-radius: 8px; margin-bottom: 6px; }
.location-row .n { font-weight: 700; color: var(--forest); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 0 50px;
  font-size: 12px;
  color: rgba(35,36,31,0.4);
  text-align: center;
               }
