/**
 * matches-header-stats.css
 * Stats tabs inside header for matches page
 */

/* Matches Header Stats Container */
.matches-header-stats {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    height: 100%;
    gap: 8px;
    padding: 8px 0;
}

/* Stat Items inside header */
.matches-header-stats .stat-item {
    text-align: center;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #000000;
    border: 1px solid #000000;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    color: white;
}

.matches-header-stats .stat-item:hover {
    background: #333333;
    border-color: #444;
}

.matches-header-stats .stat-item.active {
    background: #111111;
    border: 1px solid #e700c7;
    box-shadow: 0 2px 8px rgba(231, 0, 199, 0.2);
}

.matches-header-stats .stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.matches-header-stats .stat-label {
    font-size: 0.65rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .matches-header-stats {
        gap: 6px;
        padding: 6px 0;
    }
    
    .matches-header-stats .stat-item {
        padding: 4px 2px;
    }
    
    .matches-header-stats .stat-number {
        font-size: 1rem;
        min-height: 20px;
    }
    
    .matches-header-stats .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }
}

@media (max-width: 360px) {
    .matches-header-stats {
        gap: 4px;
    }
    
    .matches-header-stats .stat-number {
        font-size: 0.9rem;
    }
    
    .matches-header-stats .stat-label {
        font-size: 0.55rem;
    }
}

/* Adjust top-nav-minimal height for matches page */
@media (max-width: 768px) {
    body.page-matches .top-nav-minimal.mobile-only-nav {
        height: 75px;
    }
}

@media (max-width: 480px) {
    body.page-matches .top-nav-minimal.mobile-only-nav {
        height: 70px;
    }
}

/* Update bottom padding for matches page content - MOBILE ONLY */
@media (max-width: 768px) {
    body.page-matches .matches-page-wrapper > .matches-container {
        padding-top: calc(75px + env(safe-area-inset-top));
    }
}

@media (max-width: 480px) {
    body.page-matches .matches-page-wrapper > .matches-container {
        padding-top: calc(70px + env(safe-area-inset-top));
    }
}