/*
Theme Name:  Rashifal Jyotish
Theme URI:   https://example.com
Description: Hindu dharm ki feel ke saath ek light, clean rashifal website ke liye theme. Saffron, lotus, aur sacred geometry se inspired.
Version:     1.0.0
Author:      Your Name
Text Domain: rashifal-jyotish
*/

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --saffron:       #FF6B00;
  --saffron-light: #FFF3E8;
  --saffron-mid:   #FFAB5E;
  --maroon:        #8B1A1A;
  --maroon-light:  #F9EAEA;
  --gold:          #C8960C;
  --gold-light:    #FFF8E1;
  --cream:         #FFFDF5;
  --cream-dark:    #F5F0E8;
  --text-primary:  #2C1810;
  --text-secondary:#6B4C3B;
  --text-muted:    #9E7B6E;
  --border:        #E8D5C4;
  --border-strong: #C9A882;
  --white:         #FFFFFF;
  --shadow-sm:     0 1px 4px rgba(139,26,26,0.08);
  --shadow-md:     0 4px 16px rgba(139,26,26,0.12);
  --font-heading:  'Tiro Devanagari Hindi', 'Noto Serif Devanagari', Georgia, serif;
  --font-body:     'Hind', 'Noto Sans Devanagari', sans-serif;
  --radius:        8px;
  --radius-lg:     14px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600&family=Tiro+Devanagari+Hindi&family=Noto+Serif+Devanagari:wght@400;600&display=swap');

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--maroon); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--saffron); }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-area {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .content-area { grid-template-columns: 1fr; }
}

/* ── Sacred Om Header Bar (very top) ───────────────────────────────────────── */
.site-topbar {
  background: var(--maroon);
  color: #FFD98E;
  text-align: center;
  font-size: 13px;
  padding: 6px 20px;
  letter-spacing: 0.08em;
}

.site-topbar .om-symbol {
  font-size: 18px;
  margin: 0 8px;
  vertical-align: middle;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--saffron);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 46px;
  height: 46px;
  background: var(--saffron);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--maroon);
  line-height: 1.2;
}

.site-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  background: var(--saffron-light);
  color: var(--saffron);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 20px 16px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
}

/* ── Hero / Banner ───────────────────────────────────────────────────────────── */
.site-hero {
  background: linear-gradient(135deg, var(--saffron-light) 0%, var(--gold-light) 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: 'ॐ';
  position: absolute;
  font-size: 200px;
  color: rgba(255,107,0,0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-heading);
  pointer-events: none;
}

.hero-date {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--maroon);
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ── Decorative Divider ──────────────────────────────────────────────────────── */
.sacred-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--saffron-mid);
}

.sacred-divider::before,
.sacred-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

.sacred-divider .divider-symbol {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Rashi Grid (12 rashis) ─────────────────────────────────────────────────── */
.rau-rashi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

@media (max-width: 680px) {
  .rau-rashi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .rau-rashi-grid { grid-template-columns: repeat(2, 1fr); }
}

.rau-rashi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rau-rashi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--saffron);
  color: inherit;
}

.rau-rashi-symbol {
  font-size: 28px;
  line-height: 1;
  color: var(--saffron);
}

.rau-rashi-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--maroon);
}

.rau-rashi-slug {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Today's Card ───────────────────────────────────────────────────────────── */
.rau-today-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--saffron);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.rau-today-label {
  display: inline-block;
  background: var(--saffron);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.rau-today-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--maroon);
  margin-bottom: 16px;
  line-height: 1.4;
}

.rau-today-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.rau-today-content p { margin-bottom: 12px; }
.rau-today-content p:last-child { margin-bottom: 0; }

.rau-read-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--saffron);
  font-weight: 500;
  font-size: 14px;
}

.rau-read-more:hover { color: var(--maroon); }

/* ── Archive List ───────────────────────────────────────────────────────────── */
.rau-archive { margin-top: 28px; }

.rau-archive-title {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--maroon);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.rau-post-list {
  list-style: none;
}

.rau-post-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  gap: 12px;
}

.rau-post-list li a {
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
}

.rau-post-list li a:hover { color: var(--saffron); }

.rau-post-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Main Content Area ──────────────────────────────────────────────────────── */
.entry-header { margin-bottom: 24px; }

.entry-title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--maroon);
  line-height: 1.35;
  margin-bottom: 8px;
}

.entry-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-meta span::before {
  content: '• ';
  color: var(--saffron-mid);
}
.entry-meta span:first-child::before { content: ''; }

.entry-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.entry-content h2, .entry-content h3 {
  font-family: var(--font-heading);
  color: var(--maroon);
  margin: 24px 0 10px;
}

.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 6px; }

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--maroon);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--saffron-light);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--saffron);
}

/* Panchang widget */
.panchang-box {
  background: var(--gold-light);
  border: 1px solid #E8D090;
  border-radius: var(--radius);
  padding: 16px;
}

.panchang-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #E0C870;
  color: var(--text-secondary);
}

.panchang-row:last-child { border-bottom: none; }
.panchang-row .label { color: var(--text-muted); }
.panchang-row .value { font-weight: 500; color: var(--text-primary); }

/* ── Rashi Page Header (decorated) ─────────────────────────────────────────── */
.rashi-page-header {
  background: var(--saffron-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.rashi-page-header .rashi-big-symbol {
  font-size: 56px;
  color: var(--saffron);
  line-height: 1;
  flex-shrink: 0;
}

.rashi-page-header h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--maroon);
  margin-bottom: 4px;
}

.rashi-page-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Cards for post archive ─────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-thumb {
  height: 160px;
  background: var(--saffron-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--saffron);
}

.post-card-body { padding: 18px; }

.post-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--maroon);
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--saffron); }

.post-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--saffron); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text-primary); }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 32px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover { background: var(--saffron-light); border-color: var(--saffron); color: var(--saffron); }
.pagination .current { background: var(--saffron); border-color: var(--saffron); color: var(--white); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--maroon);
  color: #FFD98E;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}

@media (max-width: 680px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,217,142,0.2);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,217,142,0.75); font-size: 13px; }
.footer-col ul a:hover { color: var(--white); }

.footer-col p { font-size: 13px; color: rgba(255,217,142,0.75); line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,217,142,0.15);
  text-align: center;
  padding: 16px 20px;
  font-size: 12px;
  color: rgba(255,217,142,0.6);
}

.footer-bottom .om { font-size: 16px; color: #FFD98E; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .entry-title { font-size: 20px; }
  .rashi-page-header { flex-direction: column; text-align: center; }
}

/* ── Homepage Section Heading ───────────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--maroon);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--saffron-light);
  position: relative;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 50px; height: 2px;
  background: var(--saffron);
}

/* ── Rashi card "Naya" badge ────────────────────────────────────────────────── */
.rau-new-badge {
  display: inline-block;
  background: var(--saffron);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.rau-has-today {
  border-color: var(--saffron-mid);
  background: var(--saffron-light);
}

/* ── Post card rashi label (overlay on thumb) ───────────────────────────────── */
.post-card-thumb {
  position: relative;
  height: 150px;
  background: var(--saffron-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-card-rashi-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(139,26,26,0.75);
  color: #FFD98E;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 4px 8px;
  font-family: var(--font-heading);
}
.post-card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--saffron);
  font-weight: 500;
}
.post-card-link:hover { color: var(--maroon); }
