/* ============================================================
   Sacred Path Numbers — Global Stylesheet
   Theme: Deep Purple + Gold | Pure CSS3, no frameworks
   ============================================================ */

/* ---- 1. Custom Properties ---- */
:root {
  --bg:            #08071A;
  --bg-surface:    #10102A;
  --bg-card:       #141430;
  --bg-card-hover: #1A1A3A;
  --border:        #22224A;

  --purple:        #6D28D9;
  --purple-light:  #8B5CF6;
  --purple-glow:   rgba(109, 40, 217, 0.25);

  --gold:          #C9963A;
  --gold-light:    #E0B84A;
  --gold-glow:     rgba(201, 150, 58, 0.18);
  --gold-text:     #D4AF37;

  --text:          #EDE8FF;
  --text-muted:    #8B7DB5;
  --text-faint:    #5A5080;

  --cat-angel:     #5B21B6;
  --cat-twin:      #9F1239;
  --cat-manifest:  #0E7490;
  --cat-numerology:#7C3AED;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --font-heading:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 8px 40px rgba(109, 40, 217, 0.25);
  --transition:    0.22s ease;
}

/* ---- 2. Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- 3. Layout ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- 4. Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* ---- 5. Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
  min-height: 52px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #1A0A00;
  box-shadow: 0 4px 20px rgba(201, 150, 58, 0.35);
}

.btn--purple {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4);
}

.btn--hero {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.btn--large {
  font-size: 1.1rem;
  padding: 1rem 2.75rem;
}

/* ---- 6. Header & Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 7, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-symbol {
  color: var(--gold-text);
  font-size: 1.1rem;
  line-height: 1;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
  background: rgba(109, 40, 217, 0.15);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- 7. Hero Section ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(109, 40, 217, 0.28) 0%, transparent 70%),
              var(--bg);
}

.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.15;
}

.hero__glow--left {
  background: var(--purple);
  top: -10%;
  left: -10%;
}

.hero__glow--right {
  background: var(--gold);
  bottom: -10%;
  right: -10%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(201, 150, 58, 0.35);
  border-radius: 100px;
  background: rgba(201, 150, 58, 0.07);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pillar-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  background: rgba(109, 40, 217, 0.18);
  border: 1px solid rgba(109, 40, 217, 0.35);
  color: var(--purple-light);
}

/* Twinkling stars (generated by JS) */
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.05; transform: scale(0.7); }
  to   { opacity: 0.9;  transform: scale(1.3); }
}

/* ---- 8. Post Index Section ---- */
.post-index {
  padding: 5rem 0 4rem;
}

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

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}

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

/* ---- 9. Post Grid ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ---- 10. Post Card ---- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-card);
}

.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: rgba(109, 40, 217, 0.4);
  background: var(--bg-card-hover);
}

/* Image area */
.post-card__image-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.post-card__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

/* Gradient fallback — shows when image hasn't been uploaded yet */
.post-card__image-wrap--angel-numbers {
  background: linear-gradient(135deg, #1E0A4A 0%, #4B0082 50%, #0D0D2A 100%);
}
.post-card__image-wrap--twin-flames {
  background: linear-gradient(135deg, #3A0020 0%, #7F1134 50%, #1A0A2A 100%);
}
.post-card__image-wrap--manifestation {
  background: linear-gradient(135deg, #012E3A 0%, #0E7490 50%, #04121A 100%);
}
.post-card__image-wrap--numerology {
  background: linear-gradient(135deg, #1E0A60 0%, #5B21B6 50%, #0D0D2A 100%);
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__image {
  transform: scale(1.04);
}

/* Category badge */
.post-card__category {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  color: #fff;
  pointer-events: none;
}

.post-card__category--angel-numbers {
  background: var(--cat-angel);
}
.post-card__category--twin-flames {
  background: var(--cat-twin);
}
.post-card__category--manifestation {
  background: var(--cat-manifest);
}
.post-card__category--numerology {
  background: var(--cat-numerology);
}

/* Card body */
.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__date {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.post-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.post-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.post-card__title a:hover {
  color: var(--purple-light);
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.post-card__read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition), gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.post-card__read-more:hover {
  color: var(--gold-light);
}

/* ---- 11. CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, #1A0B40 0%, #2D1260 40%, #1A0B40 100%);
  border-top: 1px solid rgba(109, 40, 217, 0.35);
  border-bottom: 1px solid rgba(109, 40, 217, 0.35);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201, 150, 58, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.cta-banner__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 1rem;
  font-style: italic;
}

.cta-banner__text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.cta-banner__fine {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.cta-banner__disclosure {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.cta-banner__disclosure a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- 12. Footer ---- */
.site-footer {
  background: #050510;
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 3rem;
}

.site-footer__brand {
  flex-shrink: 0;
}

.site-footer__tagline {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
  max-width: 200px;
  line-height: 1.5;
}

.site-footer__nav {
  display: flex;
  gap: 3rem;
}

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.site-footer__bottom p {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.6;
}

.site-footer__bottom a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- 13. Responsive ---- */
@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  /* Nav */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0D0D22;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0.25rem;
    z-index: 99;
  }

  .nav__menu.nav__menu--open {
    display: flex;
  }

  .nav__link {
    padding: 0.65rem 1rem;
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* Footer */
  .site-footer__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer__nav {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .post-index {
    padding: 3rem 0 2.5rem;
  }

  .cta-banner {
    padding: 3.5rem 0;
  }

  .post-card__body {
    padding: 1.25rem;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 1.5rem;
  }
}
