/* ==========================================================================
   Drik Jyotish — Premium Editorial & Content Design System
   ========================================================================== */

:root {
  --bg-deep: #070B19;
  --bg-surface: #0E162B;
  --bg-card: rgba(18, 28, 54, 0.7);
  --bg-card-hover: rgba(26, 40, 77, 0.85);
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --gold-primary: #D4AF37;
  --gold-light: #FDE68A;
  --gold-dark: #B45309;
  --amber: #F59E0B;
  --cyan-accent: #38BDF8;
  --purple-accent: #A855F7;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Cambria", serif;
  --container-width: 1040px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #152042 0%, #070B19 65%);
  color: var(--text-primary);
  font-size: 16px;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ─── Header & Navigation ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 11, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none !important;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.brand-text span {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-cta {
  background: linear-gradient(135deg, #D4AF37 0%, #B45309 100%);
  color: #070B19 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.5);
  text-decoration: none !important;
}

/* ─── Breadcrumb ─── */
.breadcrumb-container {
  max-width: var(--container-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  list-style: none;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* ─── Main Content Container ─── */
.content-wrapper {
  max-width: var(--container-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

h1.article-title {
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 60%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Article Body Styles ─── */
.article-body {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: var(--bg-card);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  color: var(--text-primary);
}

.highlight-box strong {
  color: var(--gold-light);
}

/* Data Table */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
}

table.astro-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  text-align: left;
}

table.astro-table th {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-weight: 600;
  padding: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-gold);
}

table.astro-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

table.astro-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* Feature Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ─── Footer ─── */
.site-footer {
  background: #040710;
  border-top: 1px solid var(--border-gold);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  h1.article-title {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
}
