/* ========================================
   SATTA KING - BLACK & YELLOW THEME
   ======================================== */

/* === VARIABLES === */
:root {
    --bg-primary: #121212; /* Black */
    --bg-secondary: #1E1E1E; /* Dark Gray for cards */
    --text-primary: #FFFFFF; /* White */
    --text-secondary: #AAAAAA; /* Light Gray */
    --accent-primary: #FFEB3B; /* Yellow */
    --accent-secondary: #FBC02D; /* Darker Yellow */
    --border-color: #333333;
    --shadow-color: rgba(255, 235, 59, 0.1);
}

/* === RESET & GENERAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

/* === HEADER / HERO === */
.hero {
    background: linear-gradient(to bottom, #000000, var(--bg-primary));
    color: var(--accent-primary);
    text-align: center;
    padding: 80px 20px;
    border-bottom: 3px solid var(--accent-primary);
    box-shadow: 0 5px 20px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    text-shadow: 3px 3px 0px #000, 5px 5px 10px rgba(0,0,0,0.8);
    letter-spacing: 3px;
}

.hero h3 {
    font-size: 1.7rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 1.5px;
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto;
    color: var(--text-secondary);
    opacity: 1;
    line-height: 1.7;
}

/* === ONLINE GAME PLAY SECTION === */
.online-game-play {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ogp-title {
    color: var(--accent-primary);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.ogp-subtitle {
    color: var(--text-secondary);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ogp-gamelist {
    margin-bottom: 15px;
    text-align: left;
    display: inline-block;
}

.ogp-gamelist p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.game-icon {
    color: var(--accent-primary);
}

.ogp-rates {
    margin-bottom: 15px;
}

.ogp-rates .rates-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-primary);
}

.ogp-note {
    color: var(--text-secondary);
    font-weight: bold;
    margin-bottom: 20px;
}

.ogp-button {
    display: inline-block;
    background-color: #333;
    color: var(--accent-primary);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}
.ogp-button:hover {
    background-color: #444;
}

.ogp-guarantee {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.ogp-phone {
    color: var(--accent-primary);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.ogp-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ogp-contact-buttons a {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    background-color: var(--accent-primary);
    font-weight: bold;
    font-size: 1rem;
    border: none;
    transition: background-color 0.3s ease;
}

.ogp-contact-buttons a:hover {
    background-color: var(--accent-secondary);
}

.ogp-contact-buttons .whatsapp-now {
    background-color: #25D366; /* Keep WhatsApp Green for branding */
    color: white;
}
.ogp-contact-buttons .whatsapp-now:hover {
    background-color: #1DAA54;
}


/* === RECENT RESULTS === */
.recent-results {
    background: var(--bg-secondary);
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.results-header {
    background-color: var(--accent-primary);
    color: #000000;
    padding: 15px;
    text-align: center;
}

.results-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

.results-table-header {
    display: flex;
    background-color: #333;
    color: var(--text-secondary);
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.results-table-header .game-name-header { flex: 2; text-align: left; padding-left: 10px; }
.results-table-header .date-header { flex: 1; text-align: center; }

.results-row {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
}
.results-row:last-of-type { border-bottom: none; }
.results-row .game-info { flex: 2; text-align: left; padding-left: 10px; }
.results-row .game-info .game-name { font-weight: bold; font-size: 1.1rem; color: var(--text-primary); }
.results-row .game-result { flex: 1; text-align: center; font-weight: bold; font-size: 1.5rem; color: var(--accent-primary); }

.results-button {
    display: block;
    background-color: #333;
    color: var(--accent-primary);
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-top: 1px solid var(--border-color);
}
.results-button:hover { background-color: #444; }

/* === MAIN CONTENT & TABLES === */
.content-section {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.content-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.schedule-table th, .schedule-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.schedule-table thead {
    background: #333;
    color: var(--accent-primary);
    font-size: 1rem;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #2C2C2C;
}

/* === FORMS === */
.form-container {
    background: transparent;
    padding: 0;
    margin: 30px auto;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.2);
}

button[type="submit"], .btn {
    display: inline-block;
    background: var(--accent-primary);
    color: #000000;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

button[type="submit"]:hover {
    background-color: var(--accent-secondary);
}

.login-wrapper .alert-danger {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

/* === WHATSAPP FLOAT BUTTON === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1DAA54;
}

/* === FOOTER === */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-info h4 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-info strong {
    color: var(--text-primary);
}

/* === ADMIN PANEL SPECIFIC STYLES === */
.admin-nav {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.admin-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav .nav-brand {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.admin-nav .nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.admin-nav .nav-menu a:hover {
    color: var(--accent-primary);
}

.admin-nav .support-btn {
    background-color: var(--accent-primary);
    color: #000;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}
.admin-nav .support-btn:hover {
    background-color: var(--accent-secondary);
    color: #000;
}

.admin-content h1 {
    text-align: center;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background-color: rgba(37, 211, 102, 0.2);
    color: #25D366;
    border: 1px solid #25D366;
}

.message.error {
    background-color: rgba(220, 20, 60, 0.2);
    color: #DC143C;
    border: 1px solid #DC143C;
}

.date-picker-container {
    position: relative;
}

.calendar-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--accent-primary); /* Changed to yellow */
    pointer-events: none; /* Allows clicking through to the date input */
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0; /* Hide the default icon */
    cursor: pointer;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero h3 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    /* Responsive Tables */
    .schedule-table th, .schedule-table td {
        padding: 8px;
        font-size: 0.9rem;
    }

    .results-row .game-result {
        font-size: 1.2rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1.1rem;
    }

    .ogp-phone {
        font-size: 2rem;
    }

    .ogp-contact-buttons {
        flex-direction: column;
    }

    /* More aggressive table responsiveness for very small screens */
    .schedule-table th, .schedule-table td {
        padding: 5px;
        font-size: 0.8rem;
    }

    .results-table-header {
        font-size: 0.9rem;
    }
    
    .results-row .game-info .game-name {
        font-size: 1rem;
    }

    .results-row .game-result {
        font-size: 1.1rem;
    }
}
