/* Filename: satta-custom.css
   Description: V3 - Dark Theme, Sleek Sticky Faridabad Card, Live Sorting & Split Layout fixes
*/

/* --- HIDE WP DEFAULTS --- */
.page-template-satta-king-master-pro .site-header, 
.page-template-satta-king-master-pro .site-footer, 
.page-template-satta-king-master-pro #masthead, 
.page-template-satta-king-master-pro footer { 
    display: none !important; 
}

/* --- VARIABLES --- */
:root {
    --gold: #ffd700;
    --dark-bg: #050505;
    --card-bg: #121212;
    --text: #ffffff;
    --red: #ff0000;
    --green: #00ff00;
    --dim-text: #888888;
}

/* --- GLOBAL LAYOUT --- */
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: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- FIXED 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;}
.refresh-btn {
    background: var(--red); color: #fff; text-decoration: none;
    padding: 8px 20px; border-radius: 4px; font-size: 13px; font-weight: bold;
    transition: 0.3s;
}
.refresh-btn:hover { background: #cc0000; }

/* --- HERO SECTION --- */
.hero-text { text-align: center; margin-bottom: 30px; margin-top: 20px; }
.hero-text h1 { margin: 0; font-size: 36px; 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: 8px; letter-spacing: 1px; text-transform: uppercase;}

/* --- SLEEK STICKY FARIDABAD CARD --- */
.fbd-sticky-card {
    position: sticky;
    top: 65px; 
    z-index: 9990;
    background: linear-gradient(135deg, #1f0000, #3a0000);
    border: 1px solid var(--gold);
    border-radius: 8px; /* Slightly sharper corners for a sleek look */
    margin: 0 auto 20px auto; /* Reduced bottom margin */
    width: 90%; /* Constrained width */
    max-width: 450px; /* Thinner max-width */
    box-shadow: 0 5px 15px rgba(0,0,0,0.8), 0 0 10px rgba(255, 215, 0, 0.15);
    overflow: hidden;
}

.fbd-alert-text {
    background: var(--gold);
    color: #000;
    text-align: center;
    font-weight: 900;
    padding: 4px 10px; /* Reduced padding */
    font-size: 11px; /* Reduced font size */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fbd-alert-text i { margin-right: 6px; animation: ring 2s infinite; }

.fbd-sticky-results {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px; /* Reduced padding heavily to make it thinner */
    align-items: center;
}

.fbd-s-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 48%;
}

.fbd-s-title {
    color: #aaa;
    font-size: 10px; /* Reduced font size */
    text-transform: uppercase;
    margin-bottom: 2px; /* Tighter spacing */
    letter-spacing: 1px;
}

.fbd-s-res {
    font-size: 28px; /* Greatly reduced for compactness */
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

/* --- CARDS GRID --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.game-card:hover { transform: translateY(-5px); border-color: #444; }
.game-card.is-new { border-color: var(--gold); }

/* New Badge */
.new-badge {
    position: absolute; top: -10px; right: -10px;
    background: var(--red); color: #fff;
    font-size: 10px; font-weight: bold; padding: 4px 12px;
    border-radius: 20px; box-shadow: 0 0 15px rgba(255,0,0,0.5);
    animation: pulse 1.5s infinite; z-index: 10;
}

.g-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.g-name { font-size: 20px; font-weight: 800; color: #fff; text-transform: uppercase; }
.status-time { font-size: 12px; color: var(--dim-text); background: #000; padding: 4px 8px; border-radius: 4px; }

/* --- SPLIT LAYOUT (Left Yesterday / Right Today) --- */
.split-result-box {
    display: flex;
    justify-content: space-between;
    background: #0a0a0a;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #222;
}

.res-col {
    text-align: center;
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.res-col.left-col { border-right: 1px solid #222; }

.col-title { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }

/* Yesterday Style */
.y-res-big { font-size: 32px; font-weight: 700; color: #ccc; line-height: 1; }
/* Today Style */
.t-res-big { font-size: 42px; font-weight: 900; color: var(--gold); line-height: 1; }

/* Status Modes */
.wait-mode { color: #555; font-size: 32px; animation: blinkWait 1.5s infinite; }
.live-mode { 
    color: var(--green) !important; 
    font-size: 36px; 
    animation: liveBlink 1s infinite; 
    text-shadow: 0 0 10px rgba(0,255,0,0.4); 
}

/* Last 5 Days History */
.history-row {
    display: flex; justify-content: center; gap: 8px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #222;
}
.h-item { display: flex; flex-direction: column; align-items: center; }
.h-sq {
    width: 32px; height: 32px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: #fff;
    background: #222; border: 1px solid #333; margin-bottom: 4px;
}
.h-date { font-size: 8px; color: #666; }

/* Colors for boxes */
.bg-1 { background: linear-gradient(135deg, #1e88e5, #1565c0); border:none;}
.bg-2 { background: linear-gradient(135deg, #43a047, #2e7d32); border:none;}
.bg-3 { background: linear-gradient(135deg, #e53935, #c62828); border:none;}
.bg-4 { background: linear-gradient(135deg, #8e24aa, #6a1b9a); border:none;}
.bg-5 { background: linear-gradient(135deg, #fb8c00, #ef6c00); border:none;}

/* --- CHART --- */
.chart-box { background: var(--card-bg); border-top: 3px solid var(--gold); border-radius: 12px; overflow: hidden; margin-bottom: 50px; }
.chart-head { background: #0a0a0a; color: var(--gold); padding: 15px; text-align: center; font-weight: 900; font-size: 18px; text-transform: uppercase; letter-spacing: 1px;}
.chart-head h2 { margin: 0; font-size: 18px; color: var(--gold); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { background: #000; color: #aaa; padding: 12px 5px; font-size: 13px; text-transform: uppercase; border-bottom: 1px solid #222; }
td { padding: 10px 5px; text-align: center; color: #fff; font-weight: bold; border: 1px solid #222; font-size: 16px; cursor: pointer; transition: 0.2s; }
tr:nth-child(even) { background: #0a0a0a; }
.date-col { color: #666; font-size: 11px; cursor: default; }

/* Highlight Logic CSS */
.highlight-cell { background-color: var(--gold) !important; color: #000 !important; font-weight: 900; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.related-cell { background-color: #333 !important; color: var(--gold) !important; border: 1px solid var(--gold); }

/* --- CONTENT AREA STYLES --- */
.info-content-wrap {
    max-width: 1000px;
    margin: 40px auto 20px auto;
    background: #0a0a0a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #e0e0e0;
    line-height: 1.6;
}

.info-content-wrap h2 { color: var(--gold); font-size: 28px; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 10px; }
.info-content-wrap h3 { color: #fff; font-size: 22px; margin-top: 30px; margin-bottom: 15px; }
.info-content-wrap p { margin-bottom: 15px; font-size: 16px; color: #ccc; }
.info-content-wrap ul { background: #111; padding: 20px 40px; border-radius: 8px; border-left: 4px solid var(--gold); }
.info-content-wrap li { margin-bottom: 10px; color: #ddd; }

/* FAQ Styling */
.faq-box { margin-top: 40px; }
.faq-item { background: #161616; margin-bottom: 15px; padding: 15px 20px; border-radius: 8px; border: 1px solid #333; }
.faq-ques { font-weight: bold; color: var(--gold); margin-bottom: 5px; display: block; }
.faq-ans { color: #aaa; font-size: 15px; }

/* Disclaimer Styling */
.disclaimer-box { margin-top: 50px; padding: 20px; background: rgba(255, 0, 0, 0.1); border: 1px solid rgba(255, 0, 0, 0.3); border-radius: 8px; color: #ffcccc; font-size: 14px; text-align: center; }
.disclaimer-box h3 { color: #ff4444; margin-top: 0; font-size: 18px; text-transform: uppercase; }

/* --- 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 pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,0,0,0.7); } 70% { transform: scale(1.1); box-shadow: 0 0 10px 10px rgba(255,0,0,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,0,0,0); } }
@keyframes blinkWait { 50% { opacity: 0.4; } }
@keyframes liveBlink { 0% { opacity: 1; } 50% { opacity: 0.2; transform: scale(0.95); } 100% { opacity: 1; } }
@keyframes ring { 0% { transform: rotate(0); } 10% { transform: rotate(15deg); } 20% { transform: rotate(-15deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-10deg); } 50% { transform: rotate(0); } 100% { transform: rotate(0); } }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 600px) {
    body.satta-custom-body { padding-top: 70px !important; }
    
    /* MOBILE UPDATES FOR STICKY CARD */
    .fbd-sticky-card { top: 60px; margin: 0 auto 20px auto; width: 92%; }
    .fbd-sticky-results { padding: 6px 15px; }
    .fbd-s-res { font-size: 24px; } /* Even smaller on mobile */
    .fbd-alert-text { font-size: 10px; padding: 3px 8px; }

    .logo { font-size: 18px; }
    .refresh-btn { padding: 6px 15px; font-size: 12px; }
    .hero-text h1 { font-size: 24px; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px;}
    .y-res-big { font-size: 28px; }
    .t-res-big { font-size: 36px; }
    .h-sq { width: 28px; height: 28px; font-size: 12px; }
    th, td { padding: 8px 2px; font-size: 14px; }
    .info-content-wrap { padding: 20px 15px; }
    .info-content-wrap h2 { font-size: 24px; }
    .info-content-wrap h3 { font-size: 20px; }
    .footer-links a { display: block; margin: 8px 0 !important; }
}


/* --- APP DOWNLOAD BUTTON --- */
.app-btn-container {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 10px;
}

.modern-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #cc0000, #ff0000, #ff6600, #cc0000);
    background-size: 300% 300%;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
    /* Continuous gradient shift + Pulse animation */
    animation: gradientShift 4s ease infinite, btnPulse 2s infinite;
}

.modern-app-btn i {
    margin-right: 12px;
    font-size: 22px;
}

.modern-app-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
    color: #fff;
}

/* Animations specifically for the app button */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Mobile Adjustment for App Button */
@media (max-width: 600px) {
    .modern-app-btn {
        font-size: 14px;
        padding: 12px 24px;
        width: 85%;
    }
    .modern-app-btn i {
        font-size: 18px;
    }
}

/* --- FARIDABAD SATTA CHART BUTTON --- */
.chart-btn-container {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.gold-chart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #e6c200);
    color: #000000;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    border: 2px solid #ffffff; /* White border for extra pop */
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.gold-chart-btn i {
    margin-right: 10px;
    font-size: 20px;
}

.gold-chart-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffffff, var(--gold));
}

/* Mobile Adjustments for Chart Button */
@media (max-width: 600px) {
    .gold-chart-btn {
        font-size: 14px;
        padding: 12px 20px;
        width: 85%;
    }
    .gold-chart-btn i {
        font-size: 18px;
    }
}