﻿/* YuktiAstro - Custom Styles */

:root {
  --gold: #d4a843;
  --gold-light: #e8c36a;
  --gold-dark: #b8922e;
  --cosmic-900: #0a0e1a;
  --cosmic-800: #111827;
  --cosmic-700: #1e293b;
  --cosmic-600: #334155;
}

html {
  scroll-behavior: smooth;
}

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

/* Site-wide modern font */
body {
  background: radial-gradient(ellipse at top, #1e293b 0%, #0a0e1a 50%);
  background-attachment: fixed;
  color: #fff;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern heading fonts */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Display font class */
.font-display { 
  font-family: 'Sora', sans-serif; 
}

/* Brand */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.brand-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: var(--cosmic-900);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Manrope', system-ui, sans-serif;
}
.btn-primary:hover { 
  filter: brightness(1.1); 
  transform: translateY(-1px); 
}
.btn-primary:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  transform: none; 
}

.btn-secondary {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Manrope', system-ui, sans-serif;
}
.btn-secondary:hover {
  background: rgba(212,168,67,0.1);
}

/* Buy Me a Coffee */
.bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0e1a;
  background: linear-gradient(135deg, #ffdd00 0%, #f5bb00 100%);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Manrope', system-ui, sans-serif;
  white-space: nowrap;
}
.bmc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
}

/* Auth / Google Sign-In */
.auth-container {
  display: flex;
  align-items: center;
}
.auth-user-menu {
  position: relative;
}
.auth-avatar-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--cosmic-800);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.auth-avatar-btn:hover {
  border-color: var(--gold-light);
}
.auth-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.auth-avatar-fallback {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.875rem;
}
.auth-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: var(--cosmic-800);
  border: 1px solid var(--cosmic-600);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 100;
  overflow: hidden;
}
.auth-dropdown.open {
  display: block;
}
.auth-dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cosmic-600);
}
.auth-dropdown-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
}
.auth-dropdown-email {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}
.auth-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Manrope', system-ui, sans-serif;
}
.auth-dropdown-item:hover {
  background: rgba(212, 168, 67, 0.1);
  color: #fff;
}

/* Login button (not signed in) */
.auth-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Manrope', system-ui, sans-serif;
  white-space: nowrap;
}
.auth-login-btn:hover {
  background: rgba(212, 168, 67, 0.25);
  border-color: rgba(212, 168, 67, 0.6);
}

/* Login dropdown */
.auth-login-dropdown {
  min-width: 280px;
}
.auth-login-google-slot {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
}
.auth-login-loading {
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 0.5rem 0;
}

/* Name button (signed in) */
.auth-name-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  border-radius: 2rem;
  border: 1px solid rgba(212, 168, 67, 0.3);
  background: rgba(212, 168, 67, 0.08);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Manrope', system-ui, sans-serif;
  text-decoration: none;
}
.auth-name-btn:hover {
  border-color: rgba(212, 168, 67, 0.5);
  background: rgba(212, 168, 67, 0.15);
}
.auth-name-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
}
.auth-avatar-img-sm {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  object-fit: cover;
}
.auth-avatar-fallback-sm {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--cosmic-700);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dropdown enhancements */
.auth-dropdown-section {
  padding: 0.5rem 1rem 0.65rem;
}
.auth-dropdown-section-title {
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.auth-dropdown-birth {
  font-size: 0.8rem;
  color: #d1d5db;
  line-height: 1.6;
}
.auth-dropdown-divider {
  height: 1px;
  background: var(--cosmic-600);
  margin: 0;
}
.auth-dropdown-danger {
  color: #f87171 !important;
}
.auth-dropdown-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

@media (max-width: 480px) {
  .auth-name-text {
    display: none;
  }
}

/* Account Page */
.account-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(139,92,246,0.06));
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 1.25rem;
}
.account-avatar-wrap {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cosmic-800);
}
.account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-avatar-fallback {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}
.account-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: border-color 0.3s;
}
.account-card:hover {
  border-color: rgba(212,168,67,0.2);
}
.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.4);
}
.account-card-body {
  padding: 1.25rem 1.5rem;
}
.account-card-footer {
  padding: 0.75rem 1.5rem 1.25rem;
}
.account-birth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.account-birth-item {
  padding: 0.75rem;
  background: rgba(212,168,67,0.05);
  border: 1px solid rgba(212,168,67,0.12);
  border-radius: 0.6rem;
}
.account-birth-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.account-birth-value {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}
.account-action-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  color: #d1d5db;
  transition: background 0.2s;
  font-family: 'Manrope', system-ui, sans-serif;
  border-top: 1px solid rgba(30, 41, 59, 0.3);
}
.account-action-link:first-child {
  border-top: none;
}
.account-action-link:hover {
  background: rgba(212,168,67,0.06);
}
.account-action-danger:hover {
  background: rgba(239,68,68,0.06) !important;
}
.account-action-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.account-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f87171;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Manrope', system-ui, sans-serif;
}
.account-btn-danger-outline:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.5);
}
.account-loading {
  text-align: center;
  padding: 1.5rem 0;
}

@media (max-width: 480px) {
  .account-profile-header {
    flex-direction: column;
    text-align: center;
  }
  .account-birth-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s;
  font-family: 'Manrope', system-ui, sans-serif;
}
.card:hover { 
  border-color: rgba(212,168,67,0.3); 
}

/* Forms */
.input-field {
  width: 100%;
  background: var(--cosmic-800);
  border: 1px solid var(--cosmic-600);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  transition: all 0.3s;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
}
.input-field:focus { 
  border-color: var(--gold); 
  box-shadow: 0 0 0 2px rgba(212,168,67,0.2); 
}
.input-field::placeholder { 
  color: #9ca3af; 
}
select.input-field { 
  appearance: auto; 
  cursor: pointer;
}
textarea.input-field { 
  resize: none; 
  min-height: 120px; 
}

/* Badge */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(212,168,67,0.2);
  color: var(--gold);
  font-family: 'Manrope', system-ui, sans-serif;
}

/* Progress bar */
.progress-bar {
  height: 0.5rem;
  background: var(--cosmic-700);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.5s;
  border-radius: 999px;
}

/* Stars animation */
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Spinner */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--cosmic-900);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.error-box {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  color: #f87171;
  margin-bottom: 1.5rem;
  font-family: 'Manrope', system-ui, sans-serif;
}

/* Interpretation result */
.interpretation-box {
  background: linear-gradient(135deg, rgba(212,168,67,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
}
.interpretation-box p { 
  white-space: pre-wrap; 
  line-height: 1.7; 
  color: #e5e7eb; 
  font-family: 'Manrope', system-ui, sans-serif;
}

/* Nav */
nav a.nav-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
  font-family: 'Manrope', system-ui, sans-serif;
}
nav a.nav-link:hover { 
  color: var(--gold); 
}

/* Location dropdown */
.location-dropdown {
  position: absolute;
  z-index: 20;
  width: 100%;
  margin-top: 0.25rem;
  background: var(--cosmic-800);
  border: 1px solid var(--cosmic-700);
  border-radius: 0.5rem;
  max-height: 12rem;
  overflow-y: auto;
  font-family: 'Manrope', system-ui, sans-serif;
}
.location-dropdown button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.875rem;
}
.location-dropdown button:hover { 
  background: var(--cosmic-700); 
}

/* Chat history */
.chat-item { 
  border-bottom: 1px solid var(--cosmic-700); 
  padding-bottom: 1rem; 
  font-family: 'Manrope', system-ui, sans-serif;
}
.chat-item:last-child { 
  border-bottom: none; 
  padding-bottom: 0; 
}

/* Ad placeholder */
.ad-space {
  background: rgba(17,24,39,0.3);
  border: 1px dashed rgba(30,41,59,0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  font-family: 'Manrope', system-ui, sans-serif;
}

/* South Indian Chart Grid */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
}
.chart-cell {
  background: rgba(17,24,39,0.8);
  border: 1px solid rgba(212,168,67,0.2);
  padding: 6px;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 80px;
  position: relative;
  font-family: 'Manrope', system-ui, sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.chart-cell:hover {
  background: rgba(212,168,67,0.06);
  border-color: rgba(212,168,67,0.4);
}
.chart-cell .sign-label {
  font-size: 0.6rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.8;
}
.chart-cell .house-num {
  font-size: 0.55rem;
  color: #6b7280;
  position: absolute;
  top: 2px;
  right: 4px;
}
.chart-cell .planet-name {
  font-size: 0.65rem;
  color: #e5e7eb;
  line-height: 1.4;
}
.chart-cell .planet-name.retro { 
  color: #f87171; 
}
.chart-center {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  background: rgba(212,168,67,0.05);
  border: 1px solid rgba(212,168,67,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-family: 'Manrope', system-ui, sans-serif;
}

/* Two-column layout for reading page */
.reading-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

/* Chat messages */
.chat-bubble-user {
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 1rem 1rem 0.25rem 1rem;
  padding: 0.75rem 1rem;
  margin-left: 2rem;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-family: 'Manrope', system-ui, sans-serif;
  animation: msgSlideIn 0.3s ease-out;
}
.chat-bubble-ai {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 1rem 1rem 1rem 0.25rem;
  padding: 1rem 1.25rem;
  margin-right: 2rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: 'Manrope', system-ui, sans-serif;
  animation: msgSlideIn 0.3s ease-out;
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Planet table */
.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  font-family: 'Manrope', system-ui, sans-serif;
}
.planet-table th {
  text-align: left;
  padding: 0.5rem;
  color: var(--gold);
  border-bottom: 1px solid var(--cosmic-700);
  font-weight: 600;
}
.planet-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(30,41,59,0.3);
  color: #d1d5db;
}
.planet-table tr:hover td { 
  background: rgba(212,168,67,0.05); 
}

/* North Indian Chart */
.north-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.north-chart-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}
.north-chart-svg .house-wedge {
  fill: rgba(17, 24, 39, 0.6);
  transition: fill 0.3s;
}
.north-chart-svg .house-wedge:hover {
  fill: rgba(212, 168, 67, 0.1);
}
.north-chart-svg .house-number {
  fill: #6b7280;
  font-weight: 500;
}
.north-chart-svg .sign-symbol {
  fill: var(--gold);
  font-size: 16px;
}
.north-chart-svg .planet-abbrev {
  fill: #e5e7eb;
  font-weight: 500;
}
.north-chart-svg .outer-house-num {
  fill: #9ca3af;
}
.north-chart-svg .lagna-label {
  font-weight: 600;
}
.north-chart-svg .lagna-sign {
  font-size: 20px;
}
.north-chart-svg .lagna-lord {
  font-size: 10px;
}

/* Form inputs site-wide */
input, textarea, select {
  font-family: 'Manrope', system-ui, sans-serif;
}

/* Links */
a {
  font-family: 'Manrope', system-ui, sans-serif;
}

/* Paragraphs */
p {
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.7;
}

/* Lists */
ul, ol {
  font-family: 'Manrope', system-ui, sans-serif;
}

/* Legal / Content Pages */
.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--gold);
}
.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}
.legal-content p {
  color: #d1d5db;
  margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
  color: #d1d5db;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.legal-content a {
  color: var(--gold);
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}

/* Footer Links */
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--gold);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-tile {
  display: block;
  text-decoration: none;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.blog-tile:hover {
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-2px);
}
.blog-tile-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(212, 168, 67, 0.05);
}
.blog-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-tile:hover .blog-tile-cover img {
  transform: scale(1.03);
}
.blog-tile-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(212, 168, 67, 0.3);
}
.blog-tile-body {
  padding: 1.25rem;
}
.blog-tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.blog-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold);
}
.blog-tile-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.blog-tile-excerpt {
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-tile-date {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Blog Post Body (renders Quill HTML) */
.blog-post-body { color: #d1d5db; line-height: 1.8; font-size: 1rem; }
.blog-post-body h1 { font-size: 1.75rem; margin: 2rem 0 0.75rem; color: #fff; }
.blog-post-body h2 { font-size: 1.35rem; margin: 1.75rem 0 0.6rem; color: #fff; }
.blog-post-body h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: #fff; }
.blog-post-body p { margin: 0 0 1rem; }
.blog-post-body strong { color: #fff; }
.blog-post-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.blog-post-body a:hover { color: var(--gold-light); }
.blog-post-body blockquote {
  border-left: 3px solid var(--gold); margin: 1.25rem 0; padding: 0.5rem 1rem;
  color: #9ca3af; background: rgba(17,24,39,0.4); border-radius: 0 0.4rem 0.4rem 0;
}
.blog-post-body pre {
  background: rgba(0,0,0,0.3); color: #e5e7eb; border-radius: 0.5rem;
  padding: 1rem; overflow-x: auto; margin: 1.25rem 0; font-size: 0.875rem;
  line-height: 1.6;
}
.blog-post-body ul, .blog-post-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.blog-post-body li { margin-bottom: 0.35rem; }
.blog-post-body img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1rem 0; }

/* Responsive */
@media (max-width: 768px) {
  .grid-cols-3 { grid-template-columns: 1fr !important; }
  .hide-mobile { display: none !important; }
  .reading-layout { grid-template-columns: 1fr; }
  .chart-grid { max-width: 100%; }
  .north-chart-svg { max-width: 320px; }
  .north-chart-svg .sign-symbol { font-size: 14px; }
  .north-chart-svg .lagna-sign { font-size: 18px; }
  .blog-grid { grid-template-columns: 1fr; }
}

