/*
Theme Name: PanditDarshan Modern
Theme URI: https://panditdarshan.com
Author: पंडित शिवम तिवारी
Author URI: https://panditdarshan.com/about-us/
Description: Ultra-fast, devotional Vedic Astrology, Daily Panchang, and Verified Pandit Directory WordPress theme.
Version: 2.3.0
License: GNU General Public License v2 or later
Text Domain: panditdarshan-modern
Tags: vedic, astrology, panchang, rashifal, pandit-directory, hindi, fast, seo-friendly
*/

/* Core styles loaded from assets/css/main.css for performance and caching */

/* ============================================================
   Ramcharitmanas, Granthalay & Article Reader Styles (#pd-post)
   WCAG 2.1 AAA Compliant Dark & Light Themes
   ============================================================ */
#pd-post * { box-sizing: border-box; }

/* --- Default & Dark Theme (WCAG Contrast > 12:1 against #0c0a09) --- */
#pd-post,
[data-theme="dark"] #pd-post {
  font-family: 'Mukta', 'Poppins', sans-serif;
  color: var(--text-primary, #e7e2dc);
  max-width: 820px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.95;
}

#pd-post h1, #pd-post h2, #pd-post h3,
[data-theme="dark"] #pd-post h1,
[data-theme="dark"] #pd-post h2,
[data-theme="dark"] #pd-post h3 {
  font-family: 'Yatra One', serif;
  color: #f5c26b;
  line-height: 1.4;
}

#pd-post h1 { font-size: 26px; margin-bottom: 14px; }
#pd-post h2 { font-size: 21px; margin-top: 32px; margin-bottom: 14px; }
#pd-post h3 { font-size: 18px; margin-top: 24px; margin-bottom: 10px; }

#pd-post p,
[data-theme="dark"] #pd-post p {
  color: #e7e2dc;
  margin: 0 0 18px;
}

#pd-post img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 22px 0;
  box-shadow: 0 12px 28px -14px rgba(0,0,0,0.6);
  border: 1px solid var(--border-color, #382f2d);
}

#pd-post .pd-post-sub,
[data-theme="dark"] #pd-post .pd-post-sub {
  color: #a8a29e;
  font-size: 14px;
  margin-bottom: 24px;
}

#pd-post .pd-cap,
[data-theme="dark"] #pd-post .pd-cap {
  text-align: center;
  font-size: 13px;
  color: #a8a29e;
  margin-top: -12px;
  margin-bottom: 22px;
}

#pd-post ul, #pd-post ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

#pd-post li,
[data-theme="dark"] #pd-post li {
  color: #e7e2dc;
  margin-bottom: 10px;
}

#pd-post li b,
#pd-post p b,
#pd-post strong,
[data-theme="dark"] #pd-post li b,
[data-theme="dark"] #pd-post p b,
[data-theme="dark"] #pd-post strong {
  color: #fb923c;
  font-weight: 700;
}

#pd-post a,
[data-theme="dark"] #pd-post a {
  color: #fb923c;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

#pd-post a:hover,
[data-theme="dark"] #pd-post a:hover {
  color: #facc15;
}

/* Quotes */
#pd-post blockquote,
[data-theme="dark"] #pd-post blockquote {
  background: #1c1917;
  border-left: 4px solid #f97316;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0;
  color: #f5c26b;
  font-family: 'Yatra One', serif;
  font-size: 17.5px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

#pd-post blockquote span,
[data-theme="dark"] #pd-post blockquote span {
  display: block;
  font-family: 'Mukta', sans-serif;
  font-size: 13px;
  color: #a8a29e;
  margin-top: 8px;
}

/* Cards & Content Containers in Dark Mode */
.pd-contact-box,
.pd-lyrics-box,
.pd-chalisa-box,
.pd-day-box,
.pd-milestone,
.pd-navadurga-card,
.pd-verse-box,
.pd-related,
[data-theme="dark"] .pd-contact-box,
[data-theme="dark"] .pd-lyrics-box,
[data-theme="dark"] .pd-chalisa-box,
[data-theme="dark"] .pd-day-box,
[data-theme="dark"] .pd-milestone,
[data-theme="dark"] .pd-navadurga-card,
[data-theme="dark"] .pd-verse-box,
[data-theme="dark"] .pd-related {
  background: #1c1917;
  border: 1px solid #382f2d;
  border-radius: 14px;
  color: #e7e2dc;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.pd-contact-box { padding: 24px 26px; margin-top: 24px; }
.pd-contact-box .row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15.5px;
  color: #e7e2dc;
}
.pd-contact-box .row:last-child { margin-bottom: 0; }
.pd-contact-box a { color: #fb923c; font-weight: 600; text-decoration: none; }
.pd-contact-box a:hover { color: #facc15; }

/* Tags & Badges */
.pd-tag,
[data-theme="dark"] .pd-tag {
  display: inline-block;
  background: #292524;
  color: #fb923c;
  border: 1px solid #44403c;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Alert Boxes */
.pd-note,
[data-theme="dark"] .pd-note {
  background: #231d16;
  border-left: 4px solid #f97316;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
  color: #fed7aa;
  margin: 22px 0;
}
.pd-note b, [data-theme="dark"] .pd-note b { color: #fdba74; }

.pd-warning,
[data-theme="dark"] .pd-warning {
  background: #2a1215;
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
  color: #fecaca;
  margin: 22px 0;
}
.pd-warning b, [data-theme="dark"] .pd-warning b { color: #f87171; }

/* Lyrics & Chalisa */
.pd-lyrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}
@media (max-width: 640px) { .pd-lyrics-grid { grid-template-columns: 1fr; } }

.pd-lyrics-box { padding: 20px; }
.pd-lyrics-box h3, [data-theme="dark"] .pd-lyrics-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #f5c26b;
  margin-bottom: 12px;
}
.pd-lyrics-box p, [data-theme="dark"] .pd-lyrics-box p {
  font-size: 15.5px;
  line-height: 1.95;
  color: #e7e2dc;
  margin: 0;
}
.pd-lyrics-box.hindi p { font-family: 'Mukta', serif; }
.pd-lyrics-box.eng p, [data-theme="dark"] .pd-lyrics-box.eng p { font-style: italic; color: #d6d3d1; }

.pd-chalisa-box { padding: 22px 24px; margin: 20px 0; }
.pd-chalisa-box h3, [data-theme="dark"] .pd-chalisa-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #f5c26b;
  margin-bottom: 12px;
}
.pd-chalisa-box p, [data-theme="dark"] .pd-chalisa-box p {
  font-size: 16.5px;
  line-height: 2.05;
  color: #e7e2dc;
  margin: 0;
}

.pd-day-box { padding: 18px 20px; margin: 16px 0; }
.pd-day-box .day, [data-theme="dark"] .pd-day-box .day {
  font-family: 'Yatra One', serif;
  font-size: 16.5px;
  color: #f5c26b;
  margin-bottom: 6px;
}
.pd-day-box .desc, [data-theme="dark"] .pd-day-box .desc {
  font-size: 14.5px;
  color: #d6d3d1;
  line-height: 1.75;
}

.pd-milestone { padding: 18px 20px; margin: 16px 0; }
.pd-milestone .label, [data-theme="dark"] .pd-milestone .label {
  font-family: 'Yatra One', serif;
  font-size: 15.5px;
  color: #f5c26b;
}
.pd-milestone .sub, [data-theme="dark"] .pd-milestone .sub {
  font-size: 14px;
  color: #d6d3d1;
}

.pd-navadurga-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}
@media (max-width: 640px) { .pd-navadurga-grid { grid-template-columns: repeat(2, 1fr); } }
.pd-navadurga-card { padding: 16px; }
.pd-navadurga-card .day, [data-theme="dark"] .pd-navadurga-card .day {
  font-size: 11.5px;
  color: #fb923c;
  font-weight: 700;
  text-transform: uppercase;
}
.pd-navadurga-card h3, [data-theme="dark"] .pd-navadurga-card h3 {
  font-family: 'Yatra One', serif;
  font-size: 15.5px;
  color: #f5c26b;
  margin: 4px 0;
}
.pd-navadurga-card p, [data-theme="dark"] .pd-navadurga-card p {
  font-size: 13px;
  color: #d6d3d1;
  margin: 0;
  line-height: 1.6;
}

.pd-related { margin: 32px 0; padding: 20px; }
.pd-related a, [data-theme="dark"] .pd-related a {
  color: #fb923c;
  font-weight: 600;
  text-decoration: none;
}
.pd-related a:hover { color: #facc15; }

.pd-verse-box { padding: 20px 22px; margin: 18px 0; }
.pd-verse-box .k, [data-theme="dark"] .pd-verse-box .k {
  font-size: 11px;
  color: #fb923c;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.pd-verse-box .text, [data-theme="dark"] .pd-verse-box .text {
  font-size: 16px;
  color: #f5c26b;
  line-height: 1.9;
  white-space: pre-line;
  margin-bottom: 12px;
  font-family: 'Yatra One', serif;
}
.pd-verse-box .meaning, [data-theme="dark"] .pd-verse-box .meaning {
  font-size: 14px;
  color: #d6d3d1;
  line-height: 1.75;
}

.pd-kand-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed #382f2d;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-kand-nav a, [data-theme="dark"] .pd-kand-nav a {
  color: #fb923c;
  font-weight: 600;
  text-decoration: none;
}
.pd-kand-nav a:hover { color: #facc15; }
.pd-progress, [data-theme="dark"] .pd-progress {
  text-align: center;
  font-size: 12.5px;
  color: #a8a29e;
  margin: 22px 0;
}

/* ============================================================
   Light Theme Overrides ([data-theme="light"])
   WCAG 2.1 AAA Compliant against #fffbeb / #ffffff
   ============================================================ */
[data-theme="light"] #pd-post {
  color: #2c2420;
}
[data-theme="light"] #pd-post h1,
[data-theme="light"] #pd-post h2,
[data-theme="light"] #pd-post h3 {
  color: #7c2d12;
}
[data-theme="light"] #pd-post p {
  color: #2c2420;
}
[data-theme="light"] #pd-post img {
  box-shadow: 0 12px 28px -14px rgba(124, 45, 18, 0.25);
  border: 1px solid #fde68a;
}
[data-theme="light"] #pd-post .pd-post-sub,
[data-theme="light"] #pd-post .pd-cap {
  color: #78716c;
}
[data-theme="light"] #pd-post li {
  color: #2c2420;
}
[data-theme="light"] #pd-post li b,
[data-theme="light"] #pd-post p b,
[data-theme="light"] #pd-post strong {
  color: #9a3412;
}
[data-theme="light"] #pd-post a {
  color: #c2410c;
}
[data-theme="light"] #pd-post a:hover {
  color: #7c2d12;
}
[data-theme="light"] #pd-post blockquote {
  background: #fdfaf4;
  border-left: 4px solid #c2410c;
  color: #7c2d12;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.08);
}
[data-theme="light"] #pd-post blockquote span {
  color: #78716c;
}

[data-theme="light"] .pd-contact-box,
[data-theme="light"] .pd-lyrics-box,
[data-theme="light"] .pd-chalisa-box,
[data-theme="light"] .pd-day-box,
[data-theme="light"] .pd-milestone,
[data-theme="light"] .pd-navadurga-card,
[data-theme="light"] .pd-verse-box,
[data-theme="light"] .pd-related {
  background: #ffffff;
  border: 1px solid #fde68a;
  color: #2c2420;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.08);
}

[data-theme="light"] .pd-contact-box .row {
  color: #2c2420;
}
[data-theme="light"] .pd-contact-box a {
  color: #c2410c;
}
[data-theme="light"] .pd-tag {
  background: #fef3c7;
  color: #9a3412;
  border: 1px solid #fde68a;
}
[data-theme="light"] .pd-note {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}
[data-theme="light"] .pd-note b { color: #92400e; }
[data-theme="light"] .pd-warning {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}
[data-theme="light"] .pd-warning b { color: #b91c1c; }

[data-theme="light"] .pd-lyrics-box h3,
[data-theme="light"] .pd-chalisa-box h3 {
  color: #9a3412;
}
[data-theme="light"] .pd-lyrics-box p,
[data-theme="light"] .pd-chalisa-box p {
  color: #2c2420;
}
[data-theme="light"] .pd-lyrics-box.eng p {
  color: #57534e;
}
[data-theme="light"] .pd-day-box .day,
[data-theme="light"] .pd-milestone .label,
[data-theme="light"] .pd-navadurga-card h3 {
  color: #7c2d12;
}
[data-theme="light"] .pd-day-box .desc,
[data-theme="light"] .pd-milestone .sub,
[data-theme="light"] .pd-navadurga-card p {
  color: #57534e;
}
[data-theme="light"] .pd-navadurga-card .day {
  color: #c2410c;
}
[data-theme="light"] .pd-related a {
  color: #c2410c;
}
[data-theme="light"] .pd-verse-box .k {
  color: #c2410c;
}
[data-theme="light"] .pd-verse-box .text {
  color: #7c2d12;
}
[data-theme="light"] .pd-verse-box .meaning {
  color: #44403c;
}
[data-theme="light"] .pd-kand-nav {
  border-top: 1px dashed #fde68a;
}
[data-theme="light"] .pd-kand-nav a {
  color: #c2410c;
}
[data-theme="light"] .pd-progress {
  color: #78716c;
}

/* ============================================================
   Bhagavad Gita Reader Styles (#pd-gita-reader)
   High-Contrast Dark & Light Support
   ============================================================ */
#pd-gita-reader {
  font-family: 'Tiro Devanagari Sanskrit', 'Mukta', serif;
  background-color: var(--bg-surface, #1c1917);
  color: var(--text-primary, #fafaf9);
  border-radius: 18px;
  overflow: hidden;
  margin: 20px auto 40px;
  border: 1px solid var(--border-color, #382f2d);
}

[data-theme="light"] #pd-gita-reader {
  background-color: #ffffff;
  color: #1c1917;
  border: 1px solid #fde68a;
}

#pd-gita-reader .header-title { font-family: 'Yatra One', cursive; }

#pd-gita-reader .sloka-card {
  background: var(--bg-surface-elevated, #292524);
  border-left: 4px solid var(--gold-primary, #eab308);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-primary, #fafaf9);
}

[data-theme="light"] #pd-gita-reader .sloka-card {
  background: #ffffff;
  border-left: 4px solid #c2410c;
  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.08);
  color: #1c1917;
}

#pd-gita-reader .custom-scrollbar::-webkit-scrollbar { width: 6px; }
#pd-gita-reader .custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--gold-primary, #eab308);
  border-radius: 10px;
}