/* ============================================
  MATCH HISTORY - GAMING/ESPORTS 2025
  ============================================ */

.match-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.match-card {
    position: relative;
    background: var(--panel-2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr auto;
    gap: 2rem;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-card:hover {
    background: var(--hover);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.match-card:hover::before {
    background: var(--accent);
}

/* Tournament Info */
.match-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.match-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--titles);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
    transition: color 0.35s ease;
}

.match-card:hover .match-info h4 {
    color: var(--accent);
}

.match-info p {
    font-size: 0.6875rem;
    color: var(--muted);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

/* VS Section - Modern Grid Layout */
.match-vs {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    position: relative;
}

.match-vs::before,
.match-vs::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.05);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.35s ease;
}

.match-vs::before {
    left: 0;
}

.match-vs::after {
    right: 0;
}

.match-card:hover .match-vs::before,
.match-card:hover .match-vs::after {
    background: rgba(255, 255, 255, 0.1);
}

.match-vs a {
    color: inherit;
    text-decoration: none;
    transition: all 0.35s ease;
    position: relative;
}

.match-vs a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.35s ease;
}

.match-vs a:hover {
    color: var(--accent);
}

.match-vs a:hover::after {
    width: 100%;
}

.match-vs .team {
    color: var(--txt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.35s ease;
}

.match-vs .team:first-child {
    text-align: right;
    padding-right: 0.5rem;
}

.match-vs .team:last-child {
    text-align: left;
    padding-left: 0.5rem;
}

.match-vs .score {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--titles);
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
}

.match-card:hover .score {
    color: var(--accent);
    transform: scale(1.05);
}

.match-vs .vs {
    font-size: 0.5625rem;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 0.375rem 0.625rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.25rem;
    opacity: 0.6;
    transition: all 0.35s ease;
}

.match-card:hover .vs {
    opacity: 1;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Result Badge - Clean Modern Style */
.match-result {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    border: 1px solid;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.match-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transition: left 0.35s ease;
}

.match-card:hover .match-result::before {
    left: 100%;
}

.match-result.win {
    color: #10b981;
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
}

.match-result.win:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.08);
}

.match-result.loss {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
}

.match-result.loss:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.08);
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.6;
}

/* ============================================
  RESPONSIVE - MOBILE OPTIMIZED
  ============================================ */

@media (max-width: 768px) {
    .match-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem 1rem;
        transform: none;
    }
    
    .match-card:hover {
        transform: translateY(-2px);
    }
    
    .match-card::before {
        width: 100%;
        height: 3px;
        top: 0;
        left: 0;
    }
    
    .match-info {
        text-align: center;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    
    .match-vs {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 0.75rem;
        text-align: center;
    }
    
    .match-vs::before,
    .match-vs::after {
        display: none;
    }
    
    .match-vs .team:first-child {
        text-align: center;
        padding-right: 0;
        grid-row: 1;
    }
    
    .match-vs .score:first-of-type {
        grid-row: 2;
        font-size: 1.5rem;
    }
    
    .match-vs .vs {
        grid-row: 3;
        justify-self: center;
    }
    
    .match-vs .score:last-of-type {
        grid-row: 4;
        font-size: 1.5rem;
    }
    
    .match-vs .team:last-child {
        text-align: center;
        padding-left: 0;
        grid-row: 5;
    }
    
    .match-result {
        justify-self: center;
        padding: 0.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .match-card {
        padding: 1rem 0.875rem;
        gap: 1rem;
    }
    
    .match-vs {
        font-size: 0.875rem;
        gap: 0.625rem;
    }
    
    .match-vs .score {
        font-size: 1.25rem;
    }
    
    .match-vs .score:first-of-type,
    .match-vs .score:last-of-type {
        font-size: 1.375rem;
    }
    
    .match-result {
        font-size: 0.625rem;
        padding: 0.5rem 1.25rem;
    }
    
    .match-info h4 {
        font-size: 0.875rem;
    }
}