/* style.css - Bibel-Stunde.de Custom Design System */

/* Local Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/outfit-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/outfit-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/outfit-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/outfit-800.woff2') format('woff2');
}

:root {
  /* Primary Color Palette */
  --blue: #0057B8;
  --light-blue: #28A8E0;
  --green: #43B02A;
  --light-green: #8CC63F;
  --orange: #FF7A00;
  --yellow: #FFC400;
  --pink: #E91E73;
  --cream: #FFF8EC;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  
  /* Additional UI variables */
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Outfit', 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
}

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

/* ============================================================
   ACCESSIBILITY (WCAG 2.1 AA)
   ============================================================ */

/* 1. Skip Navigation Link – für Tastaturnutzer & Screenreader */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* 2. Sichtbare Fokus-Stile für alle interaktiven Elemente
      (Standard-Browser-Outline ist oft zu schwach sichtbar) */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fokus für Links */
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
  text-decoration: underline;
}

/* Fokus für Buttons */
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Fokus für Formularfelder */
.form-control:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.15);
}

/* 3. Mindest-Touch-Target-Größe (44×44px gemäß WCAG 2.5.5) */
.nav-link,
.btn,
button,
a.btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Nav-Links dürfen kleiner sein, aber mindestens Höhe 44px */
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Flash-Close als echten Button stylen (wurde von span auf button geändert) */
button.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  min-height: auto;
  min-width: auto;
  padding: 0.25rem;
  color: inherit;
  border-radius: 4px;
}
button.flash-close:focus-visible {
  outline: 2px solid currentColor;
}

/* 4. Reduzierte Animationen für Nutzer die das bevorzugen */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 5. Hoher Kontrast – Windows High Contrast Mode Unterstützung */
@media (forced-colors: active) {
  .btn,
  .nav-link,
  .topic-card,
  .verse-card,
  .journal-card {
    border: 2px solid ButtonText;
  }
  .skip-link {
    border: 2px solid ButtonText;
  }
}

/* 6. Bessere Lesbarkeit: erhöhter Zeilenabstand für Textblöcke */
p, li, .verse-short-text, .journal-text-content, .reflection-text {
  line-height: 1.75;
}

/* 7. Textgröße nie unter 14px (verhindert unlesbaren Kleinsttext) */
small, .stat-label, .tag, .verse-reference, .journal-date, .footer-tagline,
.footer-links ul li a, .footer-info ul li a {
  font-size: max(0.8rem, 12px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.main-content {
  flex: 1;
  padding-bottom: 3rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--light-blue);
}

ul {
  list-style: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--cream);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo .logo-emoji {
  font-size: 1.8rem;
}

.nav-logo .logo-dot {
  color: var(--orange);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue);
  background-color: var(--cream);
}

/* Navigation Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: 0.5rem 0.75rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white);
  border: 2px solid var(--cream);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  min-width: 180px;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  margin: 0;
  list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
  width: 100%;
}

.nav-dropdown-menu a {
  color: var(--text);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: block;
  transition: background-color 0.2s, color 0.2s;
  text-align: left;
  border-radius: 0;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background-color: var(--cream);
  color: var(--blue);
}

.nav-auth-separator {
  width: 1px;
  height: 24px;
  background-color: #E2E8F0;
  margin: 0 0.5rem;
}

.nav-btn-profile {
  color: var(--blue) !important;
  font-weight: 600;
  background-color: var(--cream);
}

.nav-btn-logout {
  color: var(--pink) !important;
}

.nav-btn-logout:hover {
  background-color: #FFF0F5 !important;
}

.nav-btn-register {
  background-color: var(--orange);
  color: var(--white);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.2);
  white-space: nowrap;
}

.nav-btn-register:hover {
  background-color: #e06b00;
  color: var(--white);
  transform: translateY(-2px);
}

/* Mobile Nav Toggler */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FFF8EC 0%, #FFFDF8 100%);
  padding: 4.5rem 0;
  text-align: center;
  border-bottom: 3px dashed var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(40,168,224,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233,30,115,0.06) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: linear-gradient(to right, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.15);
}

.btn-primary:hover {
  background-color: #e06b00;
  transform: translateY(-2px);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--cream);
  color: var(--text);
  border-color: #FFE6CC;
}

.btn-secondary:hover {
  background-color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.btn-pink {
  background-color: var(--pink);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(233, 30, 115, 0.15);
}

.btn-pink:hover {
  background-color: #d11261;
  transform: translateY(-2px);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Sections */
.section-padding {
  padding: 4rem 0;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 15%;
  width: 70%;
  height: 4px;
  background: linear-gradient(to right, var(--light-blue), var(--light-green));
  border-radius: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Grid Layouts */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.verse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .verse-grid {
    grid-template-columns: 1fr;
  }
}

/* Topic Card */
.topic-card {
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

.topic-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  background-color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.topic-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.topic-card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.topic-card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Verse Card */
.verse-card {
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.verse-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.verse-reference {
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.verse-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1rem;
}

.verse-short-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.verse-reflection-box {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--orange);
}

.reflection-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 0.25rem;
}

.reflection-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.verse-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-save {
  border-color: #E2E8F0;
  background-color: var(--white);
  color: var(--text-muted);
}
.btn-save:hover {
  border-color: var(--yellow);
  color: var(--orange);
  background-color: #FFFDF0;
}

.btn-saved {
  border-color: var(--yellow);
  background-color: #FFFDE6;
  color: var(--orange);
}

/* Soft Background Classes */
.soft-bg-blue {
  background-color: #EBF5FF;
  border-color: #D3E9FF;
}
.soft-bg-light-blue {
  background-color: #F0FAFF;
  border-color: #D6F1FF;
}
.soft-bg-green {
  background-color: #EEFBEA;
  border-color: #DAF7D3;
}
.soft-bg-light-green {
  background-color: #F5FCF0;
  border-color: #E6F8DC;
}
.soft-bg-orange {
  background-color: #FFF5EC;
  border-color: #FFE5D3;
}
.soft-bg-yellow {
  background-color: #FFFDF0;
  border-color: #FFF7D1;
}
.soft-bg-pink {
  background-color: #FFF0F6;
  border-color: #FFDEEB;
}
.soft-bg-cream {
  background-color: var(--cream);
  border-color: #FFE6CC;
}

/* Borders & Texts (Theme matches) */
.border-blue { border-color: var(--blue) !important; }
.border-light-blue { border-color: var(--light-blue) !important; }
.border-green { border-color: var(--green) !important; }
.border-light-green { border-color: var(--light-green) !important; }
.border-orange { border-color: var(--orange) !important; }
.border-yellow { border-color: var(--yellow) !important; }
.border-pink { border-color: var(--pink) !important; }

.text-blue { color: var(--blue); }
.text-light-blue { color: var(--light-blue); }
.text-green { color: var(--green); }
.text-light-green { color: var(--light-green); }
.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }
.text-pink { color: var(--pink); }

.tag-blue { background-color: var(--blue); color: white; }
.tag-light-blue { background-color: var(--light-blue); color: white; }
.tag-green { background-color: var(--green); color: white; }
.tag-light-green { background-color: var(--light-green); color: var(--text); }
.tag-orange { background-color: var(--orange); color: white; }
.tag-yellow { background-color: var(--yellow); color: var(--text); }
.tag-pink { background-color: var(--pink); color: white; }

/* Tag element */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Crisis and Info Boxes */
.crisis-box {
  background: linear-gradient(135deg, #FFF0F0 0%, #FFF6F6 100%);
  border: 2px solid #FFA3A3;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.02);
}

.crisis-icon {
  font-size: 3rem;
  background-color: var(--white);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.crisis-content h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--pink);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.crisis-content p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.crisis-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-crisis {
  background-color: var(--pink);
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(233, 30, 115, 0.25);
}

.btn-crisis:hover {
  background-color: #d11261;
  transform: translateY(-2px);
}

.btn-crisis-secondary {
  background-color: var(--white);
  color: var(--text) !important;
  border: 2px solid #FCA5A5;
}

.btn-crisis-secondary:hover {
  background-color: #FFF5F5;
  border-color: var(--pink);
  transform: translateY(-2px);
}

.crisis-footnote {
  margin-top: 1rem;
  font-size: 0.85rem !important;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .crisis-box {
    flex-direction: column;
    padding: 1.5rem;
  }
  .crisis-actions {
    flex-direction: column;
    width: 100%;
  }
  .crisis-actions .btn {
    width: 100%;
  }
}

.notice-box {
  padding: 1.25rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.notice-yellow {
  background-color: #FFFEEA;
  border-color: #FFF0B3;
  color: #856404;
}

/* Daily Verse component */
.daily-verse-box {
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  max-width: 900px;
  margin: 0 auto;
}

.daily-verse-intro {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.daily-verse-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}

.daily-verse-ref {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.daily-verse-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Journal Styles */
.journal-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 992px) {
  .journal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.journal-form-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--cream);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #E2E8F0;
  background-color: var(--white);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.1);
}

/* Mood Grid Picker */
.mood-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .mood-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mood-option {
  position: relative;
}

.mood-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mood-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 85px; /* Ensures all boxes are exactly the same height */
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #E2E8F0;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  background-color: var(--white);
  transition: var(--transition);
}

.mood-emoji {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.mood-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.mood-option input:checked + .mood-label {
  border-color: var(--orange);
  background-color: var(--cream);
  transform: scale(1.02);
}

.journal-list-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.journal-filters {
  background-color: var(--cream);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid #FFE6CC;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.journal-card {
  border-radius: var(--border-radius);
  padding: 2.5rem;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.journal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding-bottom: 0.75rem;
}

.journal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.journal-mood-badge {
  background-color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.journal-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.journal-verse-ref {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
}

.journal-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.journal-text-content {
  font-size: 1.05rem;
  white-space: pre-line;
}

.journal-prayer {
  border-left: 3px solid var(--pink);
  padding-left: 1rem;
}

.journal-prayer h4 {
  color: var(--pink);
}

.italic {
  font-style: italic;
}

.journal-private {
  border-left: 3px solid var(--text-muted);
  padding-left: 1rem;
  opacity: 0.8;
}

/* Authentication Forms */
.auth-container {
  max-width: 450px;
  margin: 4rem auto;
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--cream);
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Flash Messages */
.flash-container {
  margin-top: 1rem;
}

.flash-message {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.flash-success {
  background-color: #EBFEEA;
  border: 1px solid #C7F7C2;
  color: #1E6B17;
}

.flash-error {
  background-color: #FFF0F0;
  border: 1px solid #FDCFCF;
  color: #A81E1E;
}

.flash-info {
  background-color: #F0FAFF;
  border: 1px solid #D1EEFF;
  color: #176B9B;
}

.flash-close {
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Search Box */
.search-hero {
  background: linear-gradient(135deg, #E6F4FA 0%, #FFF8EC 100%);
  padding: 3rem 0;
  border-radius: var(--border-radius-lg);
  margin-bottom: 3rem;
  text-align: center;
}

.search-box-wrapper {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  background-color: var(--white);
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #FFE6CC;
}

.search-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0 1.5rem;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  outline: none;
}

.search-btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* Profile Details */
.profile-header-card {
  background: linear-gradient(135deg, #FFF8EC 0%, #FFF5EC 100%);
  border: 2px solid #FFE5D3;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar {
  font-size: 3.5rem;
  background-color: var(--white);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.profile-name h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.profile-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .profile-header-card {
    flex-direction: column;
    text-align: center;
  }
  .profile-info {
    flex-direction: column;
  }
  .profile-stats {
    width: 100%;
    justify-content: space-around;
  }
}

/* Footer layout */
.site-footer {
  background-color: var(--cream);
  border-top: 3px dashed #FFE6CC;
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links h4, .footer-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.footer-links ul li, .footer-info ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a, .footer-info ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links ul li a:hover, .footer-info ul li a:hover {
  color: var(--blue);
  padding-left: 4px;
}

.footer-disclaimer {
  border-top: 1px solid #FFE6CC;
  padding-top: 2rem;
}

.medical-warning {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intermediate Desktop Scaling to prevent menu wrap */
@media (min-width: 1201px) and (max-width: 1380px) {
  .nav-container {
    padding: 0 1rem;
  }
  .nav-list {
    gap: 0.6rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }
  .nav-logo {
    font-size: 1.25rem;
    gap: 0.3rem;
  }
  .nav-btn-register {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile Responsive Navigation Overlay */
@media (max-width: 1200px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 999;
    display: none; /* Controlled by JS */
    animation: fadeIn 0.25s ease;
  }
  
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 1rem;
  }
  
  .nav-link {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    border-radius: var(--border-radius-sm);
  }
  
  .nav-auth-separator {
    display: none;
  }
  
  .nav-btn-register {
    display: block;
    text-align: center;
    padding: 1rem;
  }
  
  /* Mobile dropdown reset */
  .nav-dropdown {
    display: contents;
  }
  
  .nav-dropdown-toggle {
    display: none !important;
  }
  
  .nav-dropdown-menu {
    display: contents !important;
  }
  
  .nav-dropdown-menu li {
    display: block;
    width: 100%;
  }
  
  .nav-dropdown-menu a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
  }
  
  /* Animated Hamburger menu */
  .mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}


/* ============================================================
   GLOBAL RESPONSIVE OVERFLOW PROTECTION
   ============================================================ */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   TABLET (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
  /* Hero */
  .hero {
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Daily verse */
  .daily-verse-text {
    font-size: 1.7rem;
  }
  .daily-verse-box {
    padding: 2rem 1.5rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.8rem;
  }
  .section-padding {
    padding: 3rem 0;
  }

  /* Profile two-column → single column */
  .profil-two-col {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* All 2fr/1fr detail page layouts → single column on tablet */
  .page-two-col {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Tagebuch edit action buttons */
  .edit-actions-row {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: stretch !important;
  }
  .edit-actions-row > div {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .edit-actions-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Container padding */
  .container {
    padding: 0 1rem;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 0;
  }
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 340px;
  }

  /* Daily verse */
  .daily-verse-box {
    padding: 1.75rem 1.25rem;
  }
  .daily-verse-text {
    font-size: 1.4rem;
  }
  .daily-verse-intro {
    font-size: 0.95rem;
  }
  .daily-verse-actions {
    flex-direction: column;
    align-items: center;
  }
  .daily-verse-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  /* Section titles */
  .section-title {
    font-size: 1.5rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .section-padding {
    padding: 2.5rem 0;
  }
  .section-title-wrapper {
    margin-bottom: 2rem;
  }

  /* Topic & verse grids → single column */
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .verse-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Verse cards */
  .verse-card {
    padding: 1.5rem;
  }
  .verse-title {
    font-size: 1.2rem;
  }

  /* Topic cards */
  .topic-card {
    padding: 1.5rem 1.25rem;
  }

  /* Search hero & box */
  .search-hero {
    padding: 2rem 0;
    border-radius: var(--border-radius);
  }
  .search-hero h1 {
    font-size: 1.6rem !important;
  }
  .search-box-wrapper {
    flex-direction: column;
    border-radius: var(--border-radius);
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .search-input {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    width: 100%;
    border-radius: var(--border-radius-sm);
    border: 2px solid #E2E8F0;
  }
  .search-btn {
    width: 100%;
    border-radius: var(--border-radius-sm);
  }

  /* Auth forms */
  .auth-container {
    margin: 2rem auto;
    padding: 1.75rem 1.25rem;
    border-radius: var(--border-radius);
  }
  .auth-title {
    font-size: 1.7rem;
  }

  /* Edit journal card */
  .edit-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: var(--border-radius) !important;
  }

  .journal-form-card {
    position: static;
    padding: 1.5rem;
  }
  .journal-card {
    padding: 1.5rem;
  }
  .journal-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Mood picker: 3 cols on mobile instead of 4 */
  .mood-picker {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .mood-label {
    height: 78px;
    padding: 0.4rem;
  }
  .mood-emoji {
    font-size: 1.4rem;
  }
  .mood-text {
    font-size: 0.72rem;
  }

  /* Filter grid already 1 col on mobile — ensure buttons stretch */
  .filter-grid .btn {
    width: 100%;
  }

  /* Profile header */
  .profile-header-card {
    padding: 1.5rem;
  }
  .profile-name h2 {
    font-size: 1.5rem;
  }
  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  .stat-num {
    font-size: 1.75rem;
  }

  /* Crisis box */
  .crisis-box {
    padding: 1.25rem;
  }

  /* Footer */
  .site-footer {
    padding: 3rem 0 1.5rem 0;
  }

  /* Misc buttons */
  .btn {
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
  }
}

/* ============================================================
   SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Hero */
  .hero h1 {
    font-size: 1.55rem;
  }

  /* Mood picker: 2 cols on very small screens */
  .mood-picker {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }
  .mood-label {
    height: 72px;
  }

  /* Auth container edge-to-edge padding */
  .auth-container {
    margin: 1rem;
    padding: 1.5rem 1rem;
  }

  /* Verse / journal cards */
  .verse-card, .journal-card {
    padding: 1.25rem 1rem;
  }

  /* Section title */
  .section-title {
    font-size: 1.35rem;
  }

  /* Daily verse */
  .daily-verse-text {
    font-size: 1.25rem;
  }

  /* Buttons stacked full-width in edit form */
  .edit-actions-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }
  .edit-actions-row > div,
  .edit-actions-row > button,
  .edit-actions-row > a {
    width: 100% !important;
  }

  /* Verse card header: stack reference and tags */
  .verse-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============================================================
   JOURNAL PHOTO UPLOAD
   ============================================================ */

/* Hint text under file label */
.journal-upload-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.75rem;
  line-height: 1.5;
}

/* Custom styled file picker label */
.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border: 2px dashed var(--orange);
  border-radius: var(--border-radius);
  background: #FFF8EC;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.file-upload-label:hover {
  background: #fff0d6;
  border-color: #cc6200;
}

.file-upload-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.file-upload-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.file-upload-hint-small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Visually hidden actual file input */
.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Preview container (shown after file selected) */
.journal-img-preview {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.journal-img-preview img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  border-radius: var(--border-radius);
  border: 2px solid var(--cream);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* Remove-preview button */
.btn-remove-preview {
  background: none;
  border: 1px solid var(--pink);
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-remove-preview:hover {
  background: var(--pink);
  color: var(--white);
}

/* Thumbnail in journal entry card (list view) */
.journal-photo-card {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.journal-photo-link {
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}
.journal-photo-link:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

.journal-photo-thumb {
  display: block;
  max-width: 280px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 2px solid var(--cream);
  box-shadow: var(--shadow-soft);
}

.journal-photo-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Existing image in edit form */
.journal-existing-image {
  margin-bottom: 1rem;
  background: var(--cream);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid #FFE6CC;
}

.journal-photo-thumb-edit {
  display: block;
  max-width: 100%;
  max-height: 240px;
  width: auto;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  border: 2px solid var(--cream);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.75rem;
}

.journal-existing-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .journal-photo-thumb {
    max-width: 100%;
    height: 150px;
  }
  .journal-photo-thumb-edit {
    max-height: 180px;
  }
}

/* Smoke Lightbox Modal */
.smoke-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.smoke-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.smoke-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 20, 0.93);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.smoke-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.smoke-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.smoke-lightbox-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.smoke-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.9) rotate(-1deg);
  filter: blur(25px);
  transition: opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.4s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.smoke-lightbox-content img.loaded {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: blur(0);
}

.smoke-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
}

.smoke-lightbox-close:hover {
  background: var(--pink);
  border-color: var(--pink);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .smoke-lightbox-close {
    top: auto;
    bottom: -60px;
    right: 50%;
    transform: translateX(50%);
  }
  .smoke-lightbox-close:hover {
    transform: translateX(50%) rotate(90deg);
  }
}

/* ============================================================
   COOKIE CONSENT BANNER SYSTEM
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  width: 90%;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid var(--cream);
  border-radius: var(--border-radius);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  padding: 1.75rem 2rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-banner-text a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
}

.cookie-banner-text a:hover {
  border-bottom-color: var(--blue);
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.cookie-btn-accept {
  background-color: var(--orange);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: #e66e00;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}

.cookie-btn-deny {
  background-color: #F1F5F9;
  color: var(--text);
  border: 1px solid #E2E8F0;
}

.cookie-btn-deny:hover {
  background-color: #E2E8F0;
}

.cookie-btn-settings {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}

.cookie-btn-settings:hover {
  color: var(--text);
}

@media (max-width: 576px) {
  .cookie-banner {
    bottom: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-btn {
    text-align: center;
  }
  .cookie-btn-settings {
    order: 3;
    margin-top: 0.5rem;
  }
}
