/**
 * Match Card - Scoreboard style
 */

.match-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.match-card__date {
    font-size: 0.875rem;
    color: var(--color-royal-300);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    background-color: var(--color-royal-700);
    color: var(--color-white);
}

.match-card__status--live {
    background-color: #ef4444;
    animation: pulse 2s infinite;
}

.match-card__status::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background-color: currentColor;
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.match-card__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

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

.match-card__team-logo {
    width: 4rem;
    height: 4rem;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .match-card__team-logo {
        width: 5rem;
        height: 5rem;
    }
}

.match-card__team-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.match-card__team-logo--opponent {
    background: rgba(255, 255, 255, 0.2);
}

.match-card__team-name {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-white);
}

@media (min-width: 640px) {
    .match-card__team-name {
        font-size: 1rem;
    }
}

.match-card__vs {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
}

.match-card__score {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    min-width: 4rem;
    text-align: center;
}

.match-card__location {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.match-card__location svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Match result card variant */
.match-result {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.match-result__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.match-result__date {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    font-weight: 600;
    text-transform: uppercase;
}

.match-result__outcome {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.match-result__outcome--win {
    background-color: #dcfce7;
    color: #166534;
}

.match-result__outcome--loss {
    background-color: #fee2e2;
    color: #991b1b;
}

.match-result__outcome--draw {
    background-color: #f1f5f9;
    color: #475569;
}

.match-result__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.match-result__team {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.match-result__team--home {
    justify-content: flex-start;
}

.match-result__team--away {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.match-result__team-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-gray-800);
}

.match-result__score {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-royal-700);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-royal-50);
    border-radius: var(--radius-md);
}
