/* ================================================
   ASTHASTRO THEME — MAIN STYLES
   Pixel-perfect recreation of the reference design
   ================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-primary:    #6b21a8;
  --purple-medium:     #9333ea;
  --purple-light:      #c4b5e8;
  --purple-ultra-light:#f5f0ff;
  --purple-pale:       #ede9f8;
  --purple-soft:       #e8e0f8;
  --gold:              #d4a853;
  --gold-light:        #f0d9a0;
  --blush:             #fce7f3;
  --blush-light:       #fdf2f8;
  --bg-white:          #ffffff;
  --bg-cream:          #fdfbf8;
  --bg-light:          #f9f7ff;
  --text-dark:         #1e1b4b;
  --text-medium:       #4c4568;
  --text-light:        #7c7a9a;
  --text-muted:        #9d9bb8;
  --border-light:      #ede9f8;
  --border-ultra:      #f3f0ff;
  --shadow-xs:  0 1px 4px rgba(107,33,168,0.06);
  --shadow-sm:  0 2px 10px rgba(107,33,168,0.08);
  --shadow-md:  0 4px 20px rgba(107,33,168,0.10);
  --shadow-lg:  0 8px 32px rgba(107,33,168,0.12);
  --shadow-xl:  0 12px 48px rgba(107,33,168,0.14);
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-medium);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ================================================
   TYPOGRAPHY
   ================================================ */
.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ================================================
   NAVBAR
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-ultra);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo image */
.logo-link-img {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* WordPress custom logo — constrain to navbar height */
.header-logo .custom-logo-link {
  display: flex;
  align-items: center;
}
.header-logo img,
.header-logo .custom-logo-link img,
.header-logo .custom-logo,
.header-logo img.custom-logo,
.custom-logo-link img,
img.custom-logo {
  height: 52px !important;
  width: auto !important;
  max-height: 52px !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
}
.footer-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-logo-img:hover { opacity: 1; }
.footer-logo a { display: block; }
/* Footer custom logo size */
.footer-brand .custom-logo-link img,
.footer-brand img.custom-logo {
  height: 90px !important;
  width: auto !important;
  max-height: 90px !important;
}

/* Logo text fallback */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate-slow 20s linear infinite;
}
@keyframes rotate-slow { to { transform: rotate(360deg); } }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}
.logo-tagline {
  font-size: 10px;
  color: var(--purple-medium);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Navigation */
.header-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item a {
  display: block;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-medium);
  border-radius: var(--r-full);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-item a:hover { color: var(--purple-primary); background: var(--purple-ultra-light); }
.nav-item.active a { color: var(--purple-primary); font-weight: 600; }
.nav-item.active > a { position: relative; }
.nav-item.active > a::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--purple-primary);
  border-radius: var(--r-full);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  color: var(--text-medium);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--purple-ultra-light); color: var(--purple-primary); }
.moon-icon { display: none; }
.btn-consultation {
  padding: 8px 18px;
  background: var(--purple-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-consultation:hover {
  background: var(--purple-medium);
  box-shadow: 0 4px 16px rgba(107,33,168,0.3);
  transform: translateY(-1px);
}
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: var(--text-medium); border-radius: 2px; transition: all 0.3s; }

/* Search Bar */
.search-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: none;
}
.search-bar.open { display: block; }
.search-bar form {
  display: flex;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  overflow: hidden;
  padding: 0 4px 0 16px;
}
.search-bar input {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 8px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
}
.search-bar button {
  padding: 8px 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

/* ================================================
   PAGE LAYOUT — 2 COLUMN
   ================================================ */
.site-main {
  background: var(--bg-white);
  min-height: 100vh;
}

.page-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.main-content { min-width: 0; }
.right-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
  background: linear-gradient(135deg, #f0ebff 0%, #fdf2f8 50%, #fff8f8 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  min-height: 380px;
}

.hero-text {
  padding: 40px 32px 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple-medium);
  text-transform: uppercase;
}
.badge-star { color: var(--gold); font-size: 8px; }

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.hero-title-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #d4a853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-medium);
  max-width: 300px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Hero Illustration ---- */
.hero-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 380px;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
.hero-bg-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(196,181,232,0.35) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation-delay: 0s;
}
.hero-bg-orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(249,232,232,0.4) 0%, transparent 70%);
  top: 20%; right: 10%;
  animation-delay: -2s;
}
.hero-bg-orb-3 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(212,168,83,0.2) 0%, transparent 70%);
  bottom: 15%; left: 20%;
  animation-delay: -4s;
}

.hero-arch {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arch-inner {
  width: 320px;
  height: 340px;
  background: linear-gradient(180deg, rgba(196,181,232,0.2) 0%, rgba(249,232,232,0.2) 100%);
  border-radius: 160px 160px 20px 20px;
  border: 1.5px solid rgba(196,181,232,0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-arch-inner::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 155px 155px 14px 14px;
  border: 1px solid rgba(212,168,83,0.2);
}

/* Zodiac Ring */
.zodiac-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zodiac-ring span {
  position: absolute;
  font-size: 11px;
  color: rgba(107,33,168,0.35);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 0 150px;
  transform: rotate(calc(var(--i) * 30deg)) translateY(-145px);
}

.hero-illustration {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 5s ease-in-out infinite;
}

.meditation-figure { position: relative; }
.figure-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(196,181,232,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}
.figure-svg { width: 160px; height: 200px; }

.crystal {
  position: absolute;
  animation: float 4s ease-in-out infinite;
}
.crystal-left { left: -35px; bottom: 40px; animation-delay: -1s; }
.crystal-right { right: -30px; bottom: 60px; animation-delay: -2.5s; }

.hero-flower {
  position: absolute;
  font-size: 18px;
  animation: float 5s ease-in-out infinite;
}
.hero-flower-1 { top: 30px; left: 20px; animation-delay: -0.5s; }
.hero-flower-2 { top: 50px; right: 25px; font-size: 14px; animation-delay: -1.5s; }
.hero-flower-3 { bottom: 30px; left: 35px; font-size: 12px; animation-delay: -3s; }

.hero-candle { position: absolute; bottom: 20px; right: 30px; font-size: 20px; }

.hero-star {
  position: absolute;
  color: var(--gold);
  font-size: 12px;
  animation: twinkle 2s ease-in-out infinite;
}
.s1 { top: 15px; left: 60px; animation-delay: -0.3s; }
.s2 { top: 20px; right: 50px; font-size: 9px; animation-delay: -0.8s; }
.s3 { top: 70px; left: 10px; font-size: 8px; animation-delay: -1.2s; }
.s4 { bottom: 50px; right: 15px; font-size: 10px; animation-delay: -0.5s; }
.s5 { bottom: 80px; left: 50px; font-size: 7px; animation-delay: -1.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ================================================
   CATEGORY SECTION
   ================================================ */
.category-section {
  background: linear-gradient(90deg, #f0ebff 0%, #fdf2f8 50%, #fff0f8 100%);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: var(--r-md);
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}
.category-item:hover {
  background: rgba(255,255,255,0.7);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s;
}
.category-item:hover .category-icon { box-shadow: var(--shadow-sm); }

.category-text { display: flex; flex-direction: column; gap: 1px; }
.category-name { font-size: 12px; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.category-sub { font-size: 10px; color: var(--text-light); }

/* ================================================
   SECTION HEADER CENTER
   ================================================ */
.section-header-center {
  text-align: center;
  padding: 8px 0 16px;
}
.section-title-center {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  font-style: italic;
}
.section-dot {
  color: var(--gold);
  font-size: 14px;
  margin-top: 6px;
}

/* ================================================
   FEATURE CARDS
   ================================================ */
.feature-cards-section { margin-bottom: 20px; }

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-ultra);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.feature-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.feature-card-desc {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* --- Numerology Card --- */
.numerology-card {
  background: linear-gradient(135deg, #f5f0ff 0%, #fdf2f8 100%);
  border-color: #e8e0f8;
}
.numerology-bg-numbers {
  position: absolute;
  right: 10px;
  top: 10px;
  opacity: 0.12;
  pointer-events: none;
}
.bg-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--purple-primary);
  line-height: 0.9;
}
.n1 { font-size: 64px; }
.n2 { font-size: 48px; margin-top: -10px; }
.n3 { font-size: 52px; margin-top: -12px; }
.n4 { font-size: 40px; margin-top: -8px; }
.n5 { font-size: 44px; margin-top: -10px; }

.numerology-form { display: flex; flex-direction: column; gap: 8px; }
.numerology-result { text-align: center; animation: fadeIn 0.4s ease; }
.result-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--purple-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.result-desc {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* --- Tarot Card Feature --- */
.tarot-cards-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  perspective: 600px;
}
.tarot-card-item {
  width: 64px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  cursor: pointer;
  border-radius: 8px;
}
.tarot-card-item.flipped { transform: rotateY(180deg); }
.tarot-card-face {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tarot-face-back {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
  border: 1px solid rgba(255,255,255,0.2);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 8px);
}
.tarot-face-back::after {
  content: '✦';
  font-size: 18px;
  color: rgba(255,255,255,0.5);
}
.tarot-face-front {
  background: linear-gradient(135deg, #fdf2f8, #f5f0ff);
  border: 1px solid var(--border-light);
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 4px;
}
.tarot-symbol { font-size: 24px; color: var(--purple-primary); }
.tarot-name { font-size: 8px; font-weight: 600; color: var(--text-medium); text-align: center; }
.tarot-reading {
  background: var(--purple-ultra-light);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 8px;
  animation: fadeIn 0.4s ease;
}

/* --- Zodiac Feature Card --- */
.zodiac-wheel-container {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.zodiac-wheel {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px solid var(--purple-light);
  background: radial-gradient(circle, var(--purple-ultra-light) 0%, white 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-center {
  font-size: 22px;
  color: var(--purple-primary);
  z-index: 2;
}
.wheel-ring { position: absolute; inset: 0; }
.wheel-sign {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 11px;
  color: var(--purple-medium);
  transform:
    translateX(-50%)
    translateY(-50%)
    rotate(calc(var(--deg)))
    translateY(-52px)
    rotate(calc(-1 * var(--deg)));
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--purple-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--purple-medium);
  box-shadow: 0 4px 20px rgba(107,33,168,0.3);
  transform: translateY(-1px);
  color: white;
}
.btn-primary.w-full { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.8);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: white;
  border-color: var(--purple-light);
  color: var(--purple-primary);
  box-shadow: var(--shadow-sm);
}

.btn-outline-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  background: transparent;
  color: var(--purple-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1.5px solid var(--purple-light);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
}
.btn-outline-purple:hover {
  background: var(--purple-ultra-light);
  border-color: var(--purple-medium);
}

.btn-ghost {
  display: inline-block;
  padding: 7px 16px;
  font-size: 12px;
  color: var(--purple-primary);
  border: 1px solid var(--purple-light);
  border-radius: var(--r-full);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--purple-ultra-light); }

/* ================================================
   INPUT FIELDS
   ================================================ */
.input-field {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: rgba(255,255,255,0.8);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus { border-color: var(--purple-medium); box-shadow: 0 0 0 3px rgba(147,51,234,0.08); }
.input-date { color-scheme: light; }

/* ================================================
   CONSULTATION CTA
   ================================================ */
.consultation-cta {
  background: linear-gradient(135deg, #f5f0ff 0%, #fdf5ff 40%, #fff8f5 100%);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-ultra);
  overflow: hidden;
  margin-bottom: 4px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  gap: 20px;
}

.cta-content { flex: 1; }
.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}
.cta-desc {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 18px;
}
.cta-decoration { flex-shrink: 0; animation: float 5s ease-in-out infinite; }
.cta-crystal { opacity: 0.85; }

/* ================================================
   SIDEBAR WIDGETS
   ================================================ */
.sidebar-widget {
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-ultra);
  box-shadow: var(--shadow-xs);
  padding: 18px 16px;
  transition: box-shadow 0.2s;
}
.sidebar-widget:hover { box-shadow: var(--shadow-sm); }

/* Widget Titles */
.widget-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}
.widget-title-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.widget-date { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.widget-text { font-size: 12.5px; color: var(--text-medium); line-height: 1.55; margin-bottom: 12px; }

/* Daily Cosmic */
.widget-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.sun-widget-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #fff8e8, #fef3c7);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-dark-sm {
  display: inline-block;
  padding: 7px 16px;
  background: var(--text-dark);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-dark-sm:hover { background: var(--purple-primary); }

/* Angel Number */
.angel-widget { text-align: center; }
.angel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.angel-subtitle { font-size: 11px; color: var(--text-light); margin-bottom: 6px; }
.angel-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--purple-primary);
  line-height: 1;
  margin-bottom: 6px;
  animation: pulse-glow 3s ease-in-out infinite;
}
.angel-meaning { font-size: 12px; color: var(--text-medium); line-height: 1.45; margin-bottom: 12px; }
.btn-outline-sm {
  display: inline-block;
  padding: 7px 18px;
  font-size: 12px;
  color: var(--purple-primary);
  border: 1.5px solid var(--purple-light);
  border-radius: var(--r-full);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-outline-sm:hover { background: var(--purple-ultra-light); border-color: var(--purple-medium); }

/* Quick Access */
.quick-access-widget {}
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  background: var(--bg-light);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}
.quick-item:hover { background: var(--purple-ultra-light); transform: translateY(-2px); }
.quick-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-item span { font-size: 10px; font-weight: 500; color: var(--text-medium); line-height: 1.2; }

/* Latest Articles */
.articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.view-all-link {
  font-size: 12px;
  color: var(--purple-medium);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.view-all-link:hover { color: var(--purple-primary); }

.article-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-ultra);
}
.article-item:last-child { border-bottom: none; padding-bottom: 0; }

.article-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e0f8, #f5e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.article-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.article-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--purple-primary);
  text-transform: uppercase;
}
.article-title-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.article-title-link:hover { color: var(--purple-primary); }
.article-date { font-size: 10.5px; color: var(--text-muted); }

/* Newsletter Widget */
.newsletter-widget { position: relative; overflow: hidden; }
.newsletter-decoration {
  position: absolute;
  right: -10px;
  bottom: -10px;
  opacity: 0.5;
  pointer-events: none;
}
.newsletter-crystal-svg { width: 100px; }
.newsletter-desc { font-size: 12px; color: var(--text-medium); line-height: 1.5; margin-bottom: 10px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.btn-purple-full {
  padding: 10px 14px;
  background: var(--purple-primary);
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-purple-full:hover { background: var(--purple-medium); }
.newsletter-success {
  text-align: center;
  padding: 12px;
  animation: fadeIn 0.4s ease;
}
.success-icon {
  width: 36px;
  height: 36px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 8px;
}
.newsletter-success p { font-size: 12px; color: var(--text-medium); }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: linear-gradient(180deg, #faf8ff 0%, #f0ebff 100%);
  border-top: 1px solid var(--border-ultra);
  margin-top: 40px;
}

.footer-top { max-width: 1400px; margin: 0 auto; padding: 48px 24px 36px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.logo-icon-sm { display: flex; }
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}
.footer-brand-tagline { font-size: 10px; color: var(--purple-medium); }
.footer-desc { font-size: 12.5px; color: var(--text-medium); line-height: 1.6; margin-bottom: 16px; }

.footer-social { display: flex; gap: 8px; }
.social-icon {
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: all 0.2s;
}
.social-icon:hover { background: var(--purple-primary); color: white; border-color: var(--purple-primary); }

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 12.5px;
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-ultra);
  padding: 16px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.animate-on-scroll { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; transform: translateY(20px); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.hero-text { animation: fadeInLeft 0.8s ease both; }
.hero-image-container { animation: fadeIn 0.8s ease 0.2s both; }
.category-section { animation: fadeInUp 0.6s ease 0.3s both; }
.feature-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s both; }
.feature-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s both; }
.feature-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s both; }
.sidebar-widget { animation: fadeIn 0.5s ease both; }

/* ================================================
   UTILITY
   ================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ================================================
   RESPONSIVE — TABLET
   ================================================ */
@media (max-width: 1200px) {
  .page-layout { grid-template-columns: 1fr 300px; gap: 18px; }
  .hero-inner { grid-template-columns: 340px 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 36px; }
}

@media (max-width: 992px) {
  .page-layout { grid-template-columns: 1fr; padding: 16px; }
  .right-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sidebar-widget:first-child { grid-column: 1 / -1; }

  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-image-container { min-height: 260px; }
  .hero-text { padding: 28px 24px 20px; }
  .hero-title { font-size: 34px; }

  .feature-cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .right-sidebar { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; padding: 24px 20px; text-align: center; }
  .cta-decoration { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title-center { font-size: 22px; }
  .cta-title { font-size: 22px; }
}

/* ================================================
   MOBILE MENU OVERLAY
   ================================================ */
.header-nav.mobile-open {
  display: flex !important;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.header-nav.mobile-open .nav-list {
  flex-direction: column;
  gap: 8px;
}
.header-nav.mobile-open .nav-item a {
  font-size: 20px;
  padding: 12px 32px;
}

/* ================================================
   DARK MODE SUPPORT
   ================================================ */
@media (prefers-color-scheme: dark) {
  body.theme-dark {
    --bg-white: #13111f;
    --bg-light: #1a1730;
    --text-dark: #f0ecff;
    --text-medium: #b8b4d8;
    --text-light: #8884a8;
    --border-light: #2a2750;
    --border-ultra: #221f3d;
    --purple-ultra-light: #1e1b38;
    --purple-pale: #221f3d;
    --shadow-xs: 0 1px 4px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
  }
}
