/* ============================================
   BIBLEE CHAT BLOG — Main Stylesheet
   Aesthetic: Editorial Gold + Deep Navy
   ============================================ */

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2e45;
  --gold: #c9a84c;
  --gold-light: #e4c87a;
  --gold-pale: #f7efdc;
  --cream: #faf7f2;
  --text: #1a1a2e;
  --text-muted: #5c6475;
  --white: #ffffff;
  --border: rgba(201, 168, 76, 0.2);
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 12px 48px rgba(13, 27, 42, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   HEADER
   ===================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-cross {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 18px !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

.header-tagline {
  text-align: center;
  padding: 6px 0 10px;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.header-tagline p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold-light);
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  padding: 16px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  font-family: 'DM Sans', sans-serif;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav.open { display: flex; }

/* =====================
   HERO
   ===================== */
.hero {
  background: var(--navy);
  position: relative;
  padding: 80px 24px 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '✝';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18vw;
  color: rgba(201,168,76,0.04);
  line-height: 1;
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-headline em {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-family: 'Source Serif 4', serif;
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  letter-spacing: 0.03em;
  transition: all 0.25s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 60px;
}

.hero-scroll-indicator span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.scroll-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201,168,76,0.4), transparent);
  max-width: 200px;
}

/* =====================
   MAIN CONTENT
   ===================== */
.main-content {
  padding: 72px 0 96px;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =====================
   POSTS GRID
   ===================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--navy-mid);
}

.post-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-card-excerpt {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.post-card-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-card-read {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.post-card-scripture {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  margin: 0 28px 28px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--navy);
  line-height: 1.5;
}

/* Skeleton */
.post-card.skeleton {
  height: 420px;
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, #f0ebe0 25%, #f7f2e8 50%, #f0ebe0 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Load More */
.load-more-wrap {
  text-align: center;
  margin-top: 56px;
}

.load-more-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--navy);
  padding: 14px 36px;
  cursor: pointer;
  transition: all 0.25s;
}

.load-more-btn:hover {
  background: var(--navy);
  color: var(--gold);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}

.empty-state .cross {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* =====================
   PROMO BANNER
   ===================== */
.promo-banner {
  background: var(--navy);
  padding: 64px 24px;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.promo-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.promo-cross {
  font-size: 3rem;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.3));
}

.promo-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--white);
  margin-bottom: 8px;
}

.promo-text p {
  font-family: 'Source Serif 4', serif;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.6;
}

.promo-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 16px 28px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.promo-btn:hover { background: var(--gold-light); }

/* =====================
   SINGLE POST PAGE
   ===================== */
.post-page .post-main {
  padding: 60px 0 100px;
}

.post-hero-image {
  width: 100%;
  height: clamp(300px, 45vw, 520px);
  object-fit: cover;
  display: block;
}

.post-image-credit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  padding: 6px 24px;
  background: var(--white);
}

.post-image-credit a { color: var(--text-muted); }

.post-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 0;
}

.post-category-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.post-meta-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-meta-source {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-meta-source a { color: var(--gold); font-weight: 600; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.post-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--gold-pale);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.post-body {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 20px;
  line-height: 1.2;
}

.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
}

.post-body p { margin-bottom: 24px; }

.post-body a { color: var(--gold); font-weight: 600; border-bottom: 1px solid rgba(201,168,76,0.3); }
.post-body a:hover { color: var(--gold-light); }

.post-body blockquote {
  border-left: 4px solid var(--gold);
  margin: 36px 0;
  padding: 20px 28px;
  background: var(--gold-pale);
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
}

/* Scripture closing section */
.scripture-section {
  margin-top: 56px;
  padding: 40px;
  background: var(--navy);
  border-top: 4px solid var(--gold);
  position: relative;
}

.scripture-section::before {
  content: '✝';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 40px;
  text-align: center;
}

.scripture-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.scripture-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--white);
  line-height: 1.65;
  text-align: center;
  margin-bottom: 12px;
}

.scripture-ref {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}

/* Post navigation */
.post-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-nav a:hover { color: var(--gold); }

/* Post loading state */
.post-loading {
  text-align: center;
  padding: 120px 24px;
}

.loading-cross {
  font-size: 3rem;
  color: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--navy);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand .logo-cross {
  font-size: 1.8rem;
  margin-top: 4px;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-verse {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  max-width: 300px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

.footer-bottom a { color: var(--gold); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .header-tagline { display: none; }

  .hero { padding: 56px 24px 48px; }
  .hero::after { display: none; }

  .posts-grid { grid-template-columns: 1fr; gap: 24px; }

  .promo-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promo-cross { display: none; }
  .promo-btn { width: 100%; text-align: center; }

  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }

  .scripture-section { padding: 32px 24px; }

  .post-meta-bar { flex-wrap: wrap; }
  .post-tags { margin-left: 0; }
}

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