/* 
 * Bible Parables Web App - Custom Style Sheet
 * Theme: Premium Antique Gold & Midnight Glassmorphism
 */

/* Import premium Google Fonts for themes */
@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,600;1,400&family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,500;0,700;1,400&family=DM+Sans:wght@400;500;700&family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Marcellus&family=Outfit:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Theme 1: Midnight Gold (Default) */
:root {
  --bg-dark: #0f141d;
  --bg-medium: #182030;
  --bg-card: #182030;
  --bg-card-hover: #202b40;
  
  --gold-primary: #d4af37;
  --gold-light: #fef08a;
  --gold-dark: #b45309;
  --gold-muted: #854d0e;
  --gold-glow: rgba(212, 175, 55, 0.3);
  
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-gold: #fef08a;
  
  --border-color: rgba(212, 175, 55, 0.3);
  --border-hover: rgba(212, 175, 55, 0.6);
  --border-gold-solid: #d4af37;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.25);
  
  --font-serif-header: 'Cinzel', serif;
  --font-serif-body: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme 2: Aged Parchment (Illuminated Manuscript Light Theme) */
body.theme-parchment {
  --bg-dark: #f4ece1;
  --bg-medium: #e8dccb;
  --bg-card: rgba(255, 252, 245, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  
  --gold-primary: #8c2424; /* Rich Crimson/Ruby Ink */
  --gold-light: #b33636;
  --gold-dark: #5e1616;
  --gold-muted: #8a735c;
  --gold-glow: rgba(140, 36, 36, 0.15);
  
  --text-primary: #231c15; /* Dark brown manuscript ink */
  --text-secondary: #594a3c;
  --text-muted: #827161;
  --text-gold: #8c2424;
  
  --border-color: rgba(140, 115, 85, 0.3);
  --border-hover: rgba(140, 36, 36, 0.5);
  --border-gold-solid: #8c2424;
  
  --shadow-sm: 0 2px 8px rgba(89, 74, 60, 0.12);
  --shadow-md: 0 8px 24px rgba(89, 74, 60, 0.18);
  --shadow-lg: 0 16px 40px rgba(89, 74, 60, 0.22);
  --shadow-gold: 0 0 20px rgba(140, 36, 36, 0.15);
  
  --font-serif-header: 'EB Garamond', serif;
  --font-serif-body: 'Cormorant Garamond', serif;
  --font-sans: 'Lora', serif;
  
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(140, 36, 36, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(184, 155, 95, 0.08) 0%, transparent 45%);
}

/* Theme 3: Celestial Sapphire (Cosmic Starlight Navy) */
body.theme-celestial {
  --bg-dark: #050c1e;
  --bg-medium: #0a1632;
  --bg-card: rgba(12, 26, 56, 0.7);
  --bg-card-hover: rgba(18, 38, 80, 0.85);
  
  --gold-primary: #7bb5f0; /* Moonlight Sapphire Blue */
  --gold-light: #b3d7ff;
  --gold-dark: #4a82be;
  --gold-muted: #2d507a;
  --gold-glow: rgba(123, 181, 240, 0.25);
  
  --text-primary: #f0f6ff;
  --text-secondary: #a3c2e6;
  --text-muted: #6487b3;
  --text-gold: #b3d7ff;
  
  --border-color: rgba(123, 181, 240, 0.2);
  --border-hover: rgba(123, 181, 240, 0.45);
  --border-gold-solid: #7bb5f0;
  
  --shadow-sm: 0 2px 8px rgba(0, 5, 20, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 5, 20, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 5, 20, 0.8);
  --shadow-gold: 0 0 22px rgba(123, 181, 240, 0.2);
  
  --font-serif-header: 'Cormorant Garamond', serif;
  --font-serif-body: 'Lora', serif;
  --font-sans: 'Outfit', sans-serif;
  
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(123, 181, 240, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(65, 115, 175, 0.1) 0%, transparent 45%);
}

/* Theme 4: Judean Earth (Warm Terracotta & Sandstone) */
body.theme-terracotta {
  --bg-dark: #160e09;
  --bg-medium: #241710;
  --bg-card: rgba(38, 25, 17, 0.75);
  --bg-card-hover: rgba(54, 36, 24, 0.9);
  
  --gold-primary: #e08b43; /* Terracotta Amber / Desert Sun */
  --gold-light: #f4b882;
  --gold-dark: #b05e1a;
  --gold-muted: #733c10;
  --gold-glow: rgba(224, 139, 67, 0.25);
  
  --text-primary: #faede3;
  --text-secondary: #cca891;
  --text-muted: #94725c;
  --text-gold: #f4b882;
  
  --border-color: rgba(224, 139, 67, 0.2);
  --border-hover: rgba(224, 139, 67, 0.45);
  --border-gold-solid: #e08b43;
  
  --shadow-sm: 0 2px 8px rgba(15, 8, 4, 0.4);
  --shadow-md: 0 8px 24px rgba(15, 8, 4, 0.6);
  --shadow-lg: 0 16px 40px rgba(15, 8, 4, 0.8);
  --shadow-gold: 0 0 22px rgba(224, 139, 67, 0.2);
  
  --font-serif-header: 'Marcellus', serif;
  --font-serif-body: 'Alegreya', serif;
  --font-sans: 'DM Sans', sans-serif;
  
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(224, 139, 67, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 155, 110, 0.08) 0%, transparent 45%);
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Base Reset & Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

img, svg, video, canvas, audio, iframe {
  max-width: 100%;
  height: auto;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(140, 115, 85, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(90, 74, 55, 0.06) 0%, transparent 45%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 2rem 1.5rem;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Layout Container */
.app-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-x: hidden;
}

/* Theme Switcher Widget */
.theme-switcher-container {
  position: relative;
  z-index: 100;
}

.theme-trigger-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.theme-trigger-btn:hover {
  border-color: var(--border-hover);
  background: rgba(197, 168, 128, 0.1);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 190px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-dropdown.open {
  display: flex;
}

.theme-option {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.theme-option.active {
  background: rgba(197, 168, 128, 0.15);
  border-color: rgba(197, 168, 128, 0.25);
  color: var(--gold-light);
  font-weight: 600;
}

.theme-preview {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  flex-shrink: 0;
}

/* Header Area */
header {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
  animation: fadeIn 1s ease;
}

.header-logo-cross {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 8px rgba(197, 168, 128, 0.4));
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.header-logo-cross:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.8));
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Navigation Bar */
.app-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  z-index: 10;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--gold-light);
  background: rgba(197, 168, 128, 0.08);
  border-color: rgba(197, 168, 128, 0.3);
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.15);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(197, 168, 128, 0.15);
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(197, 168, 128, 0.25);
  font-weight: 600;
}

/* Mode Toggle Buttons */
.proverbs-mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
  border-radius: 50px;
  max-width: 340px;
  margin: 0 auto 1rem auto;
  box-shadow: var(--shadow-sm);
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn:hover {
  color: var(--gold-light);
}

.mode-btn.active {
  background: rgba(197, 168, 128, 0.15);
  border-color: rgba(197, 168, 128, 0.3);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.2);
  font-weight: 600;
}

.subtitle {
  font-family: var(--font-serif-header);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  animation: fadeIn 1s ease;
}

.main-title {
  font-family: var(--font-serif-header);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-shadow: var(--shadow-gold);
  line-height: 1.2;
}

.main-title span {
  background: linear-gradient(135deg, var(--gold-light) 30%, var(--gold-primary) 70%, var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 300;
}

/* Control Panel (Dropdown & Navigation) */
.control-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 100;
}

/* Custom Dropdown Styling */
.dropdown-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.custom-select-trigger:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold), var(--shadow-md);
  transform: translateY(-1px);
}

.custom-select-trigger::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--gold-primary);
  transition: transform var(--transition-normal);
}

.dropdown-container.open .custom-select-trigger::after {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 17, 23, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 150;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  padding: 0.5rem;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-container.open .custom-options {
  display: block;
}

.dropdown-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  outline: none;
  transition: all var(--transition-fast);
}

.dropdown-search-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

.custom-option {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.custom-option:hover {
  background: rgba(197, 168, 128, 0.15);
}

.custom-option.selected {
  background: var(--gold-glow);
  border-left: 3px solid var(--gold-primary);
}

.option-title {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.option-ref {
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-family: var(--font-serif-header);
  letter-spacing: 0.05em;
}

/* Grid Layout for Parable Details */
.parable-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

/* Proverbs Full Chapter Centered Layout (Laptop & Desktop Resolutions) */
.proverbs-chapter-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.proverbs-chapter-centered .illustration-panel,
.proverbs-chapter-centered .content-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Left Column: Visual Illustration */
.illustration-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.image-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.image-container:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.parable-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.parable-image.loaded {
  opacity: 1;
}

.image-container:hover .parable-image.loaded {
  transform: scale(1.03);
}

/* Image Shimmer/Loader */
.image-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(197, 168, 128, 0.1);
  border-radius: 50%;
  border-top-color: var(--gold-primary);
  animation: spin 1s ease-in-out infinite;
}

/* Audio Player & Quick Tools Block - Unified Container Design */
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.action-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.action-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.action-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.action-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.action-buttons {
  display: flex;
  gap: 0.8rem;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--gold-muted);
  color: var(--gold-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.action-btn.active {
  background: var(--gold-dark);
  color: var(--text-primary);
  border-color: var(--gold-dark);
}

/* Right Column: Text & Reflection */
.content-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card Wrapper - Unified with Home & Notes Container System */
.premium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.premium-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* Scripture Heading */
.scripture-header {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.85rem;
}

.scripture-title {
  font-family: var(--font-serif-header);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.scripture-ref {
  font-family: var(--font-serif-header);
  color: var(--gold-primary);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Scripture Text rendering */
.scripture-text {
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* Big drop cap for starting letter of the scripture */
.scripture-text::first-letter {
  float: left;
  font-family: var(--font-serif-header);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 0.85;
  padding-right: 8px;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Tabs or Segmented Controls for Tabs (Context, Meaning, Takeaway) */
.tabs-navigation {
  display: flex;
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  margin-bottom: 1.2rem;
  gap: 1.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-serif-header);
  letter-spacing: 0.05em;
  padding: 0.8rem 0;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-btn:hover {
  color: var(--gold-light);
}

.tab-btn.active {
  color: var(--gold-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.tab-content {
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  margin-bottom: 1rem;
}

.tab-content strong {
  color: var(--gold-light);
}

/* Reflect/Quiz Card - Unified Container Design */
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.quiz-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-primary);
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.quiz-badge {
  background: var(--gold-glow);
  color: var(--gold-primary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-title {
  font-family: var(--font-serif-header);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.quiz-question {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(197, 168, 128, 0.1);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.quiz-option-btn:hover {
  background: rgba(197, 168, 128, 0.06);
  border-color: rgba(197, 168, 128, 0.25);
  color: var(--text-primary);
  transform: translateX(4px);
}

.quiz-option-btn.correct {
  background: rgba(52, 211, 153, 0.1) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
}

.quiz-option-btn.wrong {
  background: rgba(248, 113, 113, 0.1) !important;
  border-color: #f87171 !important;
  color: #f87171 !important;
}

/* Feedback panel in Quiz */
.quiz-feedback {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(197, 168, 128, 0.15);
  display: none;
  animation: slideUp 0.3s ease;
}

.feedback-headline {
  font-family: var(--font-serif-header);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feedback-headline.success { color: #34d399; }
.feedback-headline.error { color: #f87171; }

.feedback-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(197, 168, 128, 0.08);
  margin-top: 2rem;
}

footer a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Responsive Styles for Mobile & All Screen Ratios */
@media (max-width: 1024px) {
  .parable-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  
  .image-container {
    max-height: 420px;
    aspect-ratio: 16/10;
  }

  .home-hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .notes-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hub-grid, .notes-grid, .parable-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hub-card, .note-card, .premium-card {
    width: 100%;
    max-width: 100%;
  }

  .daily-actions {
    flex-direction: column;
    width: 100%;
  }

  .daily-actions .action-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1.25rem 0.85rem;
  }

  .app-container {
    gap: 1.5rem;
  }

  /* Header Controls Mobile Layout (Locked to Top Right) */
  .header-top-controls {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 200;
  }

  /* Navigation Bar Mobile Layout */
  .app-nav {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 50px;
    white-space: nowrap;
  }

  /* Main Title Scaling */
  .main-title {
    font-size: 2.1rem;
  }

  .tagline {
    font-size: 0.88rem;
  }

  /* Daily Verse Hero Mobile Scaling */
  .daily-verse-hero {
    padding: 1.6rem 1.2rem;
    border-radius: 16px;
  }

  .daily-verse-quote {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .daily-verse-ref {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .daily-verse-reflection {
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
  }

  .daily-actions {
    gap: 0.6rem;
  }

  .daily-actions .action-btn {
    flex: 1 1 auto;
    min-width: 130px;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
  }

  /* Control Bar Dropdowns Mobile Layout */
  .control-bar {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .dropdown-container {
    width: 100%;
    min-width: 0;
  }

  .custom-select-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
  }

  .custom-options {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
  }

  /* Proverbs Mode Toggle Mobile */
  .proverbs-mode-toggle {
    width: 100%;
  }

  .mode-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Notes Editor Mobile Layout */
  .notes-editor-card {
    padding: 1.3rem 1rem;
    border-radius: 14px;
  }

  .notes-editor-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .notes-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .notes-search-input {
    min-width: 100%;
  }

  .premium-card {
    padding: 1.3rem 1.1rem;
    border-radius: 14px;
  }

  .scripture-title {
    font-size: 1.6rem;
  }

  .tabs-navigation {
    gap: 0.6rem;
  }

  .tab-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.85rem 0.5rem;
  }

  .header-top-controls {
    top: 0.5rem;
    right: 0.5rem;
  }

  .settings-trigger-btn {
    padding: 0.3rem 0.65rem 0.3rem 0.3rem;
    gap: 0.35rem;
  }

  .settings-label {
    display: none; /* Sleek compact avatar button on small phones */
  }

  .main-title {
    font-size: 1.75rem;
  }

  .home-hub-grid, .notes-grid {
    grid-template-columns: 1fr;
  }

  .hub-card, .note-card {
    padding: 1.25rem 1rem;
  }

  .daily-verse-quote {
    font-size: 1.15rem;
  }

  .action-btn {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
  }
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bible Verse Layout for Full Chapters */
.bible-verse-line {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-align: left;
}

.verse-num {
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: super;
  color: var(--gold-primary);
  margin-right: 0.4rem;
}

/* Header Top Settings Container */
.header-top-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  z-index: 200;
}

.settings-container {
  position: relative;
}

.settings-trigger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.settings-trigger-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.12);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.settings-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.3);
}

.settings-label {
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Settings Modal Popup */
.settings-modal {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.4rem;
  display: none;
  flex-direction: column;
  gap: 1.2rem;
  width: 320px;
  max-width: calc(100vw - 1.5rem);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(25px);
  z-index: 300;
  animation: slideDown 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-modal.open {
  display: flex;
}

.settings-section-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-primary);
  margin-bottom: 0.65rem;
}

.settings-themes-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.3rem 0;
}

/* Daily Streak Badge */
.streak-container {
  display: flex;
  align-items: center;
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.3);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff9800;
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.15);
  animation: fadeIn 0.4s ease;
  user-select: none;
}

.streak-flame {
  font-size: 1rem;
  filter: drop-shadow(0 0 5px rgba(255, 152, 0, 0.7));
}

.google-auth-container {
  display: flex;
  align-items: center;
}

.google-auth-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.google-auth-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.12);
  box-shadow: var(--shadow-gold);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem 0.3rem 0.4rem;
  border-radius: 50px;
  backdrop-filter: blur(12px);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
}

.user-name {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.auth-logout-btn:hover {
  color: var(--gold-light);
}

/* Home Page - Daily Verse Hero Section */
.daily-verse-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.daily-verse-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.daily-badge {
  display: inline-block;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.daily-verse-quote {
  font-family: var(--font-serif-body);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  font-style: italic;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.daily-verse-ref {
  font-family: var(--font-serif-header);
  font-size: 1.1rem;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin-bottom: 1.8rem;
}

.daily-verse-reflection {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 2rem auto;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border-left: 2px solid var(--gold-primary);
}

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

/* Home Page Hub Cards */
.home-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
  background: var(--bg-card-hover);
}

.hub-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(197, 168, 128, 0.1);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-card-title {
  font-family: var(--font-serif-header);
  font-size: 1.3rem;
  color: var(--gold-light);
}

.hub-card-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hub-card-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

/* Personal Notes Page Layout */
.notes-editor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow-md);
}

.notes-editor-header {
  font-family: var(--font-serif-header);
  font-size: 1.25rem;
  color: var(--gold-primary);
}

.note-input-field {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.note-input-field:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

textarea.note-input-field {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.notes-editor-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.notes-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem 0;
  flex-wrap: wrap;
}

.notes-search-input {
  flex: 1;
  min-width: 240px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.note-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: all var(--transition-fast);
}

.note-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.note-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.note-card-title {
  font-family: var(--font-serif-header);
  font-size: 1.1rem;
  color: var(--gold-light);
}

.note-card-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(197, 168, 128, 0.12);
  color: var(--gold-primary);
  border: 1px solid var(--border-color);
}

.note-card-ref {
  font-family: var(--font-serif-body);
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-style: italic;
}

.note-card-body {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.note-card-actions {
  display: flex;
  gap: 0.5rem;
}

.note-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.note-action-btn:hover {
  color: var(--gold-primary);
}

.note-action-btn.delete:hover {
  color: #ef4444;
}
