/* ==========================================================================
   1. GLOBAL HEADER, NAVIGATION & SITE CLEANUP
   ========================================================================== */
/* Header Background & Compact Padding */
.site-header, 
.site-header-header, 
#masthead, 
.header-wrapper,
.header-main {
    background-color: #ffffff !important;
    padding-top: 5px !important;    
    padding-bottom: 5px !important; 
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Centering Navigation Menu Links */
.main-navigation,
.nav-menu,
#site-navigation {
    text-align: center !important;
    float: none !important;
    display: block !important;
}

.main-navigation ul,
.nav-menu ul {
    display: inline-block !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* White & Bold Navigation Text */
.main-navigation ul li a, 
.nav-menu li a,
#site-navigation a {
    color: #ffffff !important;            
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Hard-deletes "Home 2" page title elements from the homepage content layout */
.home .entry-title, 
.home .page-title,
.home .entry-header,
.home h1.page-title,
.home .post-title {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}


/* ==========================================================================
   2. HOME PAGE MEDIA OPTIMIZATION (VIDEO SMOOTHING)
   ========================================================================== */
/* Ensures the vertical video scales fully inside its column half */
.home .wp-block-video, 
.home .video-block,
.home video,
.home iframe {
    width: 100% !important;
    max-width: 100% !important; 
    height: auto !important;
    display: block !important;
    border-radius: 8px !important; 
}


/* ==========================================================================
   3. TOURNAMENT DASHBOARD PAGES BACKGROUND & HEADER REMOVAL
   ========================================================================== */
/* Force full dark mode across all layout pages, containers, and templates */
.page-id-711, .page-id-711 body, .page-id-711 #content, .page-id-711 .site-content,
.page-id-693, .page-id-693 body, .page-id-693 #content, .page-id-693 .site-content,
.page-template-default, .page-template-default body, .type-page, #primary {
    background-color: #000000 !important;
}

/* Aggressively target and destroy the white page header bar container text globally */
.entry-header, 
.page-header, 
.page-title-bar, 
h1.entry-title, 
h1.page-title, 
.entry-title,
.title-bar {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

/* Keep internal block column titles pure white */
.widget-title, h2, h3, .sp-table-caption {
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
}


/* ==========================================================================
   4. SPORTSPRESS UNIVERSAL DATA TABLES (Schedules & Standings Widgets)
   ========================================================================== */
/* Table Column Group Headers (Date, Home, Time, Away, W, L, PCT) */
.sportspress .sp-event-list th, 
.sportspress .sp-data-table thead th {
    background-color: #0b2265 !important; /* Premium deep tournament blue */
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    padding: 14px 10px !important;
    border: none !important;
    text-align: center !important;
}

/* Table Match Content Rows */
.sportspress .sp-event-list td, 
.sportspress .sp-data-table tbody td {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: 1px solid #e0e0e0 !important;
    padding: 14px 10px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Highlight text formatting for Group/Bracket designations */
.sportspress .sp-event-list .sp-post-league {
    color: #0b2265 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
}

/* Center Highlight Column Accents (The VS block or Results box) */
.sportspress .sp-event-list .sp-post-vs,
.sportspress .sp-event-list .sp-post-time {
    background-color: #f8f9fa !important;
    font-weight: bold !important;
    color: #ff0000 !important; /* High-contrast red accent for vs block */
}

/* Format SportsPress generic layout caption headers to clean white */
.sportspress .sp-table-caption, 
.sportspress h4.sp-table-caption {
    color: #ffffff !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 1.3rem !important;
    padding-bottom: 12px !important;
}


/* ==========================================================================
   5. INDIVIDUAL GAME DETAILS TARGET PAGES (SINGLE MATCH VIEW)
   ========================================================================== */
/* Complete blackout space container for individual match target links */
.single-event, 
.single-event body, 
.single-event #content, 
.single-event .site-content {
    background-color: #000000 !important;
}

/* Clean formatting for main dynamic game titles (TBA - 1 VS TBA - 2) */
.single-event h1, 
.single-event .entry-title, 
.single-event .sp-main-title {
    color: #ffffff !important;
    text-align: center !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding-top: 20px !important;
    font-size: 2.2rem !important;
}

/* Style the Match Info Details Table Rows */
.single-event .sportspress .sp-data-table td {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border: 1px solid #e0e0e0 !important;
    padding: 14px !important;
    text-align: center !important;
}

/* Design the Single Match Details Table Header Bar */
.single-event .sportspress .sp-data-table thead th {
    background-color: #0b2265 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    padding: 14px !important;
    text-align: center !important;
}

/* Fix single event caption container text */
.single-event .sp-table-caption {
    color: #ffffff !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 1.2rem !important;
    padding-bottom: 8px !important;
}