/* =======================================================
   KMB CANLI MAÇ — CANLI MAÇ SAYFASI STİLLERİ (MATCH.CSS)
   Fotomaç Canlı Skor Referanslı Modern Düzen
======================================================= */

.match-header-card {
    background: linear-gradient(180deg, #181d26 0%, #11151c 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.match-top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.scoreboard-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    text-align: center;
}

.team-box .large-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    transition: transform 0.2s ease;
}

.team-box:hover .large-logo {
    transform: scale(1.05);
}

.team-box .team-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.score-center-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
}

.main-score-display {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.main-score-display .score-num {
    min-width: 45px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.score-num.updated {
    color: var(--primary);
    transform: scale(1.2);
}

.score-divider {
    color: var(--text-dim);
    font-weight: 300;
}

.live-time-indicator {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--danger);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

/* Match Main Content Grid */
.match-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Live Events Timeline */
.events-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    animation: eventSlideIn 0.4s ease-out;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-light);
}

.timeline-item.is-goal {
    border-left: 4px solid var(--primary);
    background: rgba(0, 230, 118, 0.05);
}

.timeline-item.is-card-red {
    border-left: 4px solid var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.timeline-item.is-card-yellow {
    border-left: 4px solid var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

@keyframes eventSlideIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.event-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.event-details {
    flex: 1;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.event-minute {
    font-weight: 800;
    color: var(--primary);
}

.event-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.event-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sidebar Widgets */
.match-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.stat-row {
    margin-bottom: 0.85rem;
}

.stat-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-bars-wrapper {
    display: flex;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    gap: 2px;
}

.stat-bar-home {
    background: var(--primary);
    transition: width 0.5s ease;
}

.stat-bar-away {
    background: var(--info);
    transition: width 0.5s ease;
}

/* Tabs & Lineups */
.tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.player-num {
    font-weight: 800;
    width: 24px;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
    .match-content-grid {
        grid-template-columns: 1fr;
    }
    .scoreboard-wrapper {
        flex-direction: row;
    }
    .team-box .large-logo {
        width: 48px;
        height: 48px;
    }
    .team-box .team-title {
        font-size: 1rem;
    }
    .main-score-display {
        font-size: 2.5rem;
    }
}
