/* ============================= */
/* Luxury Dark Palette (Moody + Posh) */
/* ============================= */

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

/* General layout */
body {
    background-color: #0E0E12;   /* midnight charcoal */
    color: #F5F2EB;              /* soft ivory */
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    padding-top: 20px;
}

/* Links */
a {
    color: #C6A75E;              /* champagne gold */
    text-decoration: none;
    transition: 0.25s ease;
}

a:hover {
    color: #E8D7A5;              /* lighter champagne */
}

/* Header & nav */
.site-header {
    background: linear-gradient(145deg, #1A1A22, #14141B);
    padding: 20px;
    border-bottom: 1px solid #3A3326;   /* subtle bronze */
    text-align: center;
}

.logo {
    max-width: 200px;
    margin-bottom: 10px;
}

/* Nav */
.main-nav {
    border-top: 2px solid #3A3326;
    border-bottom: 1px solid #3A3326;
    margin-top: 30px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.main-nav li a {
    font-weight: 600;
    color: #F5F2EB;
    padding: 8px 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.25s ease, border-bottom 0.25s ease;
}

.main-nav li a:hover {
    color: #C6A75E;
    border-bottom: 1px solid #C6A75E;
}

/* Content area */
.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1A1A22;
    color: #F5F2EB;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    border: 1px solid #3A3326;
}

th, td {
    padding: 14px;
    border: 1px solid #2A2A33;
    text-align: left;
}

th {
    background-color: #2A1F2F;  /* deep plum */
    color: #C6A75E;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Forms */
form input,
form select,
form textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #3A3326;
    background-color: #16161C;
    color: #F5F2EB;
    transition: 0.25s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #C6A75E;
    box-shadow: 0 0 10px rgba(198, 167, 94, 0.25);
}

/* Buttons */
button,
input[type="submit"] {
    background-color: #4B1E2F;   /* deep burgundy */
    color: #F5F2EB;
    font-weight: 700;
    padding: 12px 22px;
    border: 1px solid #3A3326;
    cursor: pointer;
    letter-spacing: 0.6px;
    transition: 0.25s ease;
}

button:hover,
input[type="submit"]:hover {
    background-color: #C6A75E;
    color: #0E0E12;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: #14141B;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #3A3326;
    color: #A8A39B;
    font-size: 14px;
}

/* ============================= */
/* WEEKLY GAMES SECTION */
/* ============================= */

.poker-section {
    width: 100%;
    border-top: 1px solid #3A3326;
    border-bottom: 1px solid #3A3326;
    padding: 40px 20px;
    margin: 40px 0;
    background: linear-gradient(
        135deg,
        rgba(198, 167, 94, 0.08),
        rgba(42, 31, 47, 0.12)
    );
}

.weekly-games {
    max-width: 1400px;
    margin: 0 auto;
}

.weekly-games-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 900;
    color: #C6A75E;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 7-column calendar layout */
.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

/* Day column */
.day-column {
    background: rgba(20, 20, 27, 0.96);
    border: 1px solid #3A3326;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    min-height: 320px;
}

/* Day heading */
.day-header {
    background: linear-gradient(145deg, #211821, #181820);
    color: #C6A75E;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 10px;
    border-bottom: 1px solid #3A3326;
    font-size: 0.95rem;
}

/* Container for games under each day */
.day-games {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Individual game card */
.game-card {
    background: linear-gradient(145deg, #1A1A22, #15151B);
    border: 1px solid #2E2A22;
    border-radius: 12px;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: #C6A75E;
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.game-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: #C6A75E;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-venue {
    font-size: 1.05rem;
    font-weight: 800;
    color: #F5F2EB;
    margin-bottom: 8px;
    line-height: 1.3;
}

.game-meta {
    font-size: 0.92rem;
    color: #B8B2A7;
    line-height: 1.5;
}

.day-empty {
    color: #7E776D;
    font-style: italic;
    text-align: center;
    padding: 20px 10px;
    border: 1px dashed #3A3326;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
}

/* Legacy classes kept in case parts of your page still use them */
.poker-columns {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.poker-column {
    flex: 1;
    text-align: center;
}

/* Headings */
.h3 {
    font-weight: 900;
}

/* Poker card headings */
.poker-card h3 {
    font-size: 3rem;
    font-weight: 900;
    color: #C6A75E;
    margin-top: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #3A3326;
    padding-bottom: 6px;
}

/* Venue */
.venue-logo {
    height: 90px;
    width: auto;
    display: block;
    margin: 0 auto 10px auto;
}

.venue-name {
    font-size: 2rem;
    font-weight: 700;
    color: #F5F2EB;
}

/* Notifications */
.notif {
    position: relative;
    display: inline-block;
    margin-left: 12px;
}

.notif-btn {
    background: transparent;
    border: 1px solid #3A3326;
    color: #F5F2EB;
    padding: 8px 10px;
    cursor: pointer;
}

.notif-badge {
    margin-left: 6px;
    background: #C6A75E;
    color: #0E0E12;
    border-radius: 999px;
    padding: 2px 7px;
    font-weight: 800;
    font-size: 12px;
}

.notif-panel {
    position: absolute;
    right: 0;
    top: 120%;
    width: 340px;
    background: #14141B;
    border: 1px solid #3A3326;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
    z-index: 99999;
}

.notif-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #3A3326;
}

.notif-head button {
    background: transparent;
    border: 1px solid #3A3326;
    color: #C6A75E;
    padding: 6px 8px;
    cursor: pointer;
}

.notif-list {
    max-height: 380px;
    overflow: auto;
}

.notif-item {
    padding: 10px;
    border-bottom: 1px solid #22222B;
}

.notif-item.unread {
    background: rgba(198,167,94,0.08);
}

.notif-title {
    font-weight: 800;
    color: #F5F2EB;
    margin-bottom: 4px;
}

.notif-msg {
    color: #A8A39B;
    font-size: 14px;
}

.notif-meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.notif-meta button {
    background: transparent;
    border: 1px solid #3A3326;
    color: #F5F2EB;
    padding: 4px 8px;
    cursor: pointer;
}

/* ============================= */
/* TRIVIA LEADERBOARD STYLING */
/* ============================= */

.trivia-card {
    background: #16161d;
    border: 1px solid #3A3326;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.trivia-filters {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.filter-group label {
    margin-bottom: 6px;
    font-weight: 700;
    color: #C6A75E;
}

.trivia-filters select {
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #3A3326;
    background: #1f1f27;
    color: #fff;
    min-width: 250px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.trivia-filters select:focus {
    outline: none;
    border-color: #C6A75E;
    box-shadow: 0 0 0 2px rgba(198,167,94,0.2);
}

.trivia-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.trivia-table th {
    background: #1f1f27;
    color: #C6A75E;
    padding: 14px;
    text-align: left;
    font-weight: 800;
    border-bottom: 2px solid #3A3326;
}

.trivia-table td {
    padding: 14px;
    border-bottom: 1px solid #2a2a34;
}

.trivia-table tr:hover {
    background: rgba(198,167,94,0.08);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1200px) {
    .weekly-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .weekly-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .poker-columns {
        flex-direction: column;
        padding: 0 20px;
    }

    .main-nav ul {
        gap: 16px;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .weekly-grid {
        grid-template-columns: 1fr;
    }

    .weekly-games-title {
        font-size: 2rem;
    }

    .day-column {
        min-height: auto;
    }

    .content {
        padding: 0 15px;
    }

    .venue-name {
        font-size: 1.5rem;
    }

    .poker-card h3 {
        font-size: 2.2rem;
    }

    .notif-panel {
        width: 300px;
        right: -10px;
    }
}