/* ===== GLOBAL THEME VARIABLES ===== */
:root {
  --astro-bg: #0a0a1a;
  --astro-purple: #a78bfa;
  --astro-gold: #e8c96a;

  /* Dark theme colors */
  --astro-dark-card: rgba(255, 255, 255, 0.03);
  --astro-dark-card-border: rgba(255, 255, 255, 0.07);
  --astro-dark-accent: #a78bfa;
  --astro-dark-accent-dark: #7c3aed;
  --astro-dark-accent-glow: rgba(124, 58, 237, 0.3);
  --astro-dark-text: #fff;
  --astro-dark-text-mid: rgba(255, 255, 255, 0.6);
  --astro-dark-text-dim: rgba(255, 255, 255, 0.35);
  --astro-dark-nav-bg: rgba(10, 10, 26, 0.8);
  --astro-dark-btn-grad: linear-gradient(135deg, #7c3aed, #a78bfa);
  --astro-dark-title-grad: linear-gradient(135deg, #a78bfa, #e8c96a);
  --astro-dark-section-alt: rgba(255, 255, 255, 0.01);

  /* Light theme colors */
  --astro-light-bg: #faf8f4;
  --astro-light-card: #ffffff;
  --astro-light-card-border: rgba(201, 168, 76, 0.15);
  --astro-light-accent: #a07c2a;
  --astro-light-accent-dark: #8b6914;
  --astro-light-accent-glow: rgba(201, 168, 76, 0.2);
  --astro-light-text: #2a2018;
  --astro-light-text-mid: #6b5d4f;
  --astro-light-text-dim: #9a8e7f;
  --astro-light-nav-bg: rgba(250, 248, 244, 0.9);
  --astro-light-btn-grad: linear-gradient(135deg, #a07c2a, #c9a84c, #a07c2a);
  --astro-light-title-grad: linear-gradient(135deg, #a07c2a, #c9a84c);
  --astro-light-section-alt: rgba(201, 168, 76, 0.03);
}

/* ===== ANIMATIONS ===== */
@keyframes skyDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(120px); }
}

@keyframes starPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HERO SECTION ===== */
.astro-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 48px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(100, 80, 200, 0.12) 0%, transparent 60%), var(--astro-bg);
  transition: all 0.5s;
  font-family: 'Inter', -apple-system, sans-serif;
}

@media (max-width: 768px) {
  .astro-hero {
    padding: 60px 20px 50px;
  }
}

/* Hero with category selected */
.astro-hero.astro-hero--category {
  padding: 70px 48px 50px;
}

@media (max-width: 768px) {
  .astro-hero.astro-hero--category {
    padding: 50px 20px 40px;
  }
}

/* Starfield background */
.astro-starfield-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.astro-starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 100%;
  animation: skyDrift 50s linear infinite;
}

.astro-star {
  animation: starPulse var(--duration, 3s) ease-in-out infinite;
}

.astro-hero-content {
  position: relative;
  z-index: 1;
}

.astro-hero-label {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--astro-dark-accent-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .astro-hero-label {
    font-size: 8px;
    letter-spacing: 3px;
  }
}

.astro-hero-title {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--astro-dark-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .astro-hero-title {
    font-size: 32px;
  }
}

.astro-hero-subtitle {
  font-size: 16px;
  color: var(--astro-dark-text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .astro-hero-subtitle {
    font-size: 13px;
  }
}

/* ===== GRADIENT TEXT ===== */
.astro-grad-text {
  background: var(--astro-dark-title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== GRID SECTION ===== */
.astro-grid-section {
  padding: 60px 48px 80px;
  max-width: 1060px;
  margin: 0 auto;
  transition: all 0.5s;
}

@media (max-width: 768px) {
  .astro-grid-section {
    padding: 40px 20px 60px;
  }
}

/* ===== FEATURED CARD ===== */
.astro-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  background: var(--astro-dark-card);
  border: 1px solid var(--astro-dark-card-border);
  cursor: pointer;
  margin-bottom: 32px;
  transition: all 0.4s;
  animation: fadeUp 0.6s ease-out both;
}

@media (max-width: 768px) {
  .astro-featured-card {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }
}

.astro-featured-image {
  min-height: 300px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(167, 139, 250, 0.08) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 768px) {
  .astro-featured-image {
    min-height: 200px;
  }
}

.astro-featured-icon {
  font-size: 80px;
  opacity: 0.2;
}

@media (max-width: 768px) {
  .astro-featured-icon {
    font-size: 50px;
  }
}

.astro-featured-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  color: var(--astro-dark-accent);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

@media (max-width: 768px) {
  .astro-featured-tag {
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 9px;
  }
}

.astro-featured-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  color: #e8c96a;
  backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
  .astro-featured-badge {
    bottom: 12px;
    left: 12px;
  }
}

.astro-featured-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .astro-featured-content {
    padding: 20px 16px;
  }
}

.astro-featured-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: var(--astro-dark-text);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .astro-featured-title {
    font-size: 18px;
  }
}

.astro-featured-excerpt {
  font-size: 14px;
  color: var(--astro-dark-text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .astro-featured-excerpt {
    font-size: 12px;
  }
}

.astro-featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.astro-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.astro-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

.astro-author-avatar.astro-large {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.astro-author-info {
  font-size: 11px;
  color: var(--astro-dark-text-dim);
}

@media (max-width: 768px) {
  .astro-author-info {
    font-size: 10px;
  }
}

.astro-read-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--astro-dark-accent);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

@media (max-width: 768px) {
  .astro-read-btn {
    font-size: 11px;
  }
}

/* ===== CARDS GRID ===== */
.astro-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .astro-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== POST CARD ===== */
.astro-post-card {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--astro-dark-card);
  border: 1px solid var(--astro-dark-card-border);
  transition: all 0.4s;
  animation: fadeUp 0.6s ease-out both;
}

.astro-post-card:nth-child(1) {
  animation-delay: 0.12s;
}

.astro-post-card:nth-child(2) {
  animation-delay: 0.24s;
}

.astro-post-card:nth-child(3) {
  animation-delay: 0.36s;
}

.astro-card-image {
  height: 160px;
  background: linear-gradient(135deg, rgba(232, 201, 106, 0.2) 0%, rgba(167, 139, 250, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 768px) {
  .astro-card-image {
    height: 120px;
  }
}

.astro-card-icon {
  font-size: 48px;
  opacity: 0.25;
}

@media (max-width: 768px) {
  .astro-card-icon {
    font-size: 32px;
  }
}

.astro-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  color: var(--astro-dark-accent);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

@media (max-width: 768px) {
  .astro-card-tag {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 8px;
  }
}

.astro-card-content {
  padding: 22px 24px;
}

@media (max-width: 768px) {
  .astro-card-content {
    padding: 16px 14px;
  }
}

.astro-card-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--astro-dark-text);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .astro-card-title {
    font-size: 14px;
  }
}

.astro-card-excerpt {
  font-size: 13px;
  color: var(--astro-dark-text-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .astro-card-excerpt {
    font-size: 12px;
  }
}

.astro-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.astro-card-date {
  font-size: 11px;
  color: var(--astro-dark-text-dim);
}

@media (max-width: 768px) {
  .astro-card-date {
    font-size: 10px;
  }
}

.astro-card-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--astro-dark-accent);
}

@media (max-width: 768px) {
  .astro-card-time {
    font-size: 10px;
  }
}

/* ===== CTA SECTION ===== */
.astro-cta-section {
  margin-top: 56px;
  padding: 44px 36px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(232, 201, 106, 0.04) 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .astro-cta-section {
    margin-top: 40px;
    padding: 28px 20px;
  }
}

.astro-cta-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
}

.astro-cta-label {
  font-size: 10px;
  color: var(--astro-dark-accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
}

@media (max-width: 768px) {
  .astro-cta-label {
    font-size: 8px;
  }
}

.astro-cta-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: var(--astro-dark-text);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.35;
  position: relative;
}

@media (max-width: 768px) {
  .astro-cta-title {
    font-size: 18px;
  }
}

.astro-cta-grad {
  font-weight: 500;
}

.astro-cta-subtitle {
  font-size: 14px;
  color: var(--astro-dark-text-mid);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

@media (max-width: 768px) {
  .astro-cta-subtitle {
    font-size: 12px;
  }
}

.astro-cta-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .astro-cta-stats {
    gap: 16px;
  }
}

.astro-stat-item {
  text-align: center;
  flex: 1 1 auto;
}

@media (max-width: 768px) {
  .astro-stat-item {
    flex: 1 1 calc(33.333% - 10px);
  }
}

.astro-stat-number {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 600;
  background: var(--astro-dark-title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (max-width: 768px) {
  .astro-stat-number {
    font-size: 16px;
  }
}

.astro-stat-label {
  font-size: 10px;
  color: var(--astro-dark-text-dim);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .astro-stat-label {
    font-size: 9px;
  }
}

.astro-cta-button {
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: var(--astro-dark-btn-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 30px var(--astro-dark-accent-glow);
  font-family: 'Inter', sans-serif;
  position: relative;
  transition: all 0.3s;
}

.astro-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--astro-dark-accent-glow);
}

@media (max-width: 768px) {
  .astro-cta-button {
    padding: 12px 30px;
    font-size: 12px;
  }
}

/* ===== ARTICLE SECTION ===== */
.astro-article-section {
  padding: 48px 48px 80px;
  max-width: 760px;
  margin: 0 auto;
  animation: fadeUp 0.5s ease-out both;
}

@media (max-width: 768px) {
  .astro-article-section {
    padding: 24px 20px 60px;
  }
}

.astro-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 36px;
  font-size: 13px;
  color: var(--astro-dark-accent);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  transition: all 0.3s;
}

.astro-back-button:hover {
  background: rgba(124, 58, 237, 0.12);
}

@media (max-width: 768px) {
  .astro-back-button {
    margin-bottom: 24px;
    font-size: 12px;
  }
}

.astro-article-hero {
  height: 300px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(167, 139, 250, 0.08) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 768px) {
  .astro-article-hero {
    height: 200px;
    margin-bottom: 28px;
  }
}

.astro-article-icon {
  font-size: 96px;
  opacity: 0.15;
}

@media (max-width: 768px) {
  .astro-article-icon {
    font-size: 60px;
  }
}

.astro-article-tag {
  position: absolute;
  bottom: 24px;
  left: 28px;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: var(--astro-dark-accent);
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .astro-article-tag {
    bottom: 16px;
    left: 16px;
    padding: 5px 12px;
    font-size: 9px;
  }
}

.astro-article-title {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  color: var(--astro-dark-text);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .astro-article-title {
    font-size: 24px;
  }
}

.astro-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .astro-article-meta {
    margin-bottom: 28px;
  }
}

.astro-meta-content {
  display: flex;
  flex-direction: column;
}

.astro-meta-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--astro-dark-text);
}

@media (max-width: 768px) {
  .astro-meta-author {
    font-size: 12px;
  }
}

.astro-meta-date {
  font-size: 12px;
  color: var(--astro-dark-text-dim);
}

@media (max-width: 768px) {
  .astro-meta-date {
    font-size: 11px;
  }
}

.astro-article-body {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 2;
}

@media (max-width: 768px) {
  .astro-article-body {
    font-size: 15px;
  }
}

.astro-article-excerpt {
  font-size: 18px;
  font-weight: 500;
  color: var(--astro-dark-text);
  line-height: 1.85;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .astro-article-excerpt {
    font-size: 15px;
  }
}

.astro-article-body p {
  margin-bottom: 22px;
}

/* ===== ARTICLE CTA ===== */
.astro-article-cta {
  margin-top: 56px;
  padding: 36px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(232, 201, 106, 0.05) 100%);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

@media (max-width: 768px) {
  .astro-article-cta {
    margin-top: 40px;
    padding: 24px 16px;
  }
}

.astro-social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .astro-social-links {
    gap: 12px;
    margin-top: 20px;
  }
}

.astro-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.astro-social-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.astro-social-icon svg {
  color: currentColor;
}

.astro-back-link {
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
  color: var(--astro-dark-accent);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.astro-back-link:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .astro-back-link {
    margin-top: 24px;
    font-size: 12px;
  }
}

/* ===== RESPONSIVE BREAKPOINT ===== */
@media (max-width: 768px) {
  .astro-cards-grid {
    grid-template-columns: 1fr;
  }

  .astro-featured-card {
    grid-template-columns: 1fr;
  }

  .astro-grid-section {
    max-width: 100%;
  }

  .astro-article-section {
    max-width: 100%;
  }
}
