:root {
    --primary-blue: #2563eb;
    /* Header Blue */
    --hover-blue: #1d4ed8;
    --primary-orange: #f97316;
    /* CTA Orange */
    --bg-gray: #f3f4f6;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --font-family: 'Inter', system-ui, sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Header */
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    /* Remove gap, use padding on links */
    height: 100%;
}

nav li {
    height: 100%;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    transition: background-color 0.2s;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Banner Component */
.banner {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.banner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Card System */
.card-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

/* TABS STYLING */
.tabs-container {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background-color: white;
}

.tab-content {
    padding: 2rem;
    display: none;
    /* Hidden by default */
}

.tab-content.active {
    display: block;
}

/* Game Info inside Tab */
.game-info {
    text-align: center;
}

.game-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.draw-meta {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.numbers-display-large {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.ball-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.ball-large.bonus {
    background-color: #ef4444;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-history {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-history:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* History Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

tr:hover td {
    background-color: #f8fafc;
}

.numbers-display {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.ball {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.ball.bonus {
    background-color: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 0.5rem;
    }

    nav a {
        padding: 0 0.8rem;
        font-size: 0.85rem;
    }

    .banner {
        padding: 2rem 1rem;
    }

    .ball-large {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .tabs-container {
        overflow-x: auto;
    }
}