/* Head-to-Head Page Specific Styles */

.h2h-page {
    min-height: 100vh;
}

/* Team Selection Container */
.team-selection-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.team-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(220, 53, 69, 0.1));
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.selector-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-select {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.team-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.team-select:focus {
    border-color: rgba(0, 123, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.team-select option {
    background: #1a1a1a;
    color: white;
    padding: 0.5rem;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.vs-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #007bff, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.compare-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.compare-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3, #003d82);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.compare-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.compare-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(5px);
}

/* Results Section */
.results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Teams Header */
.teams-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(220, 53, 69, 0.15));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-info {
    text-align: center;
}

.team-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.team-country {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.team-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.header-vs {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Statistics Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: white;
    line-height: 1;
}

.stat-value.highlight {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Matches Container */
.matches-container {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.matches-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.match-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    grid-column: 1 / -1;
}

.match-season {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.match-competition {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-competition.ucl {
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.3), rgba(0, 123, 255, 0.3));
    color: #4da3ff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.match-competition.uel {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.3), rgba(255, 153, 51, 0.3));
    color: #ffa64d;
    border: 1px solid rgba(255, 153, 51, 0.3);
}

.match-competition.uecl {
    background: linear-gradient(135deg, rgba(0, 153, 76, 0.3), rgba(0, 204, 102, 0.3));
    color: #4dff88;
    border: 1px solid rgba(0, 204, 102, 0.3);
}

.match-stage {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.match-team {
    text-align: center;
}

.match-team-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: white;
    margin-bottom: 0.25rem;
}

.match-home-indicator {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-score-divider {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* No Matches State */
.no-matches {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 2rem;
}

.no-matches-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-matches h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.no-matches p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-selector {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vs-divider {
        margin: 0;
    }

    .vs-text {
        font-size: 2rem;
    }

    .teams-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .header-vs {
        order: 2;
        font-size: 1.5rem;
    }

    .team-info:last-child {
        order: 3;
    }

    .match-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .match-score-divider {
        display: none;
    }

    .stats-summary {
        grid-template-columns: 1fr;
    }
}

/* Hidden Utility */
.hidden {
    display: none !important;
}