/* Authentic Hindu/Vedic Theme Enhancement */

/* Enhanced Color Variables */
:root {
    --temple-red: #8B0000;
    --temple-gold: #D4AF37;
    --temple-bronze: #CD7F32;
    --lotus-pink: #E8B4B8;
    --sacred-saffron: #FF6B00;
    --deep-maroon: #4A0404;
    --antique-cream: #FAEBD7;
    --sacred-orange: #FF8C00;
    --border-ornate: linear-gradient(90deg, var(--temple-gold), var(--sacred-saffron), var(--temple-gold));
}

/* Body Enhancement */
body {
    background: linear-gradient(180deg, #FFF8E7 0%, #FEF5E7 50%, #FDF2E9 100%);
    background-attachment: fixed;
}

/* Authentic Card Styling */
.dp-card,
.card,
.vrat-card,
.date-card,
.festival-card,
.temple-card,
.content-card,
.rashi-card,
.circuit-card,
.holiday-card {
    background: linear-gradient(145deg, #FFFFFF 0%, #FFFAF0 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.08), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.dp-card::before,
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-ornate);
}

/* Section Headers with Traditional Styling */
.dp-section-header,
.section-header {
    background: linear-gradient(135deg, var(--temple-red) 0%, var(--deep-maroon) 100%);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    position: relative;
    border-bottom: 2px solid var(--temple-gold);
}

.dp-section-header h2,
.section-header h2 {
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dp-section-header h2 i,
.section-header h2 i {
    color: var(--temple-gold);
}

/* Page Headers with Temple Motif */
.page-header,
.dp-header-section {
    background: linear-gradient(135deg, #D84315 0%, #BF360C 50%, #8B0000 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before,
.dp-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--temple-gold) 0px,
        var(--temple-gold) 10px,
        transparent 10px,
        transparent 15px,
        var(--sacred-saffron) 15px,
        var(--sacred-saffron) 25px,
        transparent 25px,
        transparent 30px
    );
}

.page-header::after,
.dp-header-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--temple-gold) 0px,
        var(--temple-gold) 10px,
        transparent 10px,
        transparent 15px,
        var(--sacred-saffron) 15px,
        var(--sacred-saffron) 25px,
        transparent 25px,
        transparent 30px
    );
}

/* Authentic Table Styling */
.dp-planet-summary-table,
.panchang-table,
.calendar-table,
.choghadiya-table,
.hora-table,
.lagna-table,
.dp-planet-positions-table,
.dp-planet-table,
table {
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--temple-red);
    border-radius: 8px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

/* Center all data containers */
.dp-section-content,
.section-content,
.panchang-section,
.data-section,
.info-section,
.content-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.dp-planet-summary-table thead,
.panchang-table thead {
    background: linear-gradient(135deg, var(--temple-red) 0%, var(--deep-maroon) 100%);
}

.dp-planet-summary-table th,
.panchang-table th {
    background: transparent;
    color: #FFF;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--temple-gold);
}

.dp-planet-summary-table tbody tr:nth-child(odd),
.panchang-table tbody tr:nth-child(odd) {
    background: rgba(255, 248, 225, 0.5);
}

.dp-planet-summary-table tbody tr:nth-child(even),
.panchang-table tbody tr:nth-child(even) {
    background: #FFFFFF;
}

.dp-planet-summary-table tbody tr:hover,
.panchang-table tbody tr:hover {
    background: rgba(255, 153, 51, 0.15);
}

/* Vrat Cards with Traditional Touch */
.vrat-card {
    border-left: 4px solid var(--temple-gold);
}

.vrat-card.shukla {
    border-left-color: #FF9800;
    background: linear-gradient(135deg, #FFFDE7 0%, #FFF8E1 100%);
}

.vrat-card.krishna {
    border-left-color: #607D8B;
    background: linear-gradient(135deg, #ECEFF1 0%, #CFD8DC 100%);
}

/* Festival Cards */
.festival-badge,
.festival-chip {
    background: linear-gradient(135deg, var(--sacred-saffron) 0%, #FF6D00 100%);
    border: 1px solid var(--temple-gold);
    color: white;
    font-weight: 500;
}

/* Info Banners */
.dp-info-banner,
.info-banner,
.vrat-info-card {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-left: 4px solid var(--sacred-saffron);
    border-radius: 8px;
    padding: 15px 20px;
}

/* Navigation Enhancement */
.nav-dropdown-menu {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFAF0 100%);
    border: 1px solid rgba(139, 26, 26, 0.2);
    border-top: 3px solid var(--temple-gold);
}

.dropdown-item:hover {
    background: var(--temple-red);
    color: white !important;
    border-left: 3px solid var(--temple-gold);
}

.dropdown-item:hover i {
    color: var(--temple-gold) !important;
}

/* Button Styling */
.btn-primary,
.year-btn,
.filter-btn.active,
.region-btn.active {
    background: linear-gradient(135deg, var(--temple-red) 0%, var(--deep-maroon) 100%);
    border: 1px solid var(--temple-gold);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover,
.year-btn:hover {
    background: linear-gradient(135deg, #A00000 0%, var(--temple-red) 100%);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
    transform: translateY(-1px);
}

/* Date Display Enhancement */
.dp-date-gregorian,
.date-badge,
.vrat-date-badge {
    background: linear-gradient(135deg, var(--temple-red) 0%, var(--deep-maroon) 100%);
    border: 2px solid var(--temple-gold);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

/* Planet Symbols Enhancement */
.planet-symbol {
    color: var(--temple-red);
    font-size: 1.2rem;
}

.retro-symbol {
    color: #D32F2F;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Lagna Row Highlight */
.lagna-row {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 248, 225, 0.5) 100%) !important;
    font-weight: 600;
}

/* Footer Enhancement */
.footer {
    background: linear-gradient(135deg, var(--deep-maroon) 0%, #2D0202 100%);
    border-top: 3px solid var(--temple-gold);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-ornate);
}

/* Temple Directory Cards */
.temple-card,
.temple-list-item {
    border: 1px solid rgba(139, 26, 26, 0.2);
    transition: all 0.3s ease;
}

.temple-card:hover,
.temple-list-item:hover {
    border-color: var(--temple-gold);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Zodiac Wheel Enhancement */
.zodiac-wheel-svg {
    filter: drop-shadow(0 4px 8px rgba(139, 0, 0, 0.2));
}

/* Highlight Cards */
.dp-highlight-card,
.stat-card {
    background: linear-gradient(145deg, #FFFFFF 0%, #FFFAF0 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.dp-highlight-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-ornate);
}

/* Muhurat Quality Indicators */
.quality-best,
.quality-good {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1) 0%, transparent 100%);
    border-left: 3px solid #4CAF50;
}

.quality-avoid,
.quality-bad {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.1) 0%, transparent 100%);
    border-left: 3px solid #F44336;
}

/* Form Inputs */
input[type="date"],
input[type="time"],
input[type="text"],
select {
    border: 1px solid rgba(139, 26, 26, 0.3);
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="text"]:focus,
select:focus {
    border-color: var(--temple-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF8E1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--temple-red) 0%, var(--deep-maroon) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--temple-red);
}

/* Om Symbol Decorations */
.page-icon i.fa-om {
    color: var(--temple-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Sacred Count Badge */
.vrat-count,
.muhurat-count {
    background: linear-gradient(135deg, var(--temple-red) 0%, var(--deep-maroon) 100%);
    border: 2px solid var(--temple-gold);
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.count-number,
.count-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--temple-gold);
}

/* Year Navigation */
.year-nav {
    background: linear-gradient(90deg, rgba(139, 26, 26, 0.05) 0%, rgba(255, 153, 51, 0.1) 50%, rgba(139, 26, 26, 0.05) 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(139, 26, 26, 0.1);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .page-header::before,
    .page-header::after,
    .dp-header-section::before,
    .dp-header-section::after {
        height: 3px;
    }
    
    .vrat-count,
    .muhurat-count {
        padding: 10px 20px;
    }
    
    .count-number,
    .count-value {
        font-size: 1.5rem;
    }
}
