/* ═══════════════════════════════════════════════════════════════
   AstroKamya™ Blog — Cosmic Knowledge Hub
   Design System: UI/UX Pro Max (Cinematic Glass, Liquid Motion)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Surface Hierarchy */
  --bg: #0A0618;
  --bg-light: #110B2E;
  --surface: rgba(17,11,46,0.65);
  --surface-2: rgba(17,11,46,0.75);
  --surface-3: rgba(17,11,46,0.85);

  /* Accents */
  --gold: #FFB800;
  --gold-light: #FFCB45;
  --violet: #7C3AED;
  --rose: #E8367C;
  --teal: #06B6D4;

  /* Typography */
  --text-1: #F0EAFF;
  --text-2: #B8B0D4;
  --text-3: #6E628A;
  
  --font-display: 'Clash Display', 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
}

/* ── AMBIENT CINEMATIC BACKGROUND ── */
.ak-ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% -20%, #1A1145 0%, #0A0618 65%);
  pointer-events: none;
}
.ak-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
  pointer-events: none;
}
.ak-orb-primary {
  width: 800px; height: 800px;
  background: rgba(124,58,237,0.08);
  top: -20%; left: -10%;
  animation: floatOrb 30s ease-in-out infinite;
}
.ak-orb-secondary {
  width: 600px; height: 600px;
  background: rgba(255,184,0,0.05);
  bottom: -10%; right: -10%;
  animation: floatOrb 25s ease-in-out infinite reverse;
}
.ak-orb-accent {
  width: 500px; height: 500px;
  background: rgba(232,54,124,0.04);
  top: 40%; left: 40%;
  animation: floatOrb 35s ease-in-out infinite 5s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Grain Overlay */
.ak-ambient-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── SCROLL PROGRESS ── */
.ak-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #7C3AED, #E8367C, #FFB800);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255,184,0,0.5);
}

/* ── LAYOUT ── */
.ak-blog-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
.ak-hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ak-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(17,11,46,0.6);
  border: 1px solid rgba(255,184,0,0.2);
  box-shadow: 0 0 20px rgba(255,184,0,0.1), inset 0 0 0 1px rgba(255,184,0,0.1);
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
}
.ak-badge-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255,184,0,0.8);
  animation: pulseGold 2s infinite;
}
@keyframes pulseGold {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,184,0,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(255,184,0,0); }
}
.ak-badge-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.ak-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 24px;
}
.ak-text-gradient {
  background: linear-gradient(110deg, #E5A600 0%, #FFB800 20%, #FFCB45 50%, #FFB800 80%, #E5A600 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText {
  to { background-position: 200% center; }
}

.ak-hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 56px;
}

/* ── TOOLBAR (SEARCH/FILTER) ── */
.ak-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 800px;
}
.ak-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.ak-search-input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(130%);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ak-search-input:focus {
  border-color: rgba(255,184,0,0.4);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.1), 0 12px 32px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.ak-search-wrapper .ak-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--text-3);
  transition: color 0.3s;
}
.ak-search-input:focus + .ak-icon, .ak-search-input:not(:placeholder-shown) ~ .ak-icon {
  color: var(--gold);
}

.ak-filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.ak-filter-btn {
  padding: 10px 20px;
  border-radius: 99px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.ak-filter-btn:hover {
  color: var(--text-1);
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.05);
  transform: translateY(-2px);
}
.ak-filter-btn.active {
  background: var(--text-1);
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

/* ── SECTIONS ── */
.ak-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.ak-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.ak-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(124,58,237,0.3), transparent);
}

.ak-featured-section { margin-bottom: 80px; }
.ak-latest-section { margin-bottom: 100px; }

/* ── FEATURED MASTERPIECE ── */
.ak-featured-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--surface);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.03);
  text-decoration: none;
  transition: all 0.5s var(--ease);
}
.ak-featured-card:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 16px 56px rgba(0,0,0,0.4), 0 0 40px rgba(124,58,237,0.1), inset 0 0 0 1px rgba(255,255,255,0.05);
  transform: translateY(-4px);
}
.ak-featured-visual {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.ak-featured-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.ak-featured-card:hover .ak-featured-img { transform: scale(1.05); }
.ak-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(17,11,46,0.8));
}
.ak-featured-tag {
  position: absolute;
  top: 24px; left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(10,6,24,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-1);
}
.ak-tag-icon { width: 12px; height: 12px; color: var(--gold); }

.ak-featured-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ak-featured-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.ak-featured-excerpt {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 32px;
}
.ak-featured-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ak-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.3s var(--ease);
}
.ak-read-btn svg { width: 16px; height: 16px; }
.ak-featured-card:hover .ak-read-btn { gap: 12px; }

/* ── GRID POSTS ── */
.ak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.ak-card {
  background: var(--surface);
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.ak-card:hover {
  border-color: rgba(255,184,0,0.2);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35), 0 0 24px rgba(255,184,0,0.05), inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: translateY(-6px) scale(1.01);
}
.ak-card-visual {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.ak-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.ak-card:hover .ak-card-img { transform: scale(1.06); }
.ak-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,6,24,0.8), transparent);
}
.ak-read-time {
  position: absolute;
  bottom: 12px; right: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(10,6,24,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-1);
}

.ak-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ak-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ak-meta-text {
  font-size: 12px;
  color: var(--text-3);
}
.ak-meta-dot {
  color: rgba(255,255,255,0.2);
  font-size: 10px;
}
.ak-category-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cat-love { background: rgba(232,54,124,0.1); color: var(--rose); border: 1px solid rgba(232,54,124,0.2); }
.cat-gemstones { background: rgba(255,184,0,0.1); color: var(--gold); border: 1px solid rgba(255,184,0,0.2); }
.cat-vedic { background: rgba(124,58,237,0.1); color: var(--violet); border: 1px solid rgba(124,58,237,0.2); }
.cat-remedies { background: rgba(6,182,212,0.1); color: var(--teal); border: 1px solid rgba(6,182,212,0.2); }

.ak-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.ak-card:hover .ak-card-title { color: var(--gold-light); }
.ak-card-excerpt {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ak-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ak-author-simple {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.ak-arrow-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 0.3s var(--ease);
}
.ak-arrow-btn svg { width: 16px; height: 16px; }
.ak-card:hover .ak-arrow-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A0618;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255,184,0,0.3);
}

/* Common Author Style */
.ak-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ak-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,184,0,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(255,184,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
.ak-author-details {
  display: flex;
  flex-direction: column;
}
.ak-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.ak-author-role {
  font-size: 12px;
  color: var(--text-3);
}

/* ── NEWSLETTER ── */
.ak-newsletter {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 80px 40px;
  text-align: center;
  border: 1px solid rgba(124,58,237,0.2);
  box-shadow: 0 16px 64px rgba(0,0,0,0.4);
}
.ak-newsletter-bg {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  backdrop-filter: blur(24px);
}
.ak-newsletter-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--rose), var(--gold));
}
.ak-newsletter-bg::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.ak-newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.ak-newsletter-icon {
  font-size: 32px;
  margin-bottom: 20px;
}
.ak-newsletter-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.ak-newsletter-text {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
}
.ak-input-group {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.ak-input {
  flex: 1;
  padding: 16px 24px;
  background: rgba(10,6,24,0.6);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}
.ak-input:focus {
  border-color: var(--gold);
  background: rgba(10,6,24,0.8);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.1);
}
.ak-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  background: linear-gradient(110deg, #E5A600, #FFB800 20%, #FFCB45 50%, #FFB800);
  background-size: 200% 100%;
  border: none;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #0A0618;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(255,184,0,0.3);
}
.ak-submit-btn svg { width: 18px; height: 18px; }
.ak-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,184,0,0.4);
  background-position: 100% 0;
}

/* ── ANIMATIONS ── */
.fade-up-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.ak-grid > :nth-child(1) { transition-delay: 0.0s; }
.ak-grid > :nth-child(2) { transition-delay: 0.1s; }
.ak-grid > :nth-child(3) { transition-delay: 0.2s; }
.ak-grid > :nth-child(4) { transition-delay: 0.3s; }
.ak-grid > :nth-child(5) { transition-delay: 0.4s; }
.ak-grid > :nth-child(6) { transition-delay: 0.5s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ak-featured-card {
    grid-template-columns: 1fr;
  }
  .ak-featured-visual {
    min-height: 280px;
  }
  .ak-featured-content {
    padding: 32px 24px;
  }
}
@media (max-width: 600px) {
  .ak-hero { padding: 120px 0 60px; }
  .ak-hero-title { font-size: 36px; }
  .ak-input-group { flex-direction: column; }
  .ak-submit-btn { padding: 16px 28px; justify-content: center; }
  .ak-newsletter { padding: 48px 24px; }
}
