/* =============================================
   Satta King Fast - Traditional UI
   Simple, High-Contrast, and Mobile-Friendly
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --bg-light: #ffffff;
    --bg-gray: #f2f2f2;
    --primary-yellow: #ffc107;
    --danger-red: #ff0000;
    --success-green: #28a745;
    --info-blue: #007bff;
    --dark-gray: #333333;
    --border-color: #dee2e6;

    --font-main: 'Roboto', sans-serif;
}

/* --- Scrolling Banner --- */
.result-banner {
    width: 100%;
    height: 28px;
    background: #f7ff07;
    color: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.result-scroll {
    white-space: nowrap;
    padding-left: 100%;
    animation: scrollResult 40s linear infinite;
}

@keyframes scrollResult {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Base Styles --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: #000;
    font-family: var(--font-main);
    line-height: 1.4;
    padding-bottom: 2rem;
    font-size: 18px;
    /* Boosted base font */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 50px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px 15px;
    }
}

/* --- Header & Layout --- */
.site-header {
    text-align: center;
    padding: 30px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.header-side-img {
    max-width: 100%;
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .header-container {
        justify-content: center;
    }
    .header-side-img {
        display: none; /* Hide side images on tablet/mobile to save space */
    }
}

.logo-box {
    border: 3px solid #000;
    display: inline-block;
    padding: 15px 30px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 4px 4px 0px #000;
}

.logo-box h1 {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .logo-box {
        padding: 10px 15px;
        width: 100%;
    }
    .logo-box h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
    .logo-box h1 img {
        margin-right: 0 !important;
        height: 50px !important;
    }
}

.sub-header-text {
    font-size: 1rem;
    color: var(--danger-red);
    margin: 15px 0;
    font-weight: 700;
    line-height: 1.6;
}

/* --- Disclaimer --- */
.disclaimer-box {
    background-color: var(--danger-red);
    color: #fff;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    border-radius: 4px;
    line-height: 1.5;
}

.disclaimer-box a {
    color: #fff;
    text-decoration: underline;
}

.last-updated {
    text-align: center;
    font-size: 1.1rem;
    color: var(--success-green);
    font-weight: 900;
    margin-bottom: 20px;
}

/* --- Banner Buttons --- */
.banner-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .banner-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .btn-flat {
        width: 100%;
        justify-content: center;
    }
}

.btn-flat {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 4px 4px 0px #000;
    transition: transform 0.1s;
}

.btn-telegram {
    background-color: #0088cc;
}

.btn-whatsapp {
    background-color: #25D366;
}

/* --- Today's Results Block --- */
.today-results-block {
    text-align: center;
    margin-bottom: 30px;
}

.tr-header {
    color: var(--danger-red);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.tr-date {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 15px;
    font-weight: 500;
}

.tr-card {
    background: #fdfdfd;
    border-radius: 4px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tr-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/logo.png');
    background-size: 450px; /* Even bigger watermark */
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    opacity: 0.15; /* Subtler opacity for grayscale */
    z-index: -1;
}

.tr-content {
    position: relative;
    z-index: 2;
}

.tr-game {
    padding: 12px 0;
    border-bottom: 1px solid #666; /* Dark green/grey line */
}

.tr-game:last-child {
    border-bottom: none;
}

.tr-name {
    color: #b52a8a; /* Purple pink */
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.tr-number {
    color: #041062; /* Sharp navy blue */
    font-weight: 900;
    font-size: 1.3rem;
}

.tr-number.wait {
    color: var(--danger-red);
}

.tr-refresh {
    margin-top: 15px;
}

.btn-refresh {
    border: 1px solid var(--danger-red);
    color: #1b6237; /* success green text */
    padding: 5px 15px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    border-radius: 4px;
    display: inline-block;
}

/* --- Results Display --- */
.results-display-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
}

.display-img {
    flex: 1;
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    align-self: stretch;
    object-fit: cover;
}

.results-table-wrapper {
    flex: 3;
}

@media (max-width: 900px) {
    .display-img {
        display: none; /* Hide side images on mobile to focus on results */
    }
}

/* --- Promo Box --- */
.promo-box {
    background-color: #ffd700; /* Yellow */
    border: 2px solid #ff0000; /* Red */
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.promo-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: #000;
}

.promo-subtitle {
    margin-bottom: 15px;
    font-weight: 900;
    font-size: 1.2rem;
    color: #000;
}

.promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: inline-block;
    text-align: left;
}

.promo-list li {
    margin-bottom: 5px;
}

.promo-btn {
    display: inline-block;
    background-color: #008000; /* WhatsApp Green */
    color: white;
    padding: 5px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #fff;
    margin: 10px 0 5px 0;
}

/* --- Result Tables --- */
.table-title {
    background-color: var(--success-green);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 3px solid #000;
}

.result-table thead tr {
    background-color: #343a40;
    color: #fff;
}

.result-table th,
.result-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid var(--border-color);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .result-table th, .result-table td {
        padding: 8px;
        font-size: 1.1rem;
    }
}

.result-table th:nth-child(2),
.result-table th:nth-child(3),
.result-table td:nth-child(2),
.result-table td:nth-child(3) {
    text-align: center;
}

.badge-row {
    background-color: var(--danger-red);
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 10px 20px;
}

.game-row {
    background-color: var(--primary-yellow);
    font-weight: 900;
}

.game-row td {
    border: 1px solid #fff;
}

.game-row td:last-child {
    font-size: 2rem;
    /* Jumbo Numbers */
    font-weight: 900;
}

.game-row a {
    font-size: 0.75rem;
    color: var(--info-blue);
    font-weight: 400;
    text-decoration: none;
    margin-left: 5px;
}

/* --- Chart Table --- */
.chart-container {
    margin-top: 30px;
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.chart-table thead {
    background-color: var(--primary-yellow);
    font-weight: 900;
}

.chart-table th {
    padding: 10px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.chart-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .chart-table th, .chart-table td {
        padding: 5px;
        font-size: 0.75rem;
    }
}

.date-col {
    color: var(--danger-red);
    font-weight: 700;
}

/* --- Control Buttons --- */
.month-nav {
    display: flex;
    gap: 0;
    margin: 20px 0;
    flex-wrap: wrap;
}

.month-btn {
    flex: 1;
    background-color: var(--info-blue);
    color: #fff;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #fff;
}

.month-btn:hover {
    background-color: #0056b3;
}

.anchor-link-bar {
    background-color: var(--info-blue);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* --- Selector Form --- */
.selector-form {
    background-color: var(--primary-yellow);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.selector-form select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #000;
}

.btn-go {
    background-color: var(--info-blue);
    color: #fff;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }
    
    .promo-box {
        padding: 15px;
        font-size: 1rem;
    }
    
    .floating-contact {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 15% auto;
    }
    
    .developer-footer {
        padding-bottom: 100px; /* Creative safe zone for floating buttons */
        background: linear-gradient(to bottom, #000 0%, #0a0a0a 100%);
    }


    .dev-btn {
        animation: devPulse 2s infinite;
    }

    @keyframes devPulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
        70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
    }
    
    .contact-bubble {
        font-size: 0.8rem;
        padding: 4px 10px;
        top: -35px;
    }

    .info-block h2 {
        font-size: 1.4rem;
    }
    
    .info-content {
        font-size: 0.95rem;
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .logo-box h1 {
        font-size: 1.5rem;
    }

    .game-row td:last-child {
        gap: 10px;
    }

    .selector-form {
        flex-direction: column;
    }

    .selector-form>* {
        width: 100%;
    }
}

/* --- Pulse animation for traditional Feel --- */
.live-marker {
    color: var(--danger-red);
    font-weight: 900;
}

/* Bouncing Dots Placeholder - Simplified */
.awaiting-result {
    display: inline-flex;
    gap: 3px;
}

.awaiting-result .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

.awaiting-result .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.awaiting-result .dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* --- Modal Styles --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 3px solid #000;
    border-radius: 8px;
    width: 90%; 
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    color: #333;
}

.modal-content h2 {
    color: var(--danger-red);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 900;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.6;
    padding-right: 15px;
}

.modal-body h3 {
    color: var(--info-blue);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body p {
    margin-bottom: 15px;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* --- Floating Contact (Bottom Right) --- */
.floating-contact {

    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.float-btn:hover {
    transform: scale(1.15);
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.telegram {
    background-color: #0088cc;
}

.contact-bubble {
    position: absolute;
    top: -45px;
    right: 0;
    background: #fff;
    color: var(--danger-red);
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    border: 2px solid var(--danger-red);
    animation: floatBubble 2s ease-in-out infinite;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* --- SEO & Jumbo Footer --- */
.seo-footer {
    margin-top: 50px;
    padding-bottom: 50px;
    border-top: 2px solid #000;
}

.keyword-cloud {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--info-blue);
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-info-container {
    max-width: 1100px;
    margin: 0 auto;
}

.info-block {
    margin-bottom: 40px;
    text-align: center;
}

.info-header-bar {
    height: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.info-block h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-content {
    background: #fff;
    padding: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    color: #444;
}

/* Specific Bar Colors */
.bar-yellow {
    background-color: var(--primary-yellow);
}

.bar-red {
    background-color: var(--danger-red);
}

.bar-blue {
    background-color: var(--info-blue);
}

.bar-green {
    background-color: var(--success-green);
}

.border-yellow {
    border-color: var(--primary-yellow);
}

.border-red {
    border-color: var(--danger-red);
}

.border-blue {
    border-color: var(--info-blue);
}

.border-green {
    border-color: var(--success-green);
}

.disclaimer-section {
    background: #fdfdfd;
    padding: 30px;
    border: 1px solid #ddd;
    font-size: 1rem;
    color: #666;
    margin-top: 40px;
}

.disclaimer-section h3 {
    color: var(--danger-red);
    font-weight: 900;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* --- Developed by Dexter Footer --- */
.developer-footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.developer-footer a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 800;
    margin-left: 5px;
    transition: color 0.2s;
}

.developer-footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,193,7,0.5);
}

.dev-promo {
    font-size: 0.75rem;
    color: #555;
    font-weight: 400;
}

.dev-btn {
    display: inline-block;
    background: #ffc107;
    color: #000 !important;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 900;
    font-size: 0.65rem;
    margin: 0 8px;
    text-shadow: none !important;
    vertical-align: middle;
    transition: all 0.2s;
}

.dev-btn:hover {
    background: #fff !important;
    transform: scale(1.05);
}