@import url(../css/color.css);
@import url(../css/default.css);
@import url(../css/component.css);
@import url(../css/responsive.css);

/* CARIBIA THEME - DESIGN 3 (THE GRAND BOARD) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Oswald:wght@400;700&family=Cinzel:wght@400;700;900&display=swap');

:root {
    --bg-jungle: #001205;
    /* Deepest Green */
    --felt-green: #003311;
    /* Casino Table Green */
    --gold-primary: #ffd700;
    --gold-dark: #b8860b;
    --caribia-red: #e60000;

    /* Luxury Gradients */
    --gold-plate: linear-gradient(to right, #b8860b 0%, #ffd700 20%, #ffecb3 50%, #ffd700 80%, #b8860b 100%);
    --gold-text-grad: linear-gradient(to bottom, #fff 0%, #ffd700 40%, #b8860b 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-jungle);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- BACKGROUND --- */
.bg-vines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 50% -50%, rgba(255, 215, 0, 0.2) 0%, transparent 60%),
        /* Top Gold Light */
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 2px, transparent 2px, transparent 10px),
        /* Mesh Texture */
        linear-gradient(to bottom, #001f0a 0%, #000 100%);
}

/* --- HEADER (Clean, No Menu) --- */
.simple-header {
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
    z-index: 10;
}

.web-logo {
    height: 100px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    transition: transform 0.3s;
}

.web-logo:hover {
    transform: scale(1.05);
}

.current-date {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    letter-spacing: 4px;
    margin-top: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* --- THE GRAND BOARD --- */
.board-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.grand-board {
    width: 100%;
    max-width: 1100px;
    background: var(--felt-green);
    border: 8px solid transparent;
    border-image: var(--gold-plate) 1;
    box-shadow:
        0 0 0 4px #000,
        /* Spacing between image border and outer glow */
        0 0 50px rgba(255, 215, 0, 0.2),
        /* Outer Gold Glow */
        inset 0 0 60px rgba(0, 0, 0, 0.8);
    /* Inner shadow */
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    /* Left, Divider, Right */
    align-items: stretch;
}

/* The Vertical Divider */
.board-divider {
    background: var(--gold-plate);
    height: 100%;
    width: 2px;
    box-shadow: 0 0 10px var(--gold-primary);
}

.board-panel {
    padding: 50px 30px;
    text-align: center;
    position: relative;
}

.panel-label {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.panel-label i {
    color: #fff;
    opacity: 0.8;
    font-size: 1.5rem;
}

/* BALLS */
.balls-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.gold-ball {
    margin-inline: 10px;
}
.gold-ball .prize-digit {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffd700 25%, #daa520 60%, #4a3c0a 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    color: #3d2e05;
    font-weight: 700;
    position: relative;
}

.gold-ball .prize-digit::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 12%;
    width: 25%;
    height: 15%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(2px);
}

.draw-meta {
    font-size: 0.9rem;
    color: #88aa88;
    letter-spacing: 2px;
}

/* --- HISTORY LEDGER (New) --- */
.history-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.history-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.history-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--gold-primary);
    margin: 10px auto 0;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 20, 10, 0.8);
    border: 3px solid var(--gold-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.ledger-table thead {
    background: var(--gold-plate);
    color: #2a1f05;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.ledger-table th {
    padding: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    font-size: 1.1rem;
}

.ledger-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    vertical-align: middle;
    font-size: 1.1rem;
}

.ledger-table tr:nth-child(even) {
    background: rgba(0, 50, 20, 0.4);
}

.ledger-table tr:hover {
    background: rgba(255, 215, 0, 0.15);
}

/* Micro Balls for Table (Super Sized) */
.micro-gold {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #ffd700 40%, #b8860b 100%);
    color: #3d2e05;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 60px;
    text-align: center;
    margin-right: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

/* --- FOOTER (DARK GREEN REDESIGN) --- */
.grand-footer {
    background: var(--bg-jungle);
    /* Dark Green Background */
    border-top: 4px solid var(--gold-dark);
    padding: 40px 0;
    margin-top: auto;
    color: #ddd;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-brand img {
    height: 50px;
}

.footer-seal {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    padding: 8px 15px;
    border-radius: 6px;
    text-transform: uppercase;
    background: transparent;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.pay-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
}

.footer-payments i {
    font-size: 2rem;
    color: #88aa88;
    transition: 0.3s;
}

.footer-payments i:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.1);
}

.footer-legal {
    font-size: 0.9rem;
    text-align: right;
    font-weight: 500;
    color: #88aa88;
    line-height: 1.6;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .grand-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto 2px auto;
    }

    .board-divider {
        width: 100%;
        height: 2px;
    }
}

@media (max-width: 600px) {
    .simple-header {
        padding: 20px 0;
    }

    .web-logo {
        height: 60px;
    }

    .current-date {
        font-size: 0.8rem;
        margin-top: 10px;
    }

    .board-container {
        padding: 20px 10px;
    }

    .grand-board {
        border-width: 4px;
        display: flex;
        flex-direction: column;
    }

    .board-panel {
        padding: 30px 10px;
    }

    .panel-label {
        font-size: 1.2rem;
    }

    .balls-display {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gold-ball {
        margin-inline: 5px;
    }
    .gold-ball .prize-digit {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    /* History Mobile */
    .history-section {
        padding: 0 10px;
        margin-bottom: 40px;
    }

    .history-title {
        font-size: 1.5rem;
    }

    .ledger-table th {
        font-size: 0.8rem;
        padding: 10px;
    }

    .ledger-table td {
        padding: 10px 5px;
        font-size: 0.8rem;
    }

    .micro-gold {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        line-height: 25px;
        margin-right: 3px;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .footer-nav a {
        margin: 0;
    }

    .footer-legal {
        text-align: center;
    }
}
