/* StoryReserve 2.0 — Platform Styles */

:root {
  --navy: #1a2f4e;
  --navy-light: #2a4a6e;
  --gold: #d4a843;
  --gold-light: #e8c56f;
  --cream: #faf6f0;
  --cream-dark: #f0ebe3;
  --sage: #4a6b4a;
  --sage-light: #6b8a6b;
  --text: #2d2d2d;
  --muted: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  line-height: 1.3;
}

a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* ─── NAVBAR ─── */
.navbar {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.navbar-brand .logo {
  font-size: 1.6rem;
}

.navbar-brand .name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.navbar-brand .name:hover { color: var(--gold-light); }

.navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-links a {
  color: var(--white);
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-links a:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.1);
}

.navbar-links a.btn-submit {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.navbar-links a.btn-submit:hover {
  background: var(--gold-light);
  color: var(--navy);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero .tagline {
  font-size: 1.3rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  font-style: italic;
}

.hero .verse {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta a {
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}

.hero-cta .btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.hero-cta .btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hero-cta .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.hero-cta .btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ─── FEATURED CAROUSEL ─── */
.featured-section {
  background: var(--white);
  padding: 3rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.featured-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.featured-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.featured-card .cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.featured-card .info {
  padding: 1.2rem 1.5rem 1.5rem;
}

.featured-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}

.featured-card .subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.featured-card .meta {
  font-size: 0.8rem;
  color: var(--sage);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── GENRE CARDS ─── */
.genres-section {
  background: var(--cream);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.genre-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border-top: 4px solid var(--gold);
}

.genre-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-top-color: var(--sage);
}

.genre-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.genre-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.genre-card .count {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ─── WORK CARDS (browse grid) ─── */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.8rem;
}

.work-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.work-card .cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--cream-dark);
}

.work-card .cover-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  font-size: 3rem;
}

.work-card .info {
  padding: 1rem 1.2rem 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.work-card .subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.work-card .meta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.work-card .badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--cream-dark);
  color: var(--muted);
  font-weight: 600;
}

.work-card .badge.genre { background: #e8edf2; color: var(--navy); font-weight: 700; border: 1px solid #d0d8e0; }
.work-card .badge.media { background: #fef3c7; color: #713f12; font-weight: 700; border: 1px solid #fde68a; }
.work-card .badge.age { background: #dcfce7; color: #14532d; font-weight: 700; border: 1px solid #86efac; }

/* Theme tags — fix spacing so they don't run together */
.theme-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: #f0ebe3;
  color: var(--muted);
  font-weight: 600;
  margin: 0.2rem 0.3rem 0.2rem 0;
}

.badge {
  display: inline-block;
  margin: 0.2rem 0.3rem 0.2rem 0;
}

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--text);
  cursor: pointer;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ─── WORK DETAIL PAGE ─── */
.work-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.work-detail .cover-column img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.work-detail .info-column h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.work-detail .info-column .subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.work-detail .badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.work-detail .description {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.work-detail .creator {
  padding: 1rem 1.2rem;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.work-detail .creator strong { color: var(--navy); }

.work-detail .buy-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.work-detail .buy-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.work-detail .audio-player {
  margin: 1.5rem 0;
}

.work-detail .audio-player audio {
  width: 100%;
}

.work-detail .ai-disclosure {
  padding: 1rem 1.2rem;
  background: #f0ebe3;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #6b5a47;
  margin-top: 1.5rem;
  border-left: 3px solid #8B7355;
}

/* ─── ABOUT PAGE ─── */
.about-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.about-section h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-section h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2rem 0 0.8rem;
}

.about-section p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.values-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1.05rem;
}

.values-list li:last-child { border-bottom: none; }

.values-list strong { color: var(--navy); }

/* ─── SUBMIT PAGE ─── */
.submit-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.submit-section h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-align: center;
}

.submit-section .intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.submit-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group label .req { color: #c0392b; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-group .hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.form-actions button {
  padding: 0.9rem 2.5rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-actions button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.submit-success {
  text-align: center;
  padding: 3rem;
}

.submit-success h2 {
  color: var(--sage);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* ─── DONATION BANNER ─── */
.donation-banner {
  background: var(--sage);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.donation-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.donation-banner p {
  opacity: 0.9;
  margin-bottom: 1.2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.donation-banner a {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.donation-banner a:hover {
  background: var(--gold-light);
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

footer .footer-links {
  margin-bottom: 1rem;
}

footer .footer-links a {
  color: rgba(255,255,255,0.8);
  margin: 0 0.8rem;
  font-size: 0.9rem;
}

footer .footer-links a:hover {
  color: var(--gold-light);
}

footer p {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0.3rem 0;
}

footer .ai-note {
  font-size: 0.78rem;
  opacity: 0.5;
  margin-top: 0.5rem;
}

/* ─── DONATE PAGE ─── */
.donate-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.donate-section h1 {
  font-size: 2.5rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.donate-section .intro {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.donate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border-top: 4px solid var(--gold);
}

.donate-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-top-color: var(--sage);
}

.donate-card .amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.donate-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.donate-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.donate-card button {
  padding: 0.7rem 2rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.donate-card:hover button {
  background: var(--gold-light);
}

.donate-info {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.donate-info h3 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 1rem;
}

.donate-info ul {
  list-style: none;
  padding: 0;
  max-width: 500px;
  margin: 0 auto;
}

.donate-info li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.donate-info li:last-child {
  border-bottom: none;
}

.donate-contact {
  text-align: center;
  padding: 1.5rem;
}

.donate-contact p {
  color: var(--muted);
}

/* ─── BIBLE READER ─── */
.bible-reader {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.bible-reader h1 {
  font-size: 2rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.3rem;
}

.bible-reader .subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Bible navigation */
.bible-nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bible-nav select {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--cream);
  cursor: pointer;
  font-family: inherit;
}

.bible-nav select:focus {
  outline: none;
  border-color: var(--gold);
}

.bible-nav button {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.bible-nav button:hover {
  background: var(--navy-light);
}

.bible-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Translation toggle */
.translation-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.translation-toggle button {
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--navy);
  border-radius: 20px;
  background: transparent;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.translation-toggle button.active {
  background: var(--navy);
  color: var(--white);
}

.translation-toggle button:hover:not(.active) {
  background: rgba(26,47,78,0.1);
}

/* Bible text */
.bible-text {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
}

.bible-text .verse {
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
}

.bible-text .verse .vnum {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  vertical-align: super;
  margin-right: 0.3rem;
  min-width: 1.5rem;
  display: inline-block;
}

.bible-text .verse .vtext {
  color: var(--text);
}

.bible-text .chapter-header {
  font-size: 1.8rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Book list grid */
.bible-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.bible-book-card {
  background: var(--white);
  padding: 1.2rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border-top: 3px solid var(--gold);
}

.bible-book-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-top-color: var(--sage);
}

.bible-book-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.bible-book-card .chapters {
  font-size: 0.78rem;
  color: var(--muted);
}

.bible-section-label {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

/* Chapter selector pills */
.chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.chapter-pill {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #ddd;
}

.chapter-pill:hover, .chapter-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Coming soon placeholder */
.coming-soon-box {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon-box .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.coming-soon-box h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.coming-soon-box p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.05rem; }
  
  .navbar-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .navbar-links {
    gap: 0.8rem;
    justify-content: center;
  }
  
  .work-detail {
    grid-template-columns: 1fr;
  }
  
  .work-detail .cover-column {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 3rem; }
  .hero h1 { font-size: 1.5rem; line-height: 1.3; }
  .hero .tagline { font-size: 0.95rem; }
  .container { padding: 1.5rem 1rem; }
  .section-title { font-size: 1.3rem; }
  
  /* Single column cards */
  .browse-grid {
    grid-template-columns: 1fr;
  }
  .work-card .cover {
    height: 180px;
  }
  
  /* Stack navbar */
  .navbar-inner {
    padding: 0.5rem;
  }
  .navbar-links {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
  }
  .navbar-links a {
    padding: 0.3rem 0.5rem;
  }
  
  /* Smaller text in work detail */
  .work-detail h1 {
    font-size: 1.4rem;
  }
  .work-detail .subtitle {
    font-size: 0.95rem;
  }
  .work-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  /* Full-width audio */
  .audio-player audio {
    width: 100%;
  }
  
  /* Kids Bible cards */
  .bible-grid {
    grid-template-columns: 1fr;
  }
  .bible-card .cover {
    height: 160px;
  }
  
  /* Featured cards */
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  /* About page */
  .about-hero h1 {
    font-size: 1.5rem;
  }
  .about-section h2 {
    font-size: 1.2rem;
  }
  
  /* Submit form */
  .form-row {
    gap: 0.5rem;
  }
  input, textarea, select {
    font-size: 16px; /* Prevents iOS zoom */
  }
}
/* ─── Submit Status Messages ─── */
#submit-status.success {
  background: rgba(74, 107, 74, 0.1);
  border: 1px solid var(--sage);
  color: var(--sage);
}

#submit-status.error {
  background: rgba(200, 80, 60, 0.1);
  border: 1px solid #c8503c;
  color: #c8503c;
}


/* Navbar brand link */
.navbar-brand {
  text-decoration: none;
  color: inherit;
}
.navbar-brand:hover {
  text-decoration: none;
  color: inherit;
}


/* ─── Audio Badge for Kids Bible Cards ─── */
.card-cover {
  position: relative;
}

.audio-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  border-radius: 50%;
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 2;
}

/* ─── Audio Player in Story Pages ─── */
audio {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

audio::-webkit-media-controls-panel {
  background: rgba(212, 175, 55, 0.1);
}

/* ─── Audio Player Container ─── */
.audio-player-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.audio-player-container p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
