/* ============================================
   📖 reading.css — Styles specific to Reading page
   ============================================ */

/* 📄 Apply reading-specific theme using a unique body class */
body.reading-mode {
  --bg: #f4f0eb;
  --text: #3a2e2b;
  --primary: #8f4d2d;
  --accent: #af7552;
  --button-bg: #e5d5c4;
  --button-text: #8f4d2d;
}

body.reading-mode.dark {
  --bg: #1f1b18;
  --text: #f3e6db;
  --primary: #a36545;
  --accent: #d4977a;
  --button-bg: #2a241f;
  --button-text: #f8d1b4;
}

/* 🧭 Reading navbar override (already handled in navbar.css)
   but included here for extra isolation if needed */
.reading-navbar {
  background-color: rgba(110, 62, 28, 0.9);
  color: #f5e9dc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.reading-navbar .logo,
.reading-navbar .nav-links a {
  color: #f5e9dc;
  font-weight: 600;
}

.reading-navbar .nav-links a:hover {
  color: #ffd5a5;
}

/* 🎯 Hero section specific to Reading page */
.hero-reading {
  height: 70vh;
  background: url('../images/readingIMG.png') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-reading .overlay {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 3rem;
  border-radius: 12px;
  color: #fff;
  max-width: 700px;
  margin: 0 2rem;
}

.hero-reading .overlay p,
.hero-reading .overlay h1 {
  color: #fff;
} 


.hero-reading h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-reading p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* 📚 Story selection section */
.reading-selection {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--bg);
  color: var(--text);
}

.story-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.story-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  border: none;
  background-color: var(--accent);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.story-btn:hover {
  transform: scale(1.05);
  background-color: var(--primary);
}

/* 📱 Responsive heading for smaller screens */
@media (max-width: 480px) {
  .hero-reading h1 {
    font-size: 2rem;
  }

  .hero-reading p {
    font-size: 1rem;
  }
}
