:root {
    /* Core Football Theme Colors */
    --color-turf-dark: #1f592d;
    --color-turf-light: #246433;
    --color-football-brown: #5d4037;
    --color-pylon-orange: #ff4500;
    --color-pylon-orange-hover: #cc3700;
    --color-ou-gold: #ffd700;
    --color-ou-gold-dark: #d4af37;
    
    /* Consolidated Neutrals */
    --color-text-main: #212529;   /* Replaces #333, #555 */
    --color-text-muted: #6c757d;  /* Replaces #666, #888, #999 */
    --color-bg-card: #ffffff;     /* Pure white for cards */
    --color-bg-offwhite: #f8f9fa; /* Replaces #f0f0f0, #e9e9e9, #eee */
    --color-border: #dee2e6;      /* Replaces #ddd, #dcdcdc */
    --color-white: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    /* Alternating turf grass stripes using CSS variables */
    background: repeating-linear-gradient(
        0deg,
        var(--color-turf-dark),
        var(--color-turf-dark) 60px,
        var(--color-turf-light) 60px,
        var(--color-turf-light) 120px
    );
    background-attachment: fixed;
    color: var(--color-text-main);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Ensure header text and labels remain easy to read on turf green */
header h1, header p, header div {
    color: var(--color-white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.odds-summary {
    background: var(--color-bg-offwhite);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9em;
    color: var(--color-text-muted);
}

.odds-item {
    font-weight: 600;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.picks-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Spread Picks Styling */
.matchup {
    background: var(--color-bg-card);
    padding: 10px; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.team-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.team-with-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; 
    padding: 6px 10px; 
    border: 2px solid var(--color-border);
    border-radius: 5px;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 35px; 
    height: 35px; 
    object-fit: contain;
}

.team-label {
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1.2;
}

.vs-text {
    font-weight: bold;
    color: var(--color-text-muted);
    margin: 0 10px;
}

/* Hide the default radio button */
input[type="radio"] {
    display: none;
}

/* Checked Spread Pick */
input[type="radio"]:checked + .team-with-logo {
    background-color: var(--color-football-brown);
    color: var(--color-white);
    border-color: var(--color-football-brown);
}

input[type="radio"]:checked + .team-with-logo .team-label {
    color: var(--color-white);
}

/* Over/Under Picks Styling */
.ou-picks {
    display: flex;
    gap: 10px;
    background: var(--color-bg-card);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure the outer label container distributes evenly */
.ou-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

/* Base styling for the unclicked O/U button */
.ou-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 6px 10px; 
    border: 2px solid var(--color-border);
    border-radius: 5px;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

/* Golden yellow highlight specifically for Over/Under picks */
.ou-option input[type="radio"]:checked + .ou-label {
    background-color: var(--color-ou-gold);
    border-color: var(--color-ou-gold-dark);
    color: var(--color-text-main); 
}

/* Pylon Orange Buttons */
button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: var(--color-pylon-orange); 
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: var(--color-pylon-orange-hover); 
}

@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .matchup {
        flex-direction: column;
        gap: 10px;
    }
    
    .vs-text {
        margin: 5px 0;
    }
}

/* Tab Navigation */
.site-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    border-bottom: 2px solid var(--color-border);
    padding: 0 10px;
}

.tab {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: bold;
    background-color: var(--color-bg-offwhite);
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.2s, color 0.2s;
}

.tab:hover {
    background-color: var(--color-border);
    color: var(--color-text-main);
}

/* Active Tab */
.tab.active {
    background-color: var(--color-bg-card);
    color: var(--color-football-brown); 
    border-color: var(--color-border);
    border-bottom: 2px solid var(--color-bg-card);
    margin-bottom: -2px; 
}

/* Compact Layout & Spread Badges */
.game-card {
    background: var(--color-bg-card);
    padding: 10px; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 12px; 
}

.game-header {
    text-align: left;
    font-size: 0.9em;
    color: var(--color-text-muted);
    font-weight: bold;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 15px;
}

.spread-badge {
    display: inline-block;
    background: var(--color-bg-offwhite);
    color: var(--color-text-main);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-top: 5px;
}

input[type="radio"]:checked + .team-with-logo .spread-badge {
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.home-marker {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 10px;
}

/* Desktop Auth Container (Floating Top Right) */
#auth-container {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 220px;
    background: var(--color-bg-card);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Mobile Auth Container (Centered & Stacked) */
@media (max-width: 768px) {
    #auth-container {
        position: static; 
        width: 100%; 
        margin: 0 0 20px 0; 
        box-sizing: border-box;
        box-shadow: none; 
        border: 1px solid var(--color-border);
    }
}