/* ============================================
   Creciendo con [Bebé] - Baby Diary Styles
   Color Palette: Sage, Sky, Beige, White, Charcoal
   ============================================ */

/* CSS Variables */
:root {
  /* Ocean Blues + Grays palette */
  --primary: #2B6CB0;        /* Ocean blue - main accent */
  --primary-light: #4299E1;  /* Lighter ocean blue */
  --secondary: #5A7A8A;      /* Steel blue-gray */
  --secondary-light: #8BA5B5;/* Light steel */
  --warm: #E2E8F0;           /* Cool gray */
  --warm-light: #F7FAFC;     /* Very light gray-blue */
  --white: #FFFFFF;
  --charcoal: #2D3748;       /* Dark slate */
  --charcoal-light: #4A5568; /* Medium slate */
  --slate: #718096;          /* Slate gray */
  --accent: #48BB78;         /* Soft green for milestones */
  --shadow: rgba(45, 55, 72, 0.1);
  --shadow-hover: rgba(45, 55, 72, 0.15);

  /* Legacy names for compatibility */
  --sage: var(--accent);
  --sage-light: #9AE6B4;
  --sky: var(--primary);
  --sky-light: var(--primary-light);
  --beige: var(--warm);
  --beige-light: var(--warm-light);

  --font-main: 'Quicksand', sans-serif;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   Code Word Gate
   ============================================ */
.gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #EDF2F7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.gate-container {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px var(--shadow);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.gate-container h1 {
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gate-container .gate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.gate-container p {
  color: var(--charcoal-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.gate-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--beige);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  text-align: center;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.gate-input:focus {
  outline: none;
  border-color: var(--sage);
}

.gate-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.gate-button:hover {
  background: var(--sage-light);
  color: var(--charcoal);
}

.gate-error {
  color: #D88;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.gate-error.show {
  display: block;
}

/* Hidden state for main content */
.hidden {
  display: none !important;
}

/* ============================================
   Layout
   ============================================ */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background: #E2E8F0;  /* Light gray */
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #CBD5E0;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #CBD5E0;
}

.sidebar-header h1 {
  font-size: 1.4rem;
  color: var(--charcoal);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.sidebar-header .tagline {
  font-size: 0.85rem;
  color: var(--charcoal-light);
}

/* Navigation */
.nav-section {
  margin-bottom: 1.5rem;
}

.nav-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-link:hover {
  background: #FFFFFF;
}

.nav-link.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--shadow);
  font-weight: 600;
}

.nav-link .icon {
  font-size: 1.1rem;
}

.nav-months {
  margin-left: 0.5rem;
}

.nav-months .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Language Toggle */
.language-toggle {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #CBD5E0;
}

.translate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: var(--border-radius-sm);
  color: var(--charcoal);
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.translate-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 2rem 3rem;
  max-width: 1000px;
  margin-right: auto;
  /* Center in available space */
  margin-left: calc(280px + ((100% - 280px - 1000px) / 2));
}

/* When screen is not wide enough to center, just use left margin */
@media (max-width: 1400px) {
  .main-content {
    margin-left: 280px;
    margin-right: 2rem;
    max-width: none;
  }
}

/* ============================================
   Home View
   ============================================ */
.home-header {
  text-align: center;
  margin-bottom: 3rem;
}

.home-header h2 {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.home-header p {
  color: var(--charcoal-light);
}

.latest-entry-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
}

/* Stats Dashboard */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.stat-card .stat-icon {
  font-size: 1.8rem;
}

.stat-card .stat-info {
  text-align: left;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--charcoal-light);
}

.stat-card.highlight {
  background: var(--primary);
}

.stat-card.highlight .stat-value,
.stat-card.highlight .stat-label {
  color: #FFFFFF;
}

.stat-card.highlight .stat-info {
  text-align: left;
}

.welcome-message {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-message h3 {
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.welcome-message p {
  color: var(--charcoal-light);
}

/* Mood Thermometers */
.mood-section {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.mood-section h3 {
  font-size: 1rem;
  color: var(--charcoal-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.mood-thermometers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.thermometer {
  text-align: center;
}

.thermometer .thermo-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.thermometer .thermo-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.thermo-bar {
  height: 12px;
  background: #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.thermo-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.traffic-light {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E2E8F0;
  transition: var(--transition);
}

.traffic-light.red { background: #E2E8F0; }
.traffic-light.yellow { background: #E2E8F0; }
.traffic-light.green { background: #E2E8F0; }

.traffic-light.red.active { background: #FC8181; box-shadow: 0 0 10px #FC8181; }
.traffic-light.yellow.active { background: #F6E05E; box-shadow: 0 0 10px #F6E05E; }
.traffic-light.green.active { background: #48BB78; box-shadow: 0 0 10px #48BB78; }

.thermometer .thermo-status {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .mood-thermometers {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   Week Entry Cards
   ============================================ */
.entry-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.entry-header {
  background: var(--primary);
  padding: 1.5rem 2rem;
}

.entry-header h2 {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.entry-header .date-range {
  color: #E2E8F0;
  font-size: 0.9rem;
}

.entry-body {
  padding: 2rem;
}

.entry-summary {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

/* Photo Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.photo-item {
  aspect-ratio: 1;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.photo-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px var(--shadow-hover);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Milestone Badge */
.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--charcoal);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.milestone-badge .icon {
  font-size: 1.2rem;
}

/* Entry Preview Mode */
.entry-preview .entry-body {
  padding: 1.5rem;
}

.entry-summary-preview {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
}

.photo-gallery-preview {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.photo-item-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.photo-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-more {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--charcoal-light);
}

.read-more-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.read-more-btn:hover {
  background: var(--primary-light);
}

/* Parents Survival Section */
.parents-survival {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #F7FAFC;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
}

.parents-survival h3 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  font-weight: 600;
}

.parents-survival .parents-content {
  color: var(--charcoal);
  line-height: 1.8;
}

.parents-survival .parents-content p {
  margin-bottom: 0.75rem;
}

/* ============================================
   Milestones Timeline
   ============================================ */
.milestones-page h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.milestones-timeline {
  position: relative;
  padding-left: 3rem;
}

.milestones-timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.milestone-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
}

.milestone-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 1.75rem;
  width: 1rem;
  height: 1rem;
  background: var(--sage);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px var(--shadow);
}

.milestone-item .milestone-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.milestone-item h3 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.milestone-item .milestone-date {
  font-size: 0.85rem;
  color: var(--charcoal-light);
}

.milestone-item .milestone-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--sky);
  text-decoration: none;
  font-size: 0.9rem;
}

.milestone-item .milestone-link:hover {
  text-decoration: underline;
}

.no-milestones {
  text-align: center;
  padding: 3rem;
  color: var(--charcoal-light);
}

/* ============================================
   Birth Story
   ============================================ */
.birth-story-page {
  text-align: left;
}

.birth-story-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.birth-story-content {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 2.5rem;
  text-align: left;
}

.birth-story-content .birth-date {
  display: inline-block;
  background: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.birth-story-placeholder {
  padding: 3rem;
  text-align: center;
  color: var(--charcoal-light);
  background: var(--beige-light);
  border-radius: var(--border-radius);
}

.birth-story-placeholder .placeholder-structure {
  margin-top: 2rem;
  text-align: left;
}

.placeholder-stats {
  margin-bottom: 1.5rem;
}

.birth-stat-card.placeholder-card {
  opacity: 0.5;
  border: 2px dashed #CBD5E0;
  box-shadow: none;
}

.birth-stat-card.placeholder-card .stat-value {
  color: var(--charcoal-light);
}

.birth-date-header {
  text-align: center;
  margin-bottom: 2rem;
}

.birth-date-big {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  background: #EDF2F7;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
}

.birth-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.birth-stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.birth-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.birth-stat-card .stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.birth-stat-card .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.birth-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--charcoal-light);
}

.birth-story-content {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.birth-story-content h3 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.birth-photos-section {
  margin-top: 2rem;
}

.birth-photos-section h3 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

/* ============================================
   Month Summary
   ============================================ */
.month-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--primary);
  border-radius: var(--border-radius);
}

.month-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.month-header .month-subtitle {
  color: #E2E8F0;
}

.month-summary {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.month-summary h3 {
  font-size: 1rem;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.month-summary ul {
  list-style: none;
  padding: 0;
}

.month-summary li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--beige-light);
}

.month-summary li:last-child {
  border-bottom: none;
}

.month-summary li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: bold;
}

.month-milestones {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--beige);
}

.month-milestones h4 {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-bottom: 0.75rem;
}

/* Week list in month view */
.weeks-list h3 {
  font-size: 1rem;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Pregnancy Weeks Section
   ============================================ */
.pregnancy-section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.pregnancy-section .section-subtitle {
  text-align: center;
  color: var(--charcoal-light);
  margin-bottom: 2rem;
}

/* ============================================
   Photo Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--border-radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--white);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--charcoal);
}

.lightbox-nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--charcoal-light);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

/* Placeholder Sections */
.placeholder-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #F7FAFC;
  border: 2px dashed #CBD5E0;
  border-radius: var(--border-radius-sm);
}

.placeholder-section h4 {
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.placeholder-text {
  color: var(--charcoal-light);
  font-style: italic;
  font-size: 0.9rem;
}

.placeholder-photos {
  display: flex;
  gap: 0.75rem;
}

.placeholder-photo {
  width: 80px;
  height: 80px;
  background: #E2E8F0;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-photo::after {
  content: '📷';
  font-size: 1.5rem;
  opacity: 0.4;
}

.placeholder-mood {
  display: flex;
  gap: 2rem;
  color: var(--charcoal-light);
  font-size: 0.95rem;
}

/* ============================================
   Mobile Header & Menu
   ============================================ */
.mobile-header {
  display: none;
}

.sidebar-overlay {
  display: none;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 900px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-header h1 {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: var(--transition);
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    left: 0;
    transition: var(--transition);
  }

  .hamburger::before {
    top: -7px;
  }

  .hamburger::after {
    bottom: -7px;
  }

  /* Hamburger animation when open */
  .menu-toggle.active .hamburger {
    background: transparent;
  }

  .menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    padding: 1.5rem;
    border-right: none;
    border-left: 1px solid #CBD5E0;
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.open {
    right: 0;
  }

  .sidebar-header {
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #CBD5E0;
  }

  .sidebar-header h1 {
    font-size: 1.2rem;
  }

  .sidebar-header .tagline {
    font-size: 0.8rem;
  }

  .nav-section {
    display: block;
    margin-bottom: 0.75rem;
  }

  .nav-section-title {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
  }

  .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    display: flex;
  }

  .nav-link .icon {
    font-size: 1rem;
    min-width: 1.5rem;
  }

  .nav-months {
    display: block;
    margin-left: 0;
  }

  .nav-months .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .language-toggle {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .app-container {
    flex-direction: column;
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: 1.5rem;
    max-width: 100%;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-dashboard {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    justify-content: flex-start;
  }

  .mood-thermometers {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-header h2 {
    font-size: 1.5rem;
  }

  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

@media (max-width: 600px) {
  .gate-container {
    padding: 2rem 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .entry-header {
    padding: 1rem 1.25rem;
  }

  .entry-header h2 {
    font-size: 1.2rem;
  }

  .entry-body {
    padding: 1.25rem;
  }

  .main-content {
    padding: 1rem;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .photo-gallery-preview {
    gap: 0.25rem;
  }

  .photo-item-preview {
    width: 60px;
    height: 60px;
  }

  .photo-more {
    width: 60px;
    height: 60px;
    font-size: 0.85rem;
  }

  .milestones-timeline {
    padding-left: 2rem;
  }

  .milestone-item::before {
    left: -1.5rem;
  }

  .welcome-message {
    padding: 1.25rem;
  }

  .mood-section {
    padding: 1.25rem;
  }

  .birth-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .birth-stat-card {
    padding: 1rem;
  }

  .birth-stat-card .stat-icon {
    font-size: 1.5rem;
  }

  .birth-stat-card .stat-value {
    font-size: 1.1rem;
  }

  .lightbox img {
    max-width: 95%;
    max-height: 80%;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

/* ============================================
   Birth Story Q&A Sections
   ============================================ */
.birth-story-qa {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.qa-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #E2E8F0;
}

.qa-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.qa-section h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qa-section h3 .section-icon {
  font-size: 1.4rem;
}

.qa-item {
  margin-bottom: 1.5rem;
}

.qa-item:last-child {
  margin-bottom: 0;
}

.qa-question {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.qa-answer {
  color: var(--charcoal-light);
  line-height: 1.7;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-light);
}

.qa-section.closing-section {
  text-align: left;
  padding: 2rem;
  background: #F7FAFC;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  border-bottom: none;
}

.qa-section.closing-section h3 {
  justify-content: flex-start;
}

.qa-section.closing-section .qa-question {
  text-align: left;
}

.three-words {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.three-words span {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
}

.quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.quote::before {
  content: '"';
  font-size: 2rem;
  color: var(--primary-light);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.25rem;
}

.quote::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-light);
  line-height: 0;
  vertical-align: -0.4em;
  margin-left: 0.25rem;
}

/* Story Sections Placeholder */
.story-sections-placeholder {
  margin-top: 2rem;
}

.story-sections-placeholder h4 {
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  text-align: center;
}

.story-section-placeholder {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #F7FAFC;
  border: 2px dashed #CBD5E0;
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.75rem;
  color: var(--charcoal-light);
}

.story-section-placeholder:last-child {
  margin-bottom: 0;
}

.story-section-placeholder .section-icon {
  font-size: 1.5rem;
  opacity: 0.6;
}

.story-section-placeholder .section-title {
  font-weight: 600;
  color: var(--charcoal);
}

.story-section-placeholder .section-hint {
  font-size: 0.85rem;
  font-style: italic;
}
