/**
 * Sports Wire Schedule Display - CSS
 * Professional, clean, responsive schedule layout
 */

/* ===================================
   SCHEDULE CONTAINER
   =================================== */
.sports-wire-schedule {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===================================
   FILTERS
   =================================== */
.schedule-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.schedule-filter {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.schedule-filter:hover,
.schedule-filter:focus {
    border-color: #0056b3;
    outline: none;
}

.reset-filters,
.export-calendar {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.reset-filters {
    background: #6c757d;
    color: white;
}

.reset-filters:hover {
    background: #5a6268;
}

.export-calendar {
    background: #28a745;
    color: white;
    margin-left: auto;
}

.export-calendar:hover {
    background: #218838;
    color: white;
}

/* ===================================
   SCHEDULE HEADER
   =================================== */
.schedule-header {
    margin-bottom: 30px;
}

.schedule-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #212529;
}

.schedule-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    color: white;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.summary-stats .stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

/* ===================================
   GAME CARDS
   =================================== */
.schedule-games {
    display: grid;
    gap: 15px;
}

.game-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.2s;
    position: relative;
}

.game-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Game card status indicators */
.game-card.game-today {
    border-left: 4px solid #ffc107;
}

.game-card.status-final.result-win {
    border-left: 4px solid #28a745;
}

.game-card.status-final.result-loss {
    border-left: 4px solid #dc3545;
}

.game-card.status-in_progress {
    border-left: 4px solid #ff0000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===================================
   GAME DATE
   =================================== */
.game-date {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.date-month {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.date-day {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    margin: 5px 0;
}

.date-weekday {
    font-size: 11px;
    text-transform: uppercase;
    color: #868e96;
    font-weight: 600;
}

/* ===================================
   GAME DETAILS
   =================================== */
.game-details {
    flex: 1;
}

.game-matchup {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.matchup-indicator {
    color: #6c757d;
    margin-right: 8px;
    font-weight: 400;
}

.opponent-name {
    color: #212529;
}

.game-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
}

.game-time {
    font-weight: 600;
    color: #495057;
}

.game-tv,
.game-venue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===================================
   GAME STATUS SECTION
   =================================== */
.game-status-section {
    text-align: right;
    min-width: 120px;
}

.game-score {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
}

.score-home {
    color: #212529;
}

.score-away {
    color: #6c757d;
}

.game-result {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.game-result.result-win {
    background: #28a745;
}

.game-result.result-loss {
    background: #dc3545;
}

.live-indicator {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.today-badge {
    display: inline-block;
    background: #ffc107;
    color: #212529;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.countdown {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
}

/* ===================================
   GAME LINKS
   =================================== */
.game-links {
    grid-column: 1 / -1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
}

.article-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.recap-link {
    background: #007bff;
    color: white;
}

.recap-link:hover {
    background: #0056b3;
    color: white;
}

.preview-link {
    background: #6c757d;
    color: white;
}

.preview-link:hover {
    background: #5a6268;
    color: white;
}

/* ===================================
   LOADING STATE
   =================================== */
.schedule-loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .sports-wire-schedule {
        padding: 15px;
    }
    
    .schedule-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .schedule-filter,
    .reset-filters,
    .export-calendar {
        width: 100%;
    }
    
    .export-calendar {
        margin-left: 0;
    }
    
    .schedule-header h2 {
        font-size: 24px;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-card {
        grid-template-columns: 60px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .game-date {
        padding: 8px;
    }
    
    .date-day {
        font-size: 24px;
    }
    
    .game-status-section {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #dee2e6;
    }
    
    .game-matchup {
        font-size: 18px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .game-links {
        flex-direction: column;
    }
    
    .article-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .schedule-header h2 {
        font-size: 20px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        grid-template-columns: 50px 1fr;
    }
    
    .date-month {
        font-size: 10px;
    }
    
    .date-day {
        font-size: 20px;
    }
    
    .date-weekday {
        font-size: 9px;
    }
    
    .game-matchup {
        font-size: 16px;
    }
    
    .game-info {
        font-size: 12px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .schedule-filters,
    .export-calendar,
    .game-links {
        display: none;
    }
    
    .game-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


/* Game Article Links Styling
   Add to: /wp-content/plugins/sports-wire/assets/css/schedule.css
   These styles display article links on each game card
*/

/* Article Links Container */
.game-articles-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    line-height: 1.6;
}

/* Articles Icon */
.articles-icon {
    font-size: 14px;
    margin-right: 6px;
    opacity: 0.7;
}

/* Individual Article Links */
.game-article-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.game-article-link:hover {
    color: #764ba2;
    background: #f8f9fa;
    text-decoration: underline;
}

/* Separator Between Links */
.article-sep {
    margin: 0 8px;
    color: #ccc;
    font-weight: 300;
}

/* Mobile Styling */
@media (max-width: 768px) {
    .game-articles-line {
        font-size: 12px;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .game-article-link {
        padding: 4px 6px;
        display: inline-block;
    }
    
    .article-sep {
        margin: 0 6px;
    }
}

/* Enhanced Hover Effect for Game Cards with Articles */
.game-card:has(.game-articles-line) {
    border-left: 3px solid #667eea;
}

.game-card:has(.game-articles-line):hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Special Styling for Completed Games with Articles */
.game-card.status-final .game-articles-line {
    background: #f8f9fa;
    padding: 8px 12px;
    margin: 12px -12px -8px -12px;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

/* Article Type Colors (Optional - can customize per type) */
.game-article-link[title*="Preview"] {
    color: #3498db;
}

.game-article-link[title*="Injury"] {
    color: #e74c3c;
}

.game-article-link[title*="Recap"] {
    color: #27ae60;
}

.game-article-link[title*="Analysis"] {
    color: #9b59b6;
}

/* Loading State (for when articles are being added) */
.game-articles-line.loading {
    opacity: 0.5;
    pointer-events: none;
}

.game-articles-line.loading::after {
    content: "Loading...";
    margin-left: 8px;
    font-style: italic;
    color: #999;
}

/* ============================================
   SCHEDULE PAGE STYLING FIXES
   Add to: /wp-content/plugins/sports-wire/assets/css/schedule.css
   ============================================ */

/* FIX #1: Constrain navigation bar to match content width (860px) */
.sports-wire-schedule-page .sports-wire-nav {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.sports-wire-schedule-page .sports-wire-nav-inner {
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Also constrain header elements to 860px */
.sports-wire-schedule-page .sports-wire-breadcrumb,
.sports-wire-schedule-page .sports-wire-header,
.sports-wire-schedule-page .sports-wire-top-disclosure {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* FIX #2: Use team colors for schedule summary bar */
.schedule-summary {
    background: linear-gradient(135deg, 
        var(--team-primary-color, #AA0000) 0%, 
        var(--team-primary-color, #AA0000) 100%) !important;
    border-left: 5px solid var(--team-secondary-color, #B3995D) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.schedule-summary .summary-section {
    color: white !important;
}

.schedule-summary .summary-label {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}

.schedule-summary .summary-value {
    color: white !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* FIX #3: Use team colors for date boxes */
.game-date-box {
    background: linear-gradient(135deg,
        var(--team-secondary-color, #B3995D) 0%,
        var(--team-secondary-color, #B3995D) 100%) !important;
    color: var(--team-primary-color, #AA0000) !important;
    border: 2px solid var(--team-primary-color, #AA0000) !important;
    font-weight: 700 !important;
}

.game-date-box .date-month {
    color: var(--team-primary-color, #AA0000) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
}

.game-date-box .date-day {
    color: var(--team-primary-color, #AA0000) !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    line-height: 1 !important;
}

.game-date-box .date-dow {
    color: var(--team-primary-color, #AA0000) !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Additional refinements for game cards */
.game-card {
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease !important;
}

.game-card:hover {
    border-left-color: var(--team-secondary-color, #B3995D) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.game-card.status-final.win {
    background: linear-gradient(to right, 
        rgba(var(--team-primary-rgb, 170, 0, 0), 0.05) 0%,
        white 100%) !important;
}

.game-card.status-final.loss {
    background: linear-gradient(to right, 
        rgba(100, 100, 100, 0.03) 0%,
        white 100%) !important;
}

/* Win/Loss badges */
.game-result.win {
    background: var(--team-primary-color, #AA0000) !important;
    color: white !important;
}

.game-result.loss {
    background: #6c757d !important;
    color: white !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sports-wire-schedule-page .sports-wire-nav-inner,
    .sports-wire-schedule-page .sports-wire-breadcrumb,
    .sports-wire-schedule-page .sports-wire-header,
    .sports-wire-schedule-page .sports-wire-top-disclosure {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .schedule-summary .summary-value {
        font-size: 24px !important;
    }
    
    .game-date-box .date-day {
        font-size: 28px !important;
    }
}

/* ============================================
   COMPLETE SCHEDULE PAGE STYLING FIXES
   Add to: /wp-content/plugins/sports-wire/assets/css/schedule.css
   Version: 2.0 - Fixes navigation width + date box colors
   ============================================ */

/* ========== FIX #1: Navigation Bar Width ========== */

/* Constrain navigation bar to 860px on schedule pages */
.sports-wire-schedule-page .sports-wire-nav {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #ddd !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.sports-wire-schedule-page .sports-wire-nav-inner {
    display: flex !important;
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Constrain all header elements to 860px */
.sports-wire-schedule-page .sports-wire-breadcrumb,
.sports-wire-schedule-page .sports-wire-header,
.sports-wire-schedule-page .sports-wire-top-disclosure {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========== FIX #2: Date Box Styling with Team Colors ========== */

/* Date boxes get secondary color background */
.game-date-box {
    background: var(--team-secondary-color, #B3995D) !important;
    border: 2px solid var(--team-primary-color, #AA0000) !important;
    border-radius: 8px !important;
    padding: 12px 10px !important;
    text-align: center !important;
    min-width: 70px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* All text in date box uses primary color */
.game-date-box .date-month,
.game-date-box .date-day,
.game-date-box .date-dow {
    color: var(--team-primary-color, #AA0000) !important;
    font-weight: 700 !important;
}

.game-date-box .date-month {
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
    display: block !important;
}

.game-date-box .date-day {
    font-size: 36px !important;
    line-height: 1 !important;
    display: block !important;
    margin: 4px 0 !important;
    font-weight: 900 !important;
}

.game-date-box .date-dow {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-top: 2px !important;
}

/* ========== FIX #3: Summary Bar Styling ========== */

.schedule-summary {
    background: linear-gradient(135deg, 
        var(--team-primary-color, #AA0000) 0%, 
        var(--team-primary-color, #AA0000) 100%) !important;
    border-left: 5px solid var(--team-secondary-color, #B3995D) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    margin-bottom: 20px !important;
}

.schedule-summary .summary-section {
    color: white !important;
}

.schedule-summary .summary-label {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}

.schedule-summary .summary-value {
    color: white !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* ========== Game Card Enhancements ========== */

.game-card {
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease !important;
}

.game-card:hover {
    border-left-color: var(--team-secondary-color, #B3995D) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Win games get subtle team color tint */
.game-card.status-final.win {
    background: linear-gradient(to right, 
        rgba(var(--team-primary-rgb, 170, 0, 0), 0.05) 0%,
        white 100%) !important;
}

/* Loss games get subtle gray tint */
.game-card.status-final.loss {
    background: linear-gradient(to right, 
        rgba(100, 100, 100, 0.03) 0%,
        white 100%) !important;
}

/* Win/Loss badges */
.game-result.win {
    background: var(--team-primary-color, #AA0000) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
}

.game-result.loss {
    background: #6c757d !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
}

/* ========== Additional Game Card Styling ========== */

.game-opponent {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.game-time {
    color: #666 !important;
    font-size: 14px !important;
}

.game-venue {
    color: #999 !important;
    font-size: 13px !important;
}

/* ========== Mobile Responsive ========== */

@media (max-width: 768px) {
    /* Navigation on mobile */
    .sports-wire-schedule-page .sports-wire-nav-inner,
    .sports-wire-schedule-page .sports-wire-breadcrumb,
    .sports-wire-schedule-page .sports-wire-header,
    .sports-wire-schedule-page .sports-wire-top-disclosure {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Smaller summary values on mobile */
    .schedule-summary .summary-value {
        font-size: 24px !important;
    }
    
    /* Smaller date boxes on mobile */
    .game-date-box {
        min-width: 60px !important;
        padding: 10px 8px !important;
    }
    
    .game-date-box .date-day {
        font-size: 28px !important;
    }
    
    .game-date-box .date-month,
    .game-date-box .date-dow {
        font-size: 10px !important;
    }
}

/* ========== Tablet Adjustments ========== */

@media (min-width: 769px) and (max-width: 1024px) {
    .schedule-summary .summary-value {
        font-size: 28px !important;
    }
    
    .game-date-box .date-day {
        font-size: 32px !important;
    }
}

/* ========== Filters Styling ========== */

.schedule-filters {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.filter-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.filter-group label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #333 !important;
}

.schedule-filter {
    padding: 6px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.reset-filters {
    padding: 6px 16px !important;
    background: var(--team-primary-color, #AA0000) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.reset-filters:hover {
    background: var(--team-secondary-color, #B3995D) !important;
    color: var(--team-primary-color, #AA0000) !important;
}

.export-calendar {
    padding: 6px 16px !important;
    background: #28a745 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.export-calendar:hover {
    background: #218838 !important;
}

/* ========== Print Styles ========== */

@media print {
    .schedule-filters,
    .sports-wire-nav,
    .export-calendar {
        display: none !important;
    }
    
    .game-card {
        break-inside: avoid !important;
    }
}

/* ============================================
   CRITICAL FIXES - Matches Actual HTML Classes
   Add AFTER line 1100 in schedule.css
   Replace everything from line 1100 to end
   ============================================ */

/* ========== NAVIGATION BAR WIDTH FIX ========== */

/* Force navigation to 860px - CRITICAL */
body.sports-wire-schedule-page .sports-wire-nav {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #ddd !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.sports-wire-schedule-page .sports-wire-nav-inner {
    display: flex !important;
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 860px !important;
}

body.sports-wire-schedule-page .sports-wire-nav a {
    padding: 12px 24px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 14px !important;
    transition: background 0.2s ease !important;
    white-space: nowrap !important;
    flex: 1 !important;
    text-align: center !important;
    border-right: 1px solid #ddd !important;
}

body.sports-wire-schedule-page .sports-wire-nav a:last-child {
    border-right: none !important;
}

/* Constrain header elements to 860px */
body.sports-wire-schedule-page .sports-wire-breadcrumb,
body.sports-wire-schedule-page .sports-wire-header,
body.sports-wire-schedule-page .sports-wire-top-disclosure {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========== DATE BOX STYLING - MATCHES .game-date CLASS ========== */

/* Override existing .game-date styles with team colors */
.game-card .game-date {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid var(--team-secondary-color, #B3995D) !important;
    border-radius: 6px !important;
    padding: 12px 10px !important;
    text-align: center !important;
    min-width: 80px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

/* Hover effect on date boxes */
.game-card:hover .game-date {
    border-left-width: 6px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12) !important;
    transform: translateY(-1px) !important;
}

/* Date month text - matches .date-month */
.game-card .game-date .date-month {
    color: #6c757d !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
    display: block !important;
    font-weight: 700 !important;
}

/* Date day number - matches .date-day */
.game-card .game-date .date-day {
    color: #212529 !important;
    font-size: 36px !important;
    line-height: 1 !important;
    display: block !important;
    margin: 5px 0 !important;
    font-weight: 900 !important;
}

/* Date weekday - matches .date-weekday */
.game-card .game-date .date-weekday {
    color: #6c757d !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-top: 0 !important;
    font-weight: 700 !important;
}

/* ========== SUMMARY BAR - TEAM COLORS ========== */

.schedule-summary {
    background: linear-gradient(135deg, 
        var(--team-primary-color, #AA0000) 0%, 
        var(--team-primary-color, #AA0000) 100%) !important;
    border-left: 5px solid var(--team-secondary-color, #B3995D) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    margin-bottom: 20px !important;
}

.schedule-summary .stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}

.schedule-summary .stat-value {
    color: white !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* ========== GAME CARD HOVER EFFECTS ========== */

.game-card {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-left: 3px solid transparent !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

.game-card:hover {
    border-left-color: var(--team-secondary-color, #B3995D) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}

/* Win games get subtle team color tint */
.game-card.status-final.result-win {
    background: linear-gradient(to right, 
        rgba(var(--team-primary-rgb, 170, 0, 0), 0.04) 0%,
        white 100%) !important;
}

/* ========== WIN/LOSS BADGES ========== */

.game-result.result-win {
    background: var(--team-primary-color, #AA0000) !important;
    color: white !important;
    font-weight: 700 !important;
}

.game-result.result-loss {
    background: #6c757d !important;
    color: white !important;
    font-weight: 700 !important;
}

/* ========== FILTERS STYLING ========== */

.schedule-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    padding: 16px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e9ecef !important;
}

.reset-filters {
    padding: 8px 18px !important;
    background: var(--team-primary-color, #AA0000) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.reset-filters:hover {
    background: var(--team-secondary-color, #B3995D) !important;
    color: var(--team-primary-color, #AA0000) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.schedule-filter:hover {
    border-color: var(--team-secondary-color, #B3995D) !important;
}

.schedule-filter:focus {
    outline: none !important;
    border-color: var(--team-primary-color, #AA0000) !important;
    box-shadow: 0 0 0 3px rgba(var(--team-primary-rgb, 170, 0, 0), 0.1) !important;
}

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

@media (max-width: 768px) {
    /* Navigation on mobile */
    body.sports-wire-schedule-page .sports-wire-nav-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    body.sports-wire-schedule-page .sports-wire-nav a {
        font-size: 11px !important;
        padding: 10px 6px !important;
    }
    
    /* Hide team name on mobile nav */
    body.sports-wire-schedule-page .sports-wire-nav .team-name {
        display: none !important;
    }
    
    /* Header elements on mobile */
    body.sports-wire-schedule-page .sports-wire-breadcrumb,
    body.sports-wire-schedule-page .sports-wire-header,
    body.sports-wire-schedule-page .sports-wire-top-disclosure {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Smaller date boxes on mobile */
    .game-card .game-date {
        min-width: 60px !important;
        padding: 10px 8px !important;
        border-left-width: 3px !important;
    }
    
    .game-card .game-date .date-day {
        font-size: 28px !important;
    }
    
    .game-card .game-date .date-month,
    .game-card .game-date .date-weekday {
        font-size: 10px !important;
    }
    
    /* Smaller summary on mobile */
    .schedule-summary .stat-value {
        font-size: 24px !important;
    }
    
    .schedule-summary {
        padding: 16px !important;
    }
}

/* ========== TABLET ADJUSTMENTS ========== */

@media (min-width: 769px) and (max-width: 1024px) {
    body.sports-wire-schedule-page .sports-wire-nav-inner {
        width: 860px !important;
    }
    
    .schedule-summary .stat-value {
        font-size: 28px !important;
    }
    
    .game-card .game-date .date-day {
        font-size: 32px !important;
    }
}
/* ============================================
   SIMPLE ACTIONS BAR (for NFL/WNBA)
   Shows only calendar button for short-season sports
   ============================================ */

.schedule-simple-actions {
    text-align: center !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.schedule-simple-actions .export-calendar {
    padding: 12px 28px !important;
    background: #28a745 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.schedule-simple-actions .export-calendar:hover {
    background: #218838 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .schedule-simple-actions {
        padding: 12px 15px !important;
    }
    
    .schedule-simple-actions .export-calendar {
        font-size: 14px !important;
        padding: 10px 22px !important;
    }
}

/* ============================================
   CRITICAL FIXES - Add to END of schedule.css
   Or replace lines 189-217 with this
   ============================================ */

/* ========== DATE BOX - COMPLETE STYLING ========== */

/* Base date box styling - WITH border */
.game-date {
    text-align: center !important;
    padding: 12px 10px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 6px !important;
    /* Complete border with gold left accent */
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid var(--team-secondary-color, #B3995D) !important;
    min-width: 80px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

/* More specific selector for game cards */
.game-card .game-date {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid var(--team-secondary-color, #B3995D) !important;
    border-radius: 6px !important;
    padding: 12px 10px !important;
    text-align: center !important;
    min-width: 80px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

/* Hover effect - thicken gold border */
.game-card:hover .game-date,
.game-date:hover {
    border-left-width: 6px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12) !important;
    transform: translateY(-1px) !important;
}

/* Date text elements */
.date-month,
.game-date .date-month,
.game-card .game-date .date-month {
    font-size: 11px !important;
    text-transform: uppercase !important;
    color: #6c757d !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 2px !important;
    display: block !important;
}

.date-day,
.game-date .date-day,
.game-card .game-date .date-day {
    font-size: 36px !important;
    font-weight: 900 !important;
    color: #212529 !important;
    line-height: 1 !important;
    margin: 5px 0 !important;
    display: block !important;
}

.date-weekday,
.game-date .date-weekday,
.game-card .game-date .date-weekday {
    font-size: 11px !important;
    text-transform: uppercase !important;
    color: #6c757d !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    margin-top: 2px !important;
    display: block !important;
}

/* ========== NAVIGATION WIDTH - NUCLEAR OPTION ========== */

/* Force navigation to 860px with highest specificity */
html body.sports-wire-schedule-page .sports-wire-nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f5f5 !important;
    border-bottom: 1px solid #ddd !important;
}

html body.sports-wire-schedule-page .sports-wire-nav-inner {
    display: flex !important;
    max-width: 860px !important;
    width: 860px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body.sports-wire-schedule-page .sports-wire-nav a {
    flex: 1 !important;
    text-align: center !important;
    padding: 12px 24px !important;
    border-right: 1px solid #ddd !important;
}

html body.sports-wire-schedule-page .sports-wire-nav a:last-child {
    border-right: none !important;
}

/* Mobile override */
@media (max-width: 768px) {
    html body.sports-wire-schedule-page .sports-wire-nav-inner {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    html body.sports-wire-schedule-page .sports-wire-nav a {
        padding: 10px 8px !important;
        font-size: 11px !important;
    }
}

/* Desktop enforcement */
@media (min-width: 769px) {
    html body.sports-wire-schedule-page .sports-wire-nav-inner {
        width: 860px !important;
        max-width: 860px !important;
    }
}

/* ============================================
   ULTRA-AGGRESSIVE FIXES
   Add to VERY END of schedule.css
   Uses maximum specificity to override everything
   ============================================ */

/* ========== DATE BOX COMPLETE BORDER - MAXIMUM SPECIFICITY ========== */

/* Target every possible selector variation */
html body.sports-wire-schedule-page .sports-wire-schedule .schedule-games .game-card .game-date,
body.sports-wire-schedule-page .sports-wire-schedule .schedule-games .game-card .game-date,
.sports-wire-schedule-page .sports-wire-schedule .game-card .game-date,
.sports-wire-schedule .game-card .game-date,
.game-card .game-date,
.game-date {
    /* Complete border with gold left side */
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid #B3995D !important;  /* Gold for 49ers */
    border-left-color: var(--team-secondary-color, #B3995D) !important;
    
    /* Styling */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 6px !important;
    padding: 12px 10px !important;
    text-align: center !important;
    min-width: 80px !important;
    
    /* Shadow and transition */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

/* Hover effect - thicken the gold border */
html body.sports-wire-schedule-page .game-card:hover .game-date,
body.sports-wire-schedule-page .game-card:hover .game-date,
.game-card:hover .game-date,
.game-date:hover {
    border-left-width: 6px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12) !important;
    transform: translateY(-1px) !important;
}

/* ========== NAVIGATION WIDTH - ULTRA SPECIFIC ========== */

/* Target navigation container */
html body.sports-wire-schedule-page nav.sports-wire-nav,
body.sports-wire-schedule-page nav.sports-wire-nav,
nav.sports-wire-nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f5f5 !important;
    border-bottom: 1px solid #ddd !important;
    display: block !important;
}

/* Target navigation inner container - THIS IS KEY */
html body.sports-wire-schedule-page nav.sports-wire-nav div.sports-wire-nav-inner,
body.sports-wire-schedule-page nav.sports-wire-nav div.sports-wire-nav-inner,
nav.sports-wire-nav div.sports-wire-nav-inner,
.sports-wire-nav .sports-wire-nav-inner,
.sports-wire-nav-inner {
    display: flex !important;
    max-width: 860px !important;
    width: 860px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
}

/* Navigation links */
html body.sports-wire-schedule-page nav.sports-wire-nav a,
body.sports-wire-schedule-page nav.sports-wire-nav a,
nav.sports-wire-nav a,
.sports-wire-nav a {
    flex: 1 1 auto !important;
    text-align: center !important;
    padding: 12px 24px !important;
    border-right: 1px solid #ddd !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body.sports-wire-schedule-page nav.sports-wire-nav a:last-child,
body.sports-wire-schedule-page nav.sports-wire-nav a:last-child,
nav.sports-wire-nav a:last-child,
.sports-wire-nav a:last-child {
    border-right: none !important;
}

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

@media (max-width: 768px) {
    html body.sports-wire-schedule-page .sports-wire-nav-inner,
    body.sports-wire-schedule-page .sports-wire-nav-inner,
    .sports-wire-nav-inner {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    html body.sports-wire-schedule-page .sports-wire-nav a,
    body.sports-wire-schedule-page .sports-wire-nav a,
    .sports-wire-nav a {
        padding: 10px 8px !important;
        font-size: 11px !important;
    }
    
    .sports-wire-nav .team-name {
        display: none !important;
    }
    
    /* Date boxes smaller on mobile */
    .game-card .game-date,
    .game-date {
        min-width: 60px !important;
        padding: 10px 8px !important;
        border-left-width: 3px !important;
    }
}

/* ========== DESKTOP ENFORCEMENT ========== */

@media (min-width: 769px) {
    html body.sports-wire-schedule-page .sports-wire-nav-inner,
    body.sports-wire-schedule-page .sports-wire-nav-inner,
    .sports-wire-nav-inner {
        width: 860px !important;
        max-width: 860px !important;
    }
}

/* ========== DEBUG MARKER (Remove after confirming it works) ========== */

body.sports-wire-schedule-page::after {
    content: "✅ CSS LOADED - Version 10:01 PM" !important;
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    background: #28a745 !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}