/* ==========================================================================
   GRAV DELIVER THEME CUSTOMIZATIONS
   ========================================================================== */

/* === 1. HEADER BAR === */
/* This makes the header bar shorter (e.g., 80px) */
#header, #header .logo, #header #navbar {
    height: 80px !important; /* <-- SET YOUR COMPACT HEIGHT HERE */
}

/* === 2. HOMEPAGE BANNER === */
/* This makes the homepage banner image match the new header height */
.modular-row.showcase.flush-top {
    padding-bottom: 0 !important;
    height: 250px !important;       /* <-- MAKE THIS MATCH YOUR HEIGHT */
    min-height: 150px !important;  /* <-- MAKE THIS MATCH YOUR HEIGHT */
    background-position: 50% 25% !important; /* Your image position */
}

/* This makes the homepage header transparent */
body.header-image #header {
    background-color: transparent !important;
}

/* This moves the homepage content up to sit below the new header */
.header-image #body .flush-top {
    margin-top: -150px !important; /* <-- MAKE THIS MATCH YOUR HEIGHT */
    padding-top: 0 !important;
}

/* === 3. FIX FOR ALL OTHER PAGES (Portfolio, About, etc.) === */
/* This pushes the content (like the "PORTFOLIO" title) down 
   to sit below the new 80px menu bar. */
#body {
    padding-top: 150px !important; /* <-- MAKE THIS MATCH YOUR HEIGHT */
}


/* ==========================================================================
   COLLEGE FOOTBALL TIMELINE STYLES (MOVED FROM FRONTEND MARKDOWN)
   ========================================================================== */

/* --- BASE TIMELINE CONTAINER --- */
#cfb-schedule-container {
    margin-top: 20px;
}

.day-header {
    background-color: #004c3f; /* Deep Green */
    color: white;
    padding: 10px 15px;
    margin: 25px 0 10px 0;
    border-radius: 4px;
    font-size: 1.5em;
    font-family: Arial, sans-serif;
}

/* --- TIMELINE HEADER (TIME SLOTS) --- */
.timeline-header {
    display: flex;
    white-space: nowrap;
    overflow-x: hidden; /* Prevent time slots from scrolling */
    margin-top: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    color: #666;
    font-size: 0.8em;
    font-weight: bold;
    position: sticky; /* Make it stick to the top when scrolling down */
    top: 80px; /* Adjust this to sit right below your header bar height (80px) */
    background: #fff;
    z-index: 10;
}

.time-slot {
    /* CRITICAL: Must match game card width for alignment */
    width: 200px; 
    min-width: 200px;
    text-align: left;
    padding-left: 10px;
    /* Removed border-right to declutter, using border-bottom on header instead */
}

/* --- GAME CARD GRID CONTAINER --- */
.timeline-grid {
    display: flex; /* Keep all cards in one horizontal line */
    overflow-x: auto; /* Enable horizontal scrolling for the games */
    white-space: nowrap; /* Prevent game cards from wrapping */
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    box-shadow: inset 0 -4px 4px -4px rgba(0,0,0,0.1);
    /* Ensure the game scrolling aligns with the time header scrolling */
}

/* --- INDIVIDUAL GAME CARDS --- */
.game-card {
    display: inline-block;
    vertical-align: top;
    /* CRITICAL: Fixed width for consistent display */
    width: 200px; 
    min-width: 200px;
    height: 120px;
    margin: 10px 10px 0 0;
    padding: 10px;
    border: 1px solid #004c3f; 
    border-left: 5px solid #004c3f; 
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: normal; 
}

.game-card:hover {
    background-color: #e6f7ff; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.game-time {
    font-weight: bold;
    color: #cc0000; 
    font-size: 1.1em;
    margin-bottom: 5px;
}

.game-matchup {
    font-size: 0.9em;
    line-height: 1.3;
    margin-bottom: 5px;
}

.game-channel {
    font-size: 0.8em;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
}

/* Tooltip Styles */
.tooltip-box {
    display: none;
    position: absolute;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    pointer-events: none; 
    z-index: 1000;
    width: 180px;
}

.tooltip-box p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.tooltip-box strong {
    color: #ffd700; 
}

/* Loading spinner placeholder */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #004c3f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #d9534f;
    font-weight: bold;
}