/* ==========================================================================
   OnlyMantra Panchang Hub Styles (/panchang/)
   Apple Native Frosted Glass + Ramabhadra Classical Hierarchy
   ========================================================================== */

:root {
    --om-pc-bg: #f8fafc;
    --om-pc-surface: rgba(255, 255, 255, 0.85);
    --om-pc-border: rgba(255, 255, 255, 0.95);
    --om-pc-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --om-pc-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.om-panchang-hub-page {
  background-color: #f8fafc;
  min-height: 100vh;
  padding-bottom: 80px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  color: #1e293b;
}

/* Master Container */
.om-chant-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* 2-Column Portal Layout */
.om-portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.om-portal-main {
  min-width: 0;
}

.om-portal-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Hero Section ─── */
.om-panchang-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(20, 10, 5, 0.7) 100%),
              url('../images/om-hero-clean.webp') center center / cover no-repeat;
  color: #ffffff;
  padding: 60px 20px 48px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(234, 88, 12, 0.35);
  box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.3);
}

.om-panchang-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.om-panchang-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: #fed7aa;
  margin-bottom: 16px;
}

.om-panchang-breadcrumbs a {
  color: #fef08a;
  text-decoration: none;
  font-weight: 600;
}

.om-panchang-hero-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.om-panchang-hero-telugu {
  font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif;
  font-size: 17px;
  color: #fef08a;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.om-panchang-hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #f8fafc;
  max-width: 760px;
  margin: 0 auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* ─── Today's Panchang Master Glass Card ─── */
.om-today-panchang {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--om-pc-shadow);
  margin-bottom: 24px;
}

.om-panchang-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.om-panchang-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.om-panchang-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.om-panchang-date-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.om-panchang-date-picker-wrap {
  position: relative;
  display: inline-flex;
}

.om-panchang-cal-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
}

.om-panchang-cal-btn:hover {
  background: #ffedd5;
  border-color: #ea580c;
}

.om-panchang-date-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

.om-panchang-day-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.om-p-nav-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}

.om-p-nav-btn:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

.om-panchang-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #15803d;
  font-weight: 800;
  white-space: nowrap;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.om-panchang-live-dot span.om-p-dot-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
}

.om-panchang-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .om-panchang-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .om-panchang-grid { grid-template-columns: repeat(2, 1fr); }
}

.om-panchang-cell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 6px 10px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 140px;
}

.om-panchang-cell:hover {
  border-color: #fed7aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.om-pc-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.om-pc-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.om-pc-value {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
}

.om-pc-sub {
  font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif;
  font-size: 10.5px;
  color: #92400e;
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.3;
}

.om-pc-until {
  font-size: 9.5px;
  color: #c2410c;
  font-weight: 700;
  margin-top: auto;
  padding-top: 6px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  width: 100%;
}

.om-pc-until-pill {
  display: inline-block;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 9.5px;
  color: #ea580c;
  font-weight: 700;
}

.om-pc-until-label {
  font-weight: 600;
  color: #c2410c;
  text-transform: lowercase;
  opacity: 0.85;
}

/* Festival Notice Strip inside Panchang */
.om-panchang-festival {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 16px;
}

.om-pf-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.om-pf-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  background: #ea580c;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.om-pf-date-pill {
  font-size: 12px;
  color: #7c2d12;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.om-pf-items-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.om-pf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.om-pf-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
}

.om-pf-action-link:hover {
  text-decoration: underline;
}

/* ─── Muhurtam Panel ─── */
.om-muhurtam-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--om-pc-shadow);
}

.om-muhurtam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.om-muhurtam-card {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.om-subha-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.om-ashubha-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.om-mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.om-mc-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.om-mc-tag.green {
  background: #dcfce7;
  color: #15803d;
}

.om-mc-tag.red {
  background: #fee2e2;
  color: #b91c1c;
}

.om-mc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.om-mc-time {
  font-weight: 700;
  color: #0f172a;
}

.om-mc-time.red-text {
  color: #dc2626;
}

/* ─── Today's Auspicious Recommended Chants (Compact) ─── */
.om-rec-section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--om-pc-shadow);
  margin-top: 20px;
}

.om-rec-header {
  margin-bottom: 12px;
}

.om-rec-header h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
  letter-spacing: -0.02em;
}

.om-rec-header p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
}

.om-rec-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.om-rec-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.om-rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.08);
  border-color: #fed7aa;
}

.om-rc-badge {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 1px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 4px;
  width: fit-content;
}

.om-rc-badge.primary { color: #ea580c; background: #fff7ed; border-color: #fed7aa; }
.om-rc-badge.secondary { color: #0284c7; background: #f0f9ff; border-color: #bae6fd; }
.om-rc-badge.accent { color: #7c3aed; background: #f5f3ff; border-color: #ddd6fe; }

.om-rc-telugu {
  font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif;
  font-size: 11.5px;
  color: #c2410c;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}

.om-rc-why {
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 8px;
  line-height: 1.4;
}

.om-rc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: #64748b;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.om-rc-btn {
  background: #ea580c;
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.om-rc-btn:hover {
  background: #c2410c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

/* ─── Doctrine Box ─── */
.om-panchang-doctrine-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--om-pc-shadow);
  margin-top: 24px;
}

.om-panchang-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.om-panchang-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.om-panchang-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  border-color: #ea580c;
}

.om-panchang-item-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #c2410c;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.om-panchang-item-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.om-panchang-item-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* ─── Sidebar Cards & Typography Upgrade ─── */
.om-portal-sidebar {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

.om-sidebar-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 22px;
  box-shadow: var(--om-pc-shadow);
}

.om-sidebar-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  letter-spacing: -0.02em;
}

.om-portal-sidebar .om-categories-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.om-portal-sidebar .om-cat-nav-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.om-portal-sidebar .om-cat-nav-item a:hover {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #ea580c;
  transform: translateX(2px);
}
  color: #1e293b;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid #ede3d5;
  transition: all 0.2s ease;
}

.om-portal-sidebar .om-cat-nav-item a:hover {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fed7aa;
  transform: translateX(4px);
}

.om-portal-sidebar .om-cat-nav-count {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.om-portal-sidebar .om-cat-nav-item a:hover .om-cat-nav-count {
  background: #ea580c;
  color: #ffffff;
}

.om-sidebar-cta-card {
  box-shadow: 0 8px 24px rgba(49, 16, 66, 0.25) !important;
}

.om-sidebar-cta-card p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px !important;
  color: #cbd5e1 !important;
  line-height: 1.55 !important;
}

@media (max-width: 900px) {
  .om-panchang-hero {
    padding: 32px 16px 36px !important;
  }
  .om-panchang-hero-title {
    font-size: 25px !important;
    line-height: 1.2 !important;
  }
  .om-panchang-hero-telugu {
    font-size: 15px !important;
  }
  .om-panchang-hero-desc {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }
  .om-chant-badge-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .om-hero-badge {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }
  .om-muhurtam-grid {
    grid-template-columns: 1fr !important;
  }
  .om-panchang-card-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .om-portal-layout {
    display: flex !important;
    flex-direction: column !important;
  }
  .om-portal-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
    margin-top: 24px !important;
  }
  .om-portal-sidebar .om-sidebar-card {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }
}
