/* Match Details Tabs Styles */
.match-tabs-container {
    background: transparent;
    overflow: visible;
}

/* Tabs Navigation - Segmented Control Style */
.match-tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.match-tabs-nav-inner {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    padding: 0.35rem;
    gap: 0.25rem;
    border: 1px solid rgba(100, 116, 139, 0.15);
}

.match-tab {
    padding: 0.65rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
}

.match-tab i {
    font-size: 1.05rem;
    transition: color 0.25s ease;
}

.match-tab:hover {
    color: #e5e7eb;
    background: rgba(100, 116, 139, 0.15);
}

.match-tab.active {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.match-tab.active i {
    color: #38bdf8;
}

.match-tabs-content {
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.1);
}

.match-tab-panel {
    display: none;
}

.match-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Row Styles */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

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

.stat-home {
    flex: 0 0 25%;
    text-align: right;
    font-weight: 600;
    color: #38bdf8;
    font-size: 1rem;
}

.stat-label {
    flex: 0 0 50%;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.stat-away {
    flex: 0 0 25%;
    text-align: left;
    font-weight: 600;
    color: #fbbf24;
    font-size: 1rem;
}

.stat-progress {
    margin-bottom: 1.5rem;
}

/* Empty Panel Styles */
.empty-panel {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-panel i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-panel p {
    margin: 0;
    font-size: 0.95rem;
}

/* Lineup Styles */
.lineup-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
}

.lineup-divider {
    width: 1px;
    background: rgba(100, 116, 139, 0.2);
}

.lineup-team-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
}

.lineup-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.formation-badge {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.lineup-section {
    margin-bottom: 1.5rem;
}

.lineup-section-title {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.lineup-players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lineup-players.subs {
    opacity: 0.7;
}

.lineup-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.lineup-player:hover {
    background: rgba(15, 23, 42, 0.8);
}

.player-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.player-name {
    flex: 1;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.player-position {
    flex: 0 0 auto;
    padding: 0.25rem 0.5rem;
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Head to Head Styles */
.h2h-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.h2h-match {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 3px solid rgba(14, 165, 233, 0.3);
}

.h2h-date {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.h2h-competition {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.h2h-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.h2h-team {
    flex: 1;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.h2h-team.winner {
    color: #38bdf8;
    font-weight: 600;
}

.h2h-score {
    flex: 0 0 auto;
    padding: 0.25rem 0.75rem;
    background: rgba(100, 116, 139, 0.2);
    color: #e2e8f0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-tabs-nav-inner {
        padding: 0.3rem;
        gap: 0.2rem;
        border-radius: 10px;
    }
    
    .match-tab {
        padding: 0.6rem 0.9rem;
        border-radius: 8px;
    }
    
    .match-tab span {
        display: none;
    }
    
    .match-tab i {
        font-size: 1.2rem;
    }
    
    .match-tabs-content {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .lineup-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lineup-divider {
        display: none;
    }
    
    .stat-row {
        font-size: 0.9rem;
    }
    
    .stat-home,
    .stat-away {
        font-size: 0.95rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .h2h-result {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .h2h-team {
        text-align: center;
    }
    
    .h2h-score {
        text-align: center;
    }
}
