/* ===== SCHEDULE PAGE STYLES ===== */

/* Day Header */
.schedule-day {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(30,50,90,.045);
}

.schedule-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--navy), #173a68);
    color: #fff;
}

.day-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.day-info i {
    font-size: 28px;
    opacity: .8;
}

.day-info h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.day-info small {
    opacity: .7;
    font-size: 13px;
}

.day-stats {
    display: flex;
    gap: 10px;
}

.day-stats .badge {
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
    border-radius: 20px;
    font-weight: 500;
}

/* Court Grid Layout */
.schedule-courts {
    padding: 20px 24px;
}

.courts-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .courts-grid-1 {
        grid-template-columns: 1fr;
    }

    .courts-grid-2,
    .courts-grid-3 {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
    }

    .courts-grid-2 .court-section,
    .courts-grid-3 .court-section {
        height: 100%;
    }
}

@media (max-width: 991.98px) {
    .courts-grid {
        grid-template-columns: 1fr;
    }
}

.court-section {
    margin-bottom: 24px;
}

.court-section:last-child {
    margin-bottom: 0;
}

.court-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f0f4fa;
    border-radius: 10px;
    margin-bottom: 12px;
}

.court-header i {
    font-size: 18px;
    color: var(--blue);
}

.court-header h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

.court-header .court-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* Match Cards in Court */
.court-matches {
    display: grid;
    gap: 8px;
}

.match-card-schedule {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    background: #fafbfd;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all .2s;
}

.match-card-schedule:hover {
    background: #f0f4fa;
    border-color: #c8d4e3;
}

.match-card-schedule .match-time {
    text-align: center;
    padding-right: 16px;
    border-right: 1px solid var(--line);
}

.match-card-schedule .match-time .time-range {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
}

.match-card-schedule .match-time .time-sep {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.match-card-schedule .match-info {
    min-width: 0;
}

.match-card-schedule .match-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.match-card-schedule .match-no {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: #e8edf4;
    padding: 2px 8px;
    border-radius: 4px;
}

.match-card-schedule .round-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.round-badge.round-preliminary { background: #e8f4fd; color: #0a6eb4; }
.round-badge.round-quarterfinal { background: #fef3e2; color: #b47c0a; }
.round-badge.round-semifinal { background: #f0e6ff; color: #6b3fa0; }
.round-badge.round-final { background: #fff3cd; color: #856404; }
.round-badge.round-third_place { background: #e8f8f2; color: #087755; }

.match-card-schedule .match-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.match-card-schedule .match-teams .vs {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.match-card-schedule .match-teams .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.match-card-schedule .match-meta-info {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.match-card-schedule .match-meta-info i {
    font-size: 13px;
}

.match-card-schedule .match-actions {
    display: flex;
    gap: 6px;
}

.match-card-schedule .match-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.match-card-schedule .status-badge {
    font-size: 10px;
    padding: 3px 8px;
}

.status-badge.status-scheduled { background: #e8f4fd; color: #0a6eb4; }
.status-badge.status-ongoing { background: #fef3e2; color: #b47c0a; }
.status-badge.status-completed { background: #e8f8f2; color: #087755; }
.status-badge.status-wo { background: #fff0f0; color: #b42318; }

/* Break Item */
.schedule-break {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #fffbeb;
    border: 1px dashed #f1d38a;
    border-radius: 12px;
}

.schedule-break i {
    font-size: 24px;
    color: #eaaa08;
}

.schedule-break .break-info strong {
    display: block;
    font-size: 14px;
    color: #856404;
}

.schedule-break .break-info small {
    font-size: 12px;
    color: #b8860b;
}

.schedule-break .break-time {
    display: inline-block;
    margin-left: auto;
    font-weight: 700;
    font-size: 14px;
    color: #856404;
    background: #fff3cd;
    padding: 4px 12px;
    border-radius: 20px;
}

.schedule-break-full {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff8e1;
    border: 1px dashed #f1d38a;
    border-radius: 12px;
    text-align: center;
}

.schedule-break-full i {
    font-size: 26px;
    color: #eaaa08;
}

.schedule-break-full .break-info strong {
    display: block;
    font-size: 14px;
    color: #856404;
}

.schedule-break-full .break-info small {
    font-size: 12px;
    color: #b8860b;
}

.schedule-break-full .break-time {
    font-weight: 700;
    font-size: 14px;
    color: #856404;
    background: #fff3cd;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Footer */
.schedule-footer-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--line);
}

.schedule-footer-modern .footer-item {
    text-align: center;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.schedule-footer-modern .footer-item i {
    font-size: 28px;
    margin-bottom: 8px;
}

.schedule-footer-modern .footer-item h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}

.schedule-footer-modern .footer-item small {
    font-size: 12px;
    color: var(--muted);
}

/* Filters */
.schedule-filters {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .match-card-schedule {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .match-card-schedule .match-time {
        text-align: left;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-right: 0;
        padding-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .match-card-schedule .match-time .time-sep {
        display: inline;
    }
    .match-card-schedule .match-actions {
        justify-content: flex-end;
    }
    .schedule-footer-modern {
        grid-template-columns: 1fr;
    }
    .schedule-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .schedule-courts {
        padding: 14px;
    }
}

@media (max-width: 700px) {
    .match-card-schedule .match-teams {
        font-size: 13px;
    }
    .match-card-schedule .match-teams .team-name {
        max-width: 120px;
    }
}