/* style.css */

/* बेसिक रीसेट */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* बॉडी स्टाइल */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

/* हेडर स्टाइल */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.header .date {
    font-size: 18px;
    opacity: 0.9;
}

/* कंटेनर */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* रिजल्ट बोर्ड */
.result-board {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.result-board:hover {
    transform: translateY(-5px);
}

.result-board h2 {
    background: linear-gradient(135deg, #4a6fa5 0%, #2e4a7a 100%);
    color: white;
    margin: 0;
    padding: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* टेबल स्टाइल */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

tr:hover {
    background-color: #f8f9fa;
}

/* गेम नाम */
.game-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 18px;
}

.game-time {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

/* रिजल्ट नंबर */
.result-number {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: #e74c3c;
    font-family: 'Courier New', monospace;
}

.result-yesterday {
    font-size: 20px;
    text-align: center;
    color: #7f8c8d;
    font-weight: 600;
}

/* चार्ट कंटेनर */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.chart-title {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 2px solid #4a6fa5;
    padding-bottom: 10px;
}

/* चार्ट टेबल */
.chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.chart-table th {
    background: #4a6fa5;
    color: white;
    padding: 12px;
    font-weight: 600;
    text-align: center;
}

.chart-table td {
    text-align: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.chart-table tr:nth-child(even) {
    background: #f8f9fa;
}

.chart-table tr:hover {
    background: #e9ecef;
}

.today-cell {
    background-color: #fff3cd !important;
    font-weight: bold !important;
    color: #856404;
}

/* नेविगेशन बटन */
.nav {
    text-align: center;
    margin: 30px 0;
}

.nav a, .nav button {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    background: linear-gradient(135deg, #4a6fa5 0%, #2e4a7a 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.nav a:hover, .nav button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
    background: linear-gradient(135deg, #3a5f95 0%, #1e3a6a 100%);
}

/* एडमिन लॉगिन */
.admin-login {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-login a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-login a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* लाइव बैज */
.live-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    animation: blink 1.5s infinite;
    display: inline-block;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* गेम स्टेटस क्लासेस */
.next-game {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.completed-game {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

/* रिस्पॉन्सिव डिजाइन */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .result-board h2 {
        font-size: 20px;
        padding: 15px;
    }
    
    .game-name {
        font-size: 16px;
    }
    
    .result-number {
        font-size: 22px;
    }
    
    th, td {
        padding: 10px;
    }
    
    .nav a, .nav button {
        display: block;
        margin: 10px auto;
        width: 90%;
        max-width: 300px;
    }
    
    .admin-login {
        position: static;
        text-align: center;
        margin: 20px;
    }
    
    .chart-table {
        font-size: 12px;
    }
    
    .chart-table th,
    .chart-table td {
        padding: 8px 5px;
    }
}

/* स्क्रॉलबार स्टाइल */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a6fa5 0%, #2e4a7a 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3a5f95 0%, #1e3a6a 100%);
}

/* लोडिंग एनिमेशन */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4a6fa5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}