/**
 * YES Network Team Schedule Styles
 * Clean table layout without tabs
 */

.yn-team-schedule-wrapper {
    --team-primary: #0c2340;
    --team-secondary: #FFFFFF;
    width: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

/* Header */
.yn-team-schedule-header {
    background: #0c2340;
    padding: 20px 24px;
    border-bottom: none;
}

.yn-team-name {
    color: var(--team-secondary);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Schedule Table */
.yn-team-schedule-table {
    width: 100%;
    background: #fff;
}

/* Header Row */
.yn-schedule-header-row {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 14px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

/* Table Rows */
.yn-schedule-row {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.yn-schedule-row:hover {
    background-color: #f8f9fa;
}

.yn-schedule-row:last-child {
    border-bottom: none;
}

/* Column Widths */
.yn-col-date {
    flex: 0 0 140px;
    padding: 0 16px 0 24px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yn-col-time {
    flex: 0 0 100px;
    padding: 0 16px;
    font-size: 15px;
    color: #34495e;
    font-weight: 500;
}

.yn-col-opponent {
    flex: 1;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.yn-col-venue {
    flex: 0 0 180px;
    padding: 0 16px;
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yn-col-broadcast {
    flex: 0 0 100px;
    padding: 0 24px 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--team-primary);
    text-align: right;
}

/* Header row column styles */
.yn-schedule-header-row .yn-col-date,
.yn-schedule-header-row .yn-col-time,
.yn-schedule-header-row .yn-col-opponent,
.yn-schedule-header-row .yn-col-venue,
.yn-schedule-header-row .yn-col-broadcast {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
}

/* Home/Away Indicator */
.yn-home-away {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #868e96;
    margin-right: 8px;
    min-width: 20px;
}

/* Today Badge */
.yn-today-badge {
    display: inline-block;
    background: #0c2340;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Today's Game Row */
.yn-game-today {
    background: #f0f4f8;
    border-left: 4px solid #0c2340;
    padding-left: 20px;
}

.yn-game-today:hover {
    background: #e8eef4;
}

/* Past Game Row */
.yn-game-past {
    opacity: 0.7;
    background: #fafafa;
}

.yn-game-past .yn-col-date,
.yn-game-past .yn-col-opponent {
    color: #868e96;
}

/* Game Score */
.yn-game-score {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
}

/* TBD Label */
.yn-tbd {
    color: #adb5bd;
    font-style: italic;
    font-weight: 400;
}

/* Empty State */
.yn-schedule-empty {
    padding: 60px 24px;
    text-align: center;
    background: #f8f9fa;
}

.yn-schedule-empty p {
    color: #6c757d;
    font-size: 16px;
    margin: 8px 0;
}

.yn-schedule-empty p:first-child {
    font-weight: 600;
    color: #495057;
    font-size: 18px;
}

/* Error State */
.yn-team-schedule-error {
    padding: 20px 24px;
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
    font-size: 14px;
}

/* Responsive - Tablet */
@media screen and (max-width: 1024px) {
    .yn-col-date {
        flex: 0 0 120px;
        padding: 0 12px 0 20px;
    }

    .yn-col-time {
        flex: 0 0 90px;
        padding: 0 12px;
    }

    .yn-col-venue {
        flex: 0 0 140px;
    }

    .yn-col-broadcast {
        flex: 0 0 80px;
        padding: 0 20px 0 12px;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 768px) {
    .yn-team-schedule-wrapper {
        overflow-x: visible;
    }

    .yn-team-schedule-header {
        padding: 16px;
    }

    .yn-team-name {
        font-size: 18px;
    }

    .yn-schedule-header-row {
        display: none !important;
    }

    .yn-schedule-row {
        display: block !important;
        padding: 14px 16px;
        position: relative;
    }

    /* Mobile: Line 1 - Date and Time inline */
    .yn-col-date {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 8px;
        padding: 0 !important;
        font-size: 14px;
        flex: none;
        margin-bottom: 4px;
    }

    .yn-col-time {
        position: absolute;
        top: 14px;
        right: 16px;
        padding: 0 !important;
        font-size: 14px;
        font-weight: 600;
        flex: none;
    }

    /* Mobile: Line 2 - Opponent */
    .yn-col-opponent {
        display: block !important;
        padding: 6px 0 4px 0 !important;
        font-size: 17px;
        flex: none;
    }

    .yn-home-away {
        font-size: 13px;
        min-width: 22px;
        display: inline-block;
    }

    /* Mobile: Line 3 - Venue and TV inline */
    .yn-col-venue {
        display: inline !important;
        padding: 0 !important;
        font-size: 13px;
        white-space: normal;
        flex: none;
    }

    .yn-col-broadcast {
        display: inline !important;
        padding: 0 !important;
        padding-left: 8px !important;
        font-size: 13px;
        flex: none;
        text-align: left;
    }

    .yn-col-broadcast::before {
        content: "•";
        margin-right: 8px;
        color: #ccc;
    }

    /* Today row styling on mobile */
    .yn-game-today {
        border-left-width: 4px;
        background: #f0f4f8;
        padding-left: 12px;
    }

    .yn-game-today .yn-col-time {
        right: 16px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .yn-team-schedule-header {
        padding: 14px 12px;
    }

    .yn-team-name {
        font-size: 16px;
    }

    .yn-schedule-row {
        padding: 12px;
    }

    .yn-col-date {
        font-size: 13px;
    }

    .yn-col-time {
        font-size: 13px;
        top: 12px;
        right: 12px;
    }

    .yn-col-opponent {
        font-size: 16px;
    }

    .yn-col-venue,
    .yn-col-broadcast {
        font-size: 12px;
    }

    .yn-today-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .yn-game-today {
        padding-left: 8px;
    }

    .yn-game-today .yn-col-time {
        right: 12px;
    }

    .yn-game-score {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .yn-team-schedule-wrapper {
        border: 1px solid #ddd;
    }

    .yn-schedule-row:hover {
        background-color: transparent;
    }

    .yn-game-today {
        background: transparent !important;
    }
}

