/* ==========================================================================
   ASTRO WAY OF LIFE — Blog Stylesheet
   Extends the primary style.css for blog-specific components
   ========================================================================== */

/* ── Blog Hero ─────────────────────────────────────────────────────────── */
.blog-hero-section {
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.blog-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
}

.blog-hero-desc {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Category Filter Buttons ────────────────────────────────────────────── */
.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.blog-filter-btn {
  padding: 0.5rem 1.2rem;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.blog-filter-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
}

.blog-filter-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
}

/* ── Featured Post Card ─────────────────────────────────────────────────── */
.blog-featured-card {
  display: block;
  background: linear-gradient(135deg, rgba(20, 28, 51, 0.98) 0%, rgba(15, 22, 40, 0.98) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2.8rem 3rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
}

.blog-featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.blog-featured-card::after {
  content: '🪐';
  position: absolute;
  right: 2rem;
  bottom: -1rem;
  font-size: 8rem;
  opacity: 0.06;
  pointer-events: none;
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
  border-color: var(--gold-light);
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.blog-featured-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-featured-excerpt {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: 780px;
}

.blog-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-featured-label {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-border);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.blog-read-more {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Blog Post Grid ─────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── Blog Post Card ─────────────────────────────────────────────────────── */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease forwards;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.blog-card-emoji {
  font-size: 2rem;
  line-height: 1;
}

.blog-card-title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  flex-grow: 1;
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Tags / Category Badges ─────────────────────────────────────────────── */
.blog-tag {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag-planets  { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.3); }
.tag-nakshatras { background: rgba(212, 175, 55, 0.12); color: var(--gold-light); border: 1px solid var(--gold-border); }
.tag-remedies { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-life     { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }

/* ── Author Chip ────────────────────────────────────────────────────────── */
.blog-author-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.blog-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #253358 0%, #10172c 100%);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* ── Blog CTA Banner ────────────────────────────────────────────────────── */
.blog-cta-banner {
  background: linear-gradient(135deg, rgba(20, 28, 51, 0.97) 0%, rgba(35, 25, 50, 0.97) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.blog-cta-content {
  max-width: 600px;
}

.blog-cta-om {
  position: absolute;
  right: 2.5rem;
  bottom: -2rem;
  font-size: 11rem;
  opacity: 0.05;
  color: var(--gold-primary);
  pointer-events: none;
  line-height: 1;
}

/* ── Blog Date / Meta ───────────────────────────────────────────────────── */
.blog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Article Page Layout ────────────────────────────────────────────────── */
.article-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-breadcrumb a { color: var(--gold-light); }
.article-breadcrumb span { color: var(--text-muted); }

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 780px;
  margin-bottom: 1.8rem;
}

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  width: fit-content;
}

.article-author-info strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.article-author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Article Body Layout ────────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  padding: 3.5rem 0;
  align-items: start;
}

/* ── Article Body Prose ─────────────────────────────────────────────────── */
.article-body h2 {
  font-size: 1.65rem;
  color: #fff;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--gold-light);
  margin: 2rem 0 0.75rem;
}

.article-body p {
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.6rem;
  margin-bottom: 1.4rem;
}

.article-body li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--text-primary);
}

.article-pullquote {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.6rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-light);
  line-height: 1.65;
}

.article-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin: 2rem 0;
}

.article-info-box h4 {
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.article-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-info-box li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 0.6rem;
}

.article-info-box li:last-child { border: none; }

/* ── Article Sidebar ────────────────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.sidebar-card h4 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-related-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-related-link:last-child { border: none; }

.sidebar-related-link:hover {
  color: var(--gold-light);
  padding-left: 6px;
}

.sidebar-cta-card {
  background: linear-gradient(135deg, rgba(20, 28, 51, 0.98) 0%, rgba(35, 25, 50, 0.98) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
}

.sidebar-cta-card h4 {
  color: #fff;
  border: none;
  padding: 0;
  margin-bottom: 0.6rem;
}

.sidebar-cta-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

/* ── Article Tags Footer ────────────────────────────────────────────────── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.article-tag-chip {
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.article-tag-chip:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-card { padding: 1.8rem 1.4rem; }
  .blog-featured-label { display: none; }
  .blog-cta-banner { padding: 2.5rem 1.6rem; }
  .article-layout { padding: 2rem 0; }
  .article-body h2 { font-size: 1.35rem; }
}
