/* Filename: satta-old-chart.css
   Description: Calendar View styling for Satta Old Record Chart with AJAX & Mobile Grid
*/

/* --- HIDE WP DEFAULTS --- */
.page-template-satta-old-chart .site-header, 
.page-template-satta-old-chart .site-footer, 
.page-template-satta-old-chart #masthead, 
.page-template-satta-old-chart footer { 
    display: none !important; 
}

/* --- VARIABLES & BASE --- */
:root {
    --gold: #ffd700;
    --dark-bg: #050505;
    --card-bg: #121212;
    --text: #ffffff;
    --red: #ff0000;
    --dim-text: #888888;
}

body.satta-custom-body {
    margin: 0; padding: 0;
    background-color: var(--dark-bg) !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    padding-top: 80px !important;
}

.main-wrap { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

/* --- NAVIGATION --- */
.pro-nav {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 2px solid var(--gold);
    padding: 15px 20px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.9);
}
.logo { font-size: 22px; font-weight: 900; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px;}
.back-btn {
    background: #333; color: #fff; text-decoration: none;
    padding: 8px 15px; border-radius: 4px; font-size: 13px; font-weight: bold;
    transition: 0.3s;
}
.back-btn:hover { background: var(--red); }
.back-btn i { margin-right: 5px; }

/* --- HERO SECTION --- */
.hero-text { text-align: center; margin-bottom: 30px; }
.hero-text h1 { margin: 0; font-size: 32px; color: #fff; font-weight: 800; text-transform: uppercase; }
.hero-text span { color: var(--gold); }
.hero-tagline { color: var(--dim-text); font-size: 14px; margin-top: 5px; letter-spacing: 1px; text-transform: uppercase;}

/* --- FILTER FORM --- */
.filter-box {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.chart-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    justify-content: space-between;
}
.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}
.form-group label {
    font-size: 12px;
    color: var(--dim-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.form-group select {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    transition: border 0.3s;
    appearance: none; /* Removes default dropdown arrow for cleaner look */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffd700" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: center;
}
.form-group select:focus { border-color: var(--gold); }

.btn-group { flex: 0 1 auto; min-width: 120px; }
.view-btn {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(255,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}
.view-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,0,0,0.5);
}
.view-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.8;
}
.view-btn i { margin-right: 6px; }

/* --- CALENDAR CHART WRAP --- */
.calendar-chart-wrap {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
}
.cal-header {
    background: #111;
    border-bottom: 2px solid var(--gold);
    padding: 15px;
    text-align: center;
}
.cal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--gold);
    letter-spacing: 1px;
}

/* --- CALENDAR GRID --- */
.cal-grid {
    display: grid;
    /* Automatically fits columns based on screen size */
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 25px;
    transition: opacity 0.3s ease;
}
.cal-box {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 15px 5px;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.cal-box:hover {
    transform: translateY(-3px);
    border-color: #555;
}
.cal-date {
    font-size: 11px;
    color: #777;
    margin-bottom: 8px;
    background: #000;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
}
.cal-val {
    font-size: 26px;
    font-weight: 900;
}
.dim-val { color: #444; }
.highlight-val { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.2); }

/* Today Highlight Box */
.today-box {
    border-color: var(--gold);
    background: linear-gradient(180deg, #1a1500, #161616);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    animation: glowPulse 2s infinite alternate;
}
.today-box .cal-date { background: var(--gold); color: #000; font-weight: bold; }
.today-box .cal-val { color: var(--gold); }

/* --- FOOTER --- */
.pro-foot { text-align: center; padding: 30px; font-size: 12px; color: #666; margin-top: auto; }
.footer-links a { color: var(--gold); text-decoration: none; transition: 0.3s; font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: #fff; text-shadow: 0 0 5px var(--gold); }

/* --- ANIMATIONS --- */
@keyframes glowPulse {
    from { box-shadow: 0 0 5px rgba(255, 215, 0, 0.1); }
    to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 600px) {
    body.satta-custom-body { padding-top: 70px !important; }
    .logo { font-size: 18px; }
    .hero-text h1 { font-size: 24px; }
    
    /* Mobile Form Layout Fix: Game Full Width, Month & Year inline, Button Full Width */
    .chart-form { 
        flex-direction: row; 
        justify-content: space-between;
    }
    .form-group:nth-child(1) { flex: 0 0 100%; width: 100%; margin-bottom: 5px; } /* Game */
    .form-group:nth-child(2) { flex: 0 0 48%; width: 48%; } /* Month */
    .form-group:nth-child(3) { flex: 0 0 48%; width: 48%; } /* Year */
    .btn-group { flex: 0 0 100%; width: 100%; margin-top: 10px; } /* View Button */
    
    .cal-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for mobile fit */
        gap: 10px;
        padding: 15px;
    }
    .cal-box { padding: 10px 2px; }
    .cal-val { font-size: 22px; }
    .footer-links a { display: block; margin: 8px 0 !important; }
}


/* --- SEO CONTENT AREA STYLES --- */
.info-content-wrap {
    max-width: 1000px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 16px;
}

.info-content-wrap h2 {
    color: var(--gold);
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content-wrap h3 {
    color: #fff;
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 15px;
    /* Red accent border for subheadings */
    border-left: 4px solid var(--red);
    padding-left: 12px;
}

.info-content-wrap p {
    margin-bottom: 18px;
    color: #cccccc;
}

/* Highlight important keywords in gold */
.info-content-wrap strong {
    color: var(--gold);
    font-weight: 700;
}

.info-content-wrap ul {
    background: #0a0a0a;
    padding: 20px 20px 20px 45px;
    border-radius: 8px;
    border: 1px solid #222;
    margin-bottom: 25px;
}

.info-content-wrap li {
    margin-bottom: 12px;
    color: #dddddd;
}

.info-content-wrap li::marker {
    color: var(--gold);
    font-size: 1.2em;
}

/* Disclaimer Specific Styling */
.disclaimer-box {
    padding: 20px 25px;
    background: rgba(255, 0, 0, 0.05);
    border: 1px dashed rgba(255, 0, 0, 0.4);
    border-radius: 8px;
    color: #ffcccc;
    font-size: 14.5px;
    text-align: center;
}

.disclaimer-box h3 {
    color: #ff4444 !important;
    margin-top: 0 !important;
    font-size: 18px !important;
    border-left: none !important; /* Overriding default h3 border */
    padding-left: 0 !important;
    text-transform: uppercase;
    margin-bottom: 10px !important;
    letter-spacing: 1px;
}

/* Mobile Adjustments for Content */
@media (max-width: 600px) {
    .info-content-wrap {
        padding: 20px 15px;
        margin: 30px 15px; /* Adds margin on sides for mobile */
    }
    .info-content-wrap h2 { font-size: 22px; }
    .info-content-wrap h3 { font-size: 19px; }
    .info-content-wrap p, .info-content-wrap li { font-size: 15px; }
    .info-content-wrap ul { padding: 15px 15px 15px 35px; }
}

