/* ============================================================
   AMRITANANDA — Main Stylesheet
   Spiritual / Wellness / Philosophy Blog
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Cinzel:wght@400;500;600&display=swap');

/* --- Variables --- */
:root {
  --forest-deep:   #0C1F14;
  --forest:        #1B3A2D;
  --forest-mid:    #2D5A45;
  --cream:         #FAF6ED;
  --cream-warm:    #F0E6D0;
  --parchment:     #E5D5B8;
  --saffron:       #C9871A;
  --saffron-light: #E5A935;
  --terracotta:    #B5624A;
  --text-dark:     #1A1612;
  --text-body:     #3D3028;
  --text-muted:    #8A7A6E;
  --border:        rgba(201,135,26,.2);
  --shadow:        0 4px 24px rgba(15,32,24,.1);
  --shadow-hover:  0 14px 44px rgba(15,32,24,.18);
  --radius:        8px;
  --ease:          cubic-bezier(.4,0,.2,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lora', Georgia, serif; background: var(--cream); color: var(--text-body);
       font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
h1,h2,h3,h4,h5 { font-family: 'Cormorant Garamond', Georgia, serif;
                  color: var(--text-dark); line-height: 1.2; font-weight: 600; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav.scrolled {
  background: rgba(12,31,20,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,135,26,.15);
}
.nav-logo {
  font-family: 'Cinzel', serif; font-size: 1.25rem; font-weight: 600;
  color: var(--cream); letter-spacing: .12em; text-transform: uppercase;
}
.nav-logo span { color: var(--saffron); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(250,246,237,.7);
  transition: color .2s;
}
.nav-links a:hover { color: var(--saffron-light); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 60%, rgba(201,135,26,.18) 0%, transparent 52%),
    radial-gradient(ellipse at 78% 25%, rgba(45,90,69,.4) 0%, transparent 52%),
    linear-gradient(158deg, #08160D 0%, #1B3A2D 45%, #0C1A10 100%);
}

/* Concentric rings */
.hero::before, .hero::after,
.hero-ring { position: absolute; border-radius: 50%; top: 50%; left: 50%; }
.hero::before {
  content: ''; width: 680px; height: 680px;
  border: 1px solid rgba(201,135,26,.1);
  transform: translate(-50%,-50%);
  animation: pulse 7s ease-in-out infinite;
}
.hero::after {
  content: ''; width: 460px; height: 460px;
  border: 1px solid rgba(201,135,26,.18);
  transform: translate(-50%,-50%);
  animation: pulse 7s ease-in-out infinite 2.5s;
}
.hero-ring {
  width: 880px; height: 880px;
  border: 1px solid rgba(201,135,26,.06);
  transform: translate(-50%,-50%);
  animation: pulse 7s ease-in-out infinite 5s;
}
@keyframes pulse {
  0%,100% { opacity: .35; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: .7;  transform: translate(-50%,-50%) scale(1.04); }
}

.hero-content {
  position: relative; z-index: 2; max-width: 820px; padding: 2rem;
  animation: fadeUp 1.2s ease-out both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-om {
  font-family: 'Cormorant Garamond', serif; font-size: 3rem;
  color: var(--saffron); opacity: .75; margin-bottom: 1rem;
  animation: fadeUp 1.2s ease-out .2s both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 300;
  color: var(--cream); letter-spacing: .07em; line-height: 1.04;
  margin-bottom: 1.25rem;
}
.hero-title em { font-style: italic; color: var(--saffron-light); font-weight: 400; }
.hero-divider {
  width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  margin: 1.5rem auto;
}
.hero-subtitle {
  font-family: 'Lora', serif; font-size: 1.05rem;
  color: rgba(250,246,237,.62); font-style: italic; letter-spacing: .03em;
  max-width: 520px; margin: 0 auto 2.75rem; line-height: 1.85;
}
.hero-cta {
  display: inline-block; padding: .9rem 2.75rem;
  border: 1px solid rgba(201,135,26,.5); color: var(--saffron-light);
  font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; position: relative; overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.hero-cta::before {
  content: ''; position: absolute; inset: 0; background: var(--saffron);
  transform: translateX(-100%); transition: transform .4s var(--ease); z-index: -1;
}
.hero-cta:hover { color: var(--forest-deep); border-color: var(--saffron); }
.hero-cta:hover::before { transform: translateX(0); }

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(250,246,237,.35); font-family: 'Cinzel', serif;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.scroll-indicator::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(201,135,26,.5), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--saffron); margin-bottom: 1rem; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 400;
  color: var(--text-dark); line-height: 1.2;
}
.section-line {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--terracotta));
  margin: 1.25rem auto 0;
}

/* ============================================================
   BLOG GRID & CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
  border: 1px solid rgba(229,213,184,.4);
  animation: cardFade .6s ease-out both;
}
.blog-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); border-color: rgba(201,135,26,.28); }

@keyframes cardFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blog-card:nth-child(1) { animation-delay: .08s; }
.blog-card:nth-child(2) { animation-delay: .14s; }
.blog-card:nth-child(3) { animation-delay: .20s; }
.blog-card:nth-child(4) { animation-delay: .26s; }
.blog-card:nth-child(5) { animation-delay: .32s; }
.blog-card:nth-child(6) { animation-delay: .38s; }

.card-image { height: 200px; position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .card-image img { transform: scale(1.05); }
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: rgba(255,255,255,.45);
  font-family: 'Cormorant Garamond', serif;
}

/* Category gradient themes */
.cat-meditation  { background: linear-gradient(135deg,#1B3A2D,#2D5A45); }
.cat-vedanta     { background: linear-gradient(135deg,#3A1B2D,#5A2D45); }
.cat-philosophy  { background: linear-gradient(135deg,#1B2A3A,#2D455A); }
.cat-yoga        { background: linear-gradient(135deg,#3A2D1B,#5A4A2D); }
.cat-ayurveda    { background: linear-gradient(135deg,#2D3A1B,#455A2D); }
.cat-mindfulness { background: linear-gradient(135deg,#1B353A,#2D555A); }
.cat-default     { background: linear-gradient(135deg,#2D2A1B,#4A4535); }

.card-body   { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-footer { padding: 0 1.5rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }

.card-meta   { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.card-category {
  font-family: 'Cinzel', serif; font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--saffron);
  padding: .2rem .75rem; border: 1px solid rgba(201,135,26,.3); border-radius: 20px;
}
.card-date   { font-size: .78rem; color: var(--text-muted); font-style: italic; }

.card-title  { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600;
               color: var(--text-dark); line-height: 1.3; margin-bottom: .75rem;
               transition: color .2s; }
.blog-card:hover .card-title { color: var(--forest); }

.card-excerpt {
  font-size: .88rem; color: var(--text-muted); line-height: 1.7; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.read-more {
  font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--saffron);
  display: flex; align-items: center; gap: .4rem; transition: gap .2s;
}
.read-more::after { content: '→'; transition: transform .2s; }
.blog-card:hover .read-more::after { transform: translateX(4px); }

.read-time { font-size: .76rem; color: var(--text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block; padding: 1rem 3.25rem;
  background: var(--forest); color: var(--cream);
  font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; border-radius: var(--radius);
  transition: background .25s, transform .25s, box-shadow .25s;
  border: 1px solid transparent;
}
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,58,45,.3); }

.btn-outline {
  display: inline-block; padding: 1rem 3.25rem;
  background: transparent; color: var(--forest);
  font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; border-radius: var(--radius);
  border: 1px solid var(--forest); transition: all .25s;
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.cta-section { text-align: center; margin-top: 4rem; }

/* ============================================================
   PAGE HEADER (blogs.php, post.php)
   ============================================================ */
.page-header {
  background: linear-gradient(158deg,#08160D 0%,#1B3A2D 100%);
  padding: 8rem 0 4.5rem; text-align: center;
}
.page-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem,5.5vw,4.5rem); font-weight: 300;
  color: var(--cream); letter-spacing: .08em;
}
.page-header-sub { font-size: 1rem; color: rgba(250,246,237,.55); font-style: italic; margin-top: .75rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3.5rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--parchment); border-radius: 4px;
  font-family: 'Cinzel', serif; font-size: .78rem;
  transition: all .2s; color: var(--text-body);
}
.pagination a:hover, .pagination .current { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* Category filter pills */
.cat-filter { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.cat-pill {
  font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; padding: .4rem 1.2rem;
  border: 1px solid var(--parchment); border-radius: 20px; color: var(--text-muted);
  background: transparent; transition: all .2s; cursor: pointer;
}
.cat-pill:hover  { border-color: var(--saffron); color: var(--saffron); }
.cat-pill.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-header { background: linear-gradient(158deg,#08160D 0%,#1B3A2D 100%); padding: 8rem 0 5rem; text-align: center; }
.post-category-badge {
  font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--saffron-light); margin-bottom: 1.5rem; display: block;
}
.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem,5.5vw,4.75rem); font-weight: 400;
  color: var(--cream); line-height: 1.12; max-width: 900px; margin: 0 auto 1.5rem;
}
.post-meta {
  display: flex; justify-content: center; gap: 2rem;
  color: rgba(250,246,237,.5); font-size: .85rem; font-style: italic;
}

.post-cover { max-width: 900px; margin: -3rem auto 3rem; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.post-cover img { width: 100%; height: 420px; object-fit: cover; }

.post-content-wrap { max-width: 740px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.post-content { font-family: 'Lora', serif; font-size: 1.08rem; line-height: 1.92; color: var(--text-body); }
.post-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; margin: 2.5rem 0 1rem; color: var(--text-dark); }
.post-content p  { margin-bottom: 1.5rem; }
.post-content em { color: var(--forest-mid); font-style: italic; }
.post-content blockquote {
  border-left: 3px solid var(--saffron); padding: 1rem 1.75rem;
  margin: 2rem 0; background: rgba(201,135,26,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; font-size: 1.12rem; color: var(--text-dark);
}

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--parchment); }
.tag {
  font-family: 'Cinzel', serif; font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .9rem;
  border: 1px solid var(--parchment); border-radius: 20px; color: var(--text-muted);
  transition: all .2s;
}
.tag:hover { border-color: var(--saffron); color: var(--saffron); }

/* ============================================================
   ABOUT BAND
   ============================================================ */
.about-band { background: var(--cream-warm); }
.about-band .about-text { font-size: 1.08rem; line-height: 1.9; color: var(--text-body); font-style: italic; margin-top: 2rem; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--forest-deep); padding: 4rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-family: 'Cinzel', serif; font-size: 1.15rem; letter-spacing: .12em; color: var(--cream); margin-bottom: 1rem; }
.footer-brand span { color: var(--saffron); }
.footer-desc { font-size: .86rem; color: rgba(250,246,237,.42); line-height: 1.7; font-style: italic; }
.footer-heading { font-family: 'Cinzel', serif; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--saffron); margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { font-size: .86rem; color: rgba(250,246,237,.48); transition: color .2s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(250,246,237,.07); padding-top: 2rem; text-align: center; font-size: .78rem; color: rgba(250,246,237,.22); font-style: italic; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .blog-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blog-grid  { grid-template-columns: 1fr; }
  .nav-links  { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .post-cover { margin-top: 2rem; }
  .post-meta  { flex-direction: column; gap: .4rem; }
  .hero-title { font-size: clamp(3rem,12vw,5rem); }
}
