/* ===== Matches Page CSS ===== */

/* Hero Section */
.matches-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.matches-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.matches-hero h1 span {
    color: #fbbf24;
}

.matches-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Nav Tabs Modern */
.nav-tabs-modern {
    display: inline-flex;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    gap: 5px;
}

.nav-tabs-modern .nav-link {
    padding: 10px 24px;
    border-radius: 50px;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.nav-tabs-modern .nav-link:hover {
    color: #1e3a5f;
    background: #f1f5f9;
}

.nav-tabs-modern .nav-link.active {
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    color: #fff;
}

/* Date Picker Scroll */
.date-picker-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 70px;
}

.date-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    color: #1e3a5f;
}

.date-item.active {
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    color: #fff;
}

.date-item .day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.8;
}

.date-item .day-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.date-item .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Order Tabs */
.order-tabs {
    display: flex;
    gap: 8px;
}

.order-tab {
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.order-tab:hover {
    background: #f8fafc;
    color: #1e3a5f;
}

.order-tab.active {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
}

/* Date Header */
.date-header {
    background: linear-gradient(90deg, #f8fafc 0%, #fff 100%);
    padding: 12px 20px;
    border-radius: 10px;
    margin: 20px 0 15px;
    font-weight: 600;
    color: #1e3a5f;
    border-left: 4px solid #3b82f6;
}

/* Match Card */
.match-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.match-date {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.match-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-badge.league {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a5f;
}

.match-badge.status-played {
    background: #10b981;
    color: #fff;
}

.match-badge.status-pending {
    background: #6366f1;
    color: #fff;
}

.match-badge.status-cancelled {
    background: #ef4444;
    color: #fff;
}

.match-card-body {
    padding: 24px 16px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.match-team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    padding: 5px;
    background: #f8fafc;
    margin-bottom: 10px;
}

.match-team-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.3;
}

.match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.vs-text {
    font-weight: 700;
    font-size: 1rem;
    color: #94a3b8;
}

.match-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
}

.match-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.match-card-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

.empty-state p {
    color: #64748b;
}

/* Pagination Modern */
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-modern .page-item {
    display: inline-flex;
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    color: #fff;
    border-color: transparent;
}

.pagination-modern .page-link {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
}

.pagination-modern .page-link:hover {
    background: #f1f5f9;
    color: #1e3a5f;
}

/* Responsive */
@media (max-width: 768px) {
    .matches-hero h1 {
        font-size: 1.8rem;
    }
    
    .nav-tabs-modern {
        flex-wrap: wrap;
        border-radius: 16px;
    }
    
    .match-team img {
        width: 45px;
        height: 45px;
    }
    
    .match-team-name {
        font-size: 0.8rem;
    }
    
    .order-tabs {
        flex-wrap: wrap;
    }
    
    .match-card-footer {
        flex-direction: column;
        gap: 8px;
    }
}
