/* ===== Believe250 — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --plum: #3b1f5e;
  --plum-light: #4e2a7a;
  --plum-dark: #2a1442;
  --gold: #d4a843;
  --gold-light: #f0c060;
  --cream: #faf8f4;
  --white: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(59,31,94,0.12);
  --shadow-lg: 0 8px 40px rgba(59,31,94,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.3; }

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

img { max-width: 100%; height: auto; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--plum);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--white);
  text-decoration: none;
}
.navbar-logo span.gold { color: var(--gold); font-family: 'Playfair Display', serif; }
.navbar-links {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.navbar-links a {
  padding: 6px 12px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active {
  background: var(--gold); color: var(--plum);
}
.navbar-social { display: flex; align-items: center; gap: 8px; }
.social-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem; font-weight: 700;
  transition: transform 0.2s; text-decoration: none;
}
.social-icon:hover { transform: scale(1.15); color: white; }
.hamburger {
  display: none; background: none; border: none;
  color: white; cursor: pointer; padding: 4px;
}
.mobile-menu {
  display: none; background: var(--plum-light);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px 16px;
}
.mobile-menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  margin: 3px 0; font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: var(--gold); color: var(--plum);
}
.mobile-menu .mobile-social {
  display: flex; gap: 10px; padding: 12px 14px 4px;
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px;
}

@media (max-width: 900px) {
  .navbar-links { display: none; }
  .navbar-social { display: none; }
  .hamburger { display: block; }
}
.mobile-menu.open { display: block; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 50%, #5a2d82 100%);
  color: white; text-align: center; padding: 80px 20px 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--gold); margin-bottom: 16px; }
.hero p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badge {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 6px 16px; font-size: 0.85rem; font-weight: 600; color: white;
  transition: background 0.15s, border-color 0.15s;
}
a.badge:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

/* ===== Page Container ===== */
.page { max-width: 1100px; margin: 0 auto; padding: 40px 20px 80px; }
.page-header { text-align: center; margin-bottom: 40px; }
.page-header h1 { font-size: 2.2rem; color: var(--plum); margin-bottom: 10px; }
.page-header p { color: var(--muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ===== Cards ===== */
.card {
  background: white; border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 30px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--plum); color: white; }
.btn-primary:hover { background: var(--plum-light); color: white; }
.btn-gold { background: var(--gold); color: var(--plum); }
.btn-gold:hover { background: var(--gold-light); color: var(--plum); }
.btn-outline { background: transparent; color: var(--plum); border: 2px solid var(--plum); }
.btn-outline:hover { background: var(--plum); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ===== Verse Card ===== */
.verse-card {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-light) 100%);
  color: white; border-radius: var(--radius-lg); padding: 32px;
  text-align: center; margin-bottom: 32px;
}
.verse-card .label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 16px;
}
.verse-card blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.7; margin-bottom: 16px; font-style: italic;
}
.verse-card cite { font-size: 0.9rem; color: var(--gold); font-style: normal; font-weight: 600; }

/* ===== Quick Links Grid ===== */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-bottom: 40px; }
.quick-link {
  background: white; border-radius: var(--radius); padding: 20px 12px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: all 0.2s; text-decoration: none; color: var(--text);
}
.quick-link:hover { background: var(--plum); color: white; transform: translateY(-3px); }
.quick-link:hover .ql-icon { filter: brightness(10); }
.quick-link .ql-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.quick-link .ql-label { font-size: 0.8rem; font-weight: 600; }

/* ===== Section Title ===== */
.section-title {
  font-size: 1.5rem; color: var(--plum); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* ===== Prayer Wall ===== */
.prayer-form { background: white; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-bottom: 32px; }
.prayer-form textarea, .prayer-form input, .prayer-form select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
  margin-bottom: 14px; outline: none; transition: border-color 0.2s;
  background: var(--surface);
}
.prayer-form textarea:focus, .prayer-form input:focus, .prayer-form select:focus {
  border-color: var(--plum);
}
.prayer-form textarea { resize: vertical; min-height: 100px; }
.prayer-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--plum); margin-bottom: 16px; }
.prayer-card .meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.prayer-card .text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 12px; }
.prayer-card .actions { display: flex; gap: 10px; }
.pray-btn {
  background: none; border: 1.5px solid var(--plum); color: var(--plum);
  padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.pray-btn:hover, .pray-btn.prayed { background: var(--plum); color: white; }

/* ===== Bible Reader ===== */
.bible-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: center; }
.bible-controls select {
  padding: 10px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; background: white; cursor: pointer; outline: none;
}
.bible-controls select:focus { border-color: var(--plum); }
.bible-text { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); line-height: 2; }
.bible-text .verse-num { color: var(--gold); font-weight: 700; font-size: 0.75rem; margin-right: 6px; vertical-align: super; }
.bible-text p { margin-bottom: 8px; }

/* ===== FaithGuide Chat ===== */
.chat-container { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.chat-header { background: linear-gradient(135deg, var(--plum), var(--plum-light)); color: white; padding: 20px 24px; }
.chat-header h2 { font-size: 1.3rem; margin-bottom: 4px; }
.chat-header p { font-size: 0.85rem; opacity: 0.8; }
.chat-messages { height: 420px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: #f1f1f1; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--plum); border-radius: 3px; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 0.92rem; line-height: 1.5; }
.msg-user { background: var(--plum); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-ai { background: var(--surface); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--border); }
.msg-typing { display: flex; gap: 5px; align-items: center; padding: 14px 18px; }
.msg-typing span { width: 8px; height: 8px; background: var(--muted); border-radius: 50%; animation: bounce 1.2s infinite; }
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-8px)} }
.chat-input-row { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input-row input {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 30px; font-family: inherit; font-size: 0.92rem; outline: none;
}
.chat-input-row input:focus { border-color: var(--plum); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 0; }
.suggestion-btn {
  background: rgba(59,31,94,0.08); border: 1px solid rgba(59,31,94,0.2);
  color: var(--plum); padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.suggestion-btn:hover { background: var(--plum); color: white; }

/* ===== Reading Plan ===== */
.plan-progress { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.progress-bar { background: var(--border); border-radius: 10px; height: 10px; overflow: hidden; margin: 12px 0; }
.progress-fill { background: linear-gradient(90deg, var(--plum), var(--gold)); height: 100%; border-radius: 10px; transition: width 0.5s; }
.day-card {
  background: white; border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 12px;
  display: flex; align-items: center; gap: 16px; cursor: pointer; transition: all 0.2s;
}
.day-card:hover { border-color: var(--plum); transform: translateX(4px); }
.day-card.completed { border-left: 4px solid var(--success); opacity: 0.7; }
.day-num { width: 42px; height: 42px; border-radius: 50%; background: var(--plum); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.day-card.completed .day-num { background: var(--success); }
.day-info h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.day-info p { font-size: 0.82rem; color: var(--muted); }
.day-theme { margin-left: auto; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }

/* ===== Shop ===== */
.shop-hero { background: linear-gradient(135deg, var(--plum-dark), var(--plum-light)); color: white; padding: 60px 20px; text-align: center; }
.shop-hero h1 { font-size: 2.5rem; color: var(--gold); margin-bottom: 12px; }
.shop-hero p { font-size: 1rem; opacity: 0.85; max-width: 600px; margin: 0 auto 24px; }
.shop-embed { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.shop-embed iframe { width: 100%; min-height: 800px; border: none; display: block; }

/* ===== Motivation ===== */
.motivation-card { background: linear-gradient(135deg, var(--plum) 0%, #6b3fa0 100%); color: white; border-radius: var(--radius-lg); padding: 32px; text-align: center; margin-bottom: 24px; }
.motivation-card .category { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.motivation-card blockquote { font-family: 'Playfair Display', serif; font-size: clamp(1.1rem, 2.5vw, 1.5rem); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.motivation-card cite { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ===== Declarations ===== */
.declaration-item { background: white; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); margin-bottom: 12px; font-size: 0.95rem; line-height: 1.6; }
.declaration-item strong { color: var(--plum); }

/* ===== Journal ===== */
.journal-entry { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.journal-entry .date { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.journal-entry .content { font-size: 0.95rem; line-height: 1.7; color: var(--text); }

/* ===== Testimonies ===== */
.testimony-card { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.testimony-card .author { font-weight: 700; color: var(--plum); margin-bottom: 4px; }
.testimony-card .date { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.testimony-card .text { font-size: 0.93rem; line-height: 1.7; font-style: italic; }

/* ===== Audio ===== */
.audio-card { background: white; border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.audio-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--plum); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.audio-info { flex: 1; }
.audio-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.audio-info p { font-size: 0.82rem; color: var(--muted); }
.audio-card audio { width: 100%; margin-top: 10px; }

/* ===== Scripture Helper ===== */
.scripture-result { background: white; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-top: 24px; }
.scripture-result .ref { font-size: 0.8rem; color: var(--gold); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.scripture-result blockquote { font-family: 'Playfair Display', serif; font-size: 1.2rem; line-height: 1.8; font-style: italic; color: var(--plum); }

/* ===== Video Vault ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.video-card iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.video-card .video-info { padding: 14px 16px; }
.video-card .video-info h3 { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* ===== Footer ===== */
.footer { background: var(--plum-dark); color: rgba(255,255,255,0.7); text-align: center; padding: 40px 20px; margin-top: 60px; }
.footer .footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--gold); margin-bottom: 12px; }
.footer .footer-social { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
.footer p { font-size: 0.85rem; margin-top: 12px; }
.footer a { color: var(--gold); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-plum { color: var(--plum); }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.hidden { display: none; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { padding: 50px 16px 40px; }
  .page { padding: 24px 16px 60px; }
  .chat-messages { height: 320px; }
  .audio-card { flex-direction: column; align-items: flex-start; }
}


/* ===== Additional Classes (added) ===== */
.product-card {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { font-size: 3rem; margin-bottom: 12px; }
.product-card h3 { font-size: 1rem; font-weight: 700; color: var(--plum); margin-bottom: 8px; }
.product-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.shop-banner {
  background: linear-gradient(135deg, var(--plum) 0%, var(--gold) 100%);
  border-radius: var(--radius-lg); padding: 40px 24px; text-align: center;
  color: #fff; margin-bottom: 32px;
}
.shop-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.shop-banner p { font-size: 1rem; opacity: 0.9; max-width: 400px; margin: 0 auto; }
.decl-card {
  display: flex; align-items: center; justify-content: space-between;
  background: white; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px; cursor: pointer;
  transition: all 0.15s; gap: 12px;
}
.decl-card:hover { border-color: var(--plum); background: #f5f0ff; }
.decl-card.spoken { border-color: var(--gold); background: #fffbf0; }
.decl-text { font-size: 0.9rem; color: var(--text); line-height: 1.5; flex: 1; }
.decl-speak { font-size: 0.8rem; color: var(--muted); flex-shrink: 0; }
.journal-form {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 32px; box-shadow: var(--shadow);
}
.journal-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.journal-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px;
}
.journal-header h3 { font-size: 1rem; font-weight: 600; color: var(--plum); }
.journal-meta { font-size: 0.8rem; color: var(--muted); }
.journal-body { font-size: 0.9rem; color: var(--text); line-height: 1.7; }
.delete-btn {
  background: none; border: none; cursor: pointer; font-size: 1rem;
  opacity: 0.5; transition: opacity 0.15s;
}
.delete-btn:hover { opacity: 1; }
.tag {
  display: inline-block; background: rgba(59,31,94,0.08);
  border: 1px solid rgba(59,31,94,0.2); border-radius: 100px;
  padding: 2px 10px; font-size: 0.75rem; color: var(--plum); font-weight: 600;
}
.audio-card.playing { border-color: var(--gold) !important; background: #fffbf0 !important; }
.plan-progress {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid var(--border);
}

.navbar-logo img { width: 32px; height: 32px; border-radius: 7px; }

/* ===== Form field display fix ===== */
.prayer-form input, .prayer-form select, .prayer-form textarea,
.journal-form input, .journal-form select, .journal-form textarea,
.testimony-form input, .testimony-form select, .testimony-form textarea {
  display: block;
  box-sizing: border-box;
}
