:root {
    --tu-navy: #043865;
    --tu-gold: #ddb774;
    --tu-light-gold: #f4e8d8;
    --tu-dark-navy: #021a33;
    --white: #ffffff;
    --gray: #f8f9fa;
    --text-dark: #043865;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --success: #28a745;
    --warning: #ffc107;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: var(--tu-navy);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: var(--tu-gold);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--tu-gold);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.sidebar-item h3 {
    color: var(--tu-navy);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

/* QR Code Section */
.qr-placeholder {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.qr-placeholder img {
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.qr-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Activity Section */
.activity-content {
    text-align: center;
}

.activity-time {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--tu-gold);
    margin-bottom: 0.5rem;
}

.activity-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tu-navy);
    margin-bottom: 0.5rem;
}

.activity-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Timer Section */
.timer {
    text-align: center;
    padding: 1rem;
}

.timer-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--tu-navy);
    font-family: 'Courier New', monospace;
}

/* Survey Section */
.survey-link {
    display: block;
    background: var(--tu-gold);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.3s;
}

.survey-link:hover {
    background: #c4a45f;
}

/* Content Area */
.content-area {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.content-window {
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
}

/* Time Slots */
.time-slot {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.time-slot.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.time-slot h1 {
    color: var(--tu-navy);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Schedule List */
.schedule-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.schedule-list li {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.schedule-list .time {
    font-weight: bold;
    color: var(--tu-gold);
    min-width: 80px;
}

/* Current Activity */
.current-activity {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 2rem;
    border: 2px solid var(--tu-gold);
    box-shadow: var(--shadow);
}

.current-activity h2 {
    color: var(--tu-navy);
    margin-bottom: 0.5rem;
}

/* Club Logos */
.club-logos {
    text-align: center;
    margin-bottom: 1.5rem;
}

.presenting {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.club-name {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--tu-navy);
}

/* Challenge Grid */
.challenge-grid, .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.challenge-type, .category {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--tu-navy);
    border: 1px solid var(--tu-gold);
    transition: background 0.3s ease;
}

.challenge-type:hover, .category:hover {
    background: var(--tu-light-gold);
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.activity-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--tu-gold);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.activity-card h3 {
    color: var(--tu-navy);
    margin-bottom: 0.5rem;
}

.activity-card p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.activity-card p strong {
    color: var(--tu-navy);
    font-weight: 600;
}


/* Highlights and CTAs */
.highlight {
    background: var(--tu-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin: 1rem 0;
}

.cta {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--tu-navy);
    text-align: center;
    margin: 1rem 0;
}

/* Info Boxes */
.challenge-info, .game-info, .jeopardy-info, .jackbox-info, .puzzle-info {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.challenge-info h3, .game-info h3, .jeopardy-info h3, 
.jackbox-info h3, .puzzle-info h3 {
    color: var(--tu-navy);
    margin-bottom: 1rem;
}

/* Lists */
.game-info ul, .puzzle-info ul, .jackbox-info ol {
    margin-left: 2rem;
    line-height: 1.8;
}

/* Prize List */
.prize-list {
    list-style: none;
    max-width: 500px;
    margin: 1rem auto;
}

.prize-list li {
    background: var(--tu-light-gold);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

/* QR Reminder */
.qr-reminder {
    background: linear-gradient(135deg, var(--tu-navy), var(--tu-dark-navy));
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.qr-reminder h3 {
    color: var(--tu-gold);
    margin-bottom: 0.5rem;
}

/* ========================================
   JEOPARDY GAME STYLES
   ======================================== */

/* Jeopardy Game Container */
.jeopardy-game-container {
    height: 100vh;
    overflow: hidden;
    padding: 1rem;
    background: linear-gradient(135deg, var(--tu-dark-navy), var(--tu-navy));
    color: white;
    display: flex;
    flex-direction: column;
}

/* Game Header */
.jeopardy-header {
    text-align: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.jeopardy-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--tu-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.jeopardy-subtitle {
    font-size: 1.1rem;
    color: white;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Game Board */
.jeopardy-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Ensure both categories and grid use identical layout */
.jeopardy-categories,
.jeopardy-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
}

/* Categories Row */
.jeopardy-categories {
    margin-bottom: 4px;
}

.category-cell {
    background: var(--tu-gold);
    color: var(--tu-navy);
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    line-height: 1.2;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Question Grid */
.jeopardy-grid {
    grid-template-rows: repeat(5, 1fr);
    flex: 1;
}

.question-cell {
    background: var(--tu-navy);
    color: var(--tu-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--tu-gold);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.question-cell:hover {
    background: #0a5c8f;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.question-cell.used {
    background: #2a2a2a;
    color: #666;
    cursor: not-allowed;
    border-color: #555;
}

.question-cell.used:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Game Controls */
.jeopardy-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.control-btn {
    background: var(--tu-gold);
    color: var(--tu-navy);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.control-btn:hover {
    background: #c4a45f;
    transform: translateY(-2px);
}

.game-info {
    color: white;
    font-size: 1rem;
}

/* Question Overlay */
.question-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.question-overlay.active {
    display: flex;
}

.question-content {
    background: var(--tu-navy);
    border: 4px solid var(--tu-gold);
    border-radius: 12px;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    color: white;
}

.question-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--tu-gold);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.question-text {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: white;
}

.question-answer {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--tu-gold);
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(221, 183, 116, 0.1);
    border-radius: 8px;
    border: 2px solid var(--tu-gold);
}

.overlay-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.overlay-btn {
    background: var(--tu-gold);
    color: var(--tu-navy);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    background: #c4a45f;
    transform: translateY(-2px);
}

/* Tab Bar */
.tab-bar {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--gray);
}

.tab-btn {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--tu-navy);
    background: var(--tu-light-gold);
}

.tab-btn.active {
    color: var(--tu-navy);
    border-bottom-color: var(--tu-gold);
    background: white;
}

.tab-panel {
    display: none;
}

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

/* Slop-etition Gallery */
.slop-gallery {
    padding: 2rem;
}

.batch-selector {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.batch-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--tu-gold);
    background: white;
    color: var(--tu-navy);
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.batch-btn:hover {
    background: var(--tu-light-gold);
}

.batch-btn.active {
    background: var(--tu-gold);
    color: var(--tu-navy);
}

.slop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.slop-entry {
    position: relative;
}

.slop-entry img {
    width: 100%;
    border-radius: var(--border-radius);
    border: 2px solid var(--tu-gold);
    box-shadow: var(--shadow);
    object-fit: contain;
    background: #f0f0f0;
}

.slop-entry.winner img {
    border: 4px solid #f4c430;
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.7);
}

.winner-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: #f4c430;
    color: var(--tu-navy);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 1;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .content-area {
        order: 1;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .sidebar-item {
        padding: 1rem;
    }

    .time-slot h1 {
        font-size: 1.5rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .challenge-grid, .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-list {
        font-size: 0.9rem;
    }

    .schedule-list .time {
        min-width: 70px;
    }

    /* Jeopardy Mobile Styles */
    .jeopardy-game-container {
        padding: 0.5rem;
    }

    .jeopardy-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .jeopardy-subtitle {
        font-size: 0.9rem;
    }

    .category-cell {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

    .question-cell {
        font-size: 1rem;
    }

    .question-content {
        padding: 2rem;
        width: 95%;
    }

    .question-value {
        font-size: 2rem;
    }

    .question-text {
        font-size: 1.3rem;
    }

    .question-answer {
        font-size: 1.2rem;
    }

    .overlay-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .jeopardy-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}