/* Hero Section */
.match-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
}

.match-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.35);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
}

.hero-content {
    position: relative;
    width: 100%;
    padding: 3rem 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tournament-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.tournament-badge i {
    color: #ffd700;
    font-size: 1rem;
}

/* Match Scoreboard */
.match-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
}

.player-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 1 300px;
    min-width: 0;
}

.player-section.player-1 {
    justify-content: flex-end;
    text-align: right;
}

.player-section.player-2 {
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: left;
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.player-avatar i {
    font-size: 2.5rem;
    color: white;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.player-section.player-1 .player-info {
    align-items: flex-end;
}

.player-section.player-2 .player-info {
    align-items: flex-start;
}

.player-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.score-display {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vs-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 1rem;
}

.vs-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

/* Match Status Section */
.match-status-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge.completed {
    background: rgba(72, 187, 120, 0.8);
}

.status-badge.processing {
    background: rgba(237, 137, 54, 0.8);
}

.status-badge.pending {
    background: rgba(160, 174, 192, 0.8);
}

.btn-livestream {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-livestream:hover {
    background: rgba(185, 28, 28, 1);
    transform: translateY(-2px);
    color: white;
}

/* Breadcrumb */
.report-breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
    font-size: 0.95rem;
}

.breadcrumb-link {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #2b6cb0;
}

.report-breadcrumb i {
    margin: 0 0.75rem;
    opacity: 0.6;
}

.breadcrumb-current {
    color: #718096;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    margin-bottom: 0;
    padding: 2rem 2rem 1.5rem 2rem;
    background: #ffffff;
    border-bottom: none;
    border-left: 4px solid #667eea;
}

.section-header h3 {
    margin: 0;
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* AI Commentary */
.ai-commentary-section {
    margin-bottom: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ai-commentary-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.content-info .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.commentary-content {
    background: #ffffff;
    border-radius: 0;
    border: none;
}

.commentary-text {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #2d3748;
    white-space: pre-wrap;
    font-weight: 400;
}

/* Statistics Section */
.statistics-section {
    margin-bottom: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.statistics-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.legs-container {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
}

.leg-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.leg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.leg-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.leg-info h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
}

.score-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
}

.leg-content {
    padding: 2rem;
}

/* Screenshot Section */
.screenshot-section {
    margin-bottom: 2rem;
}

.screenshot-container {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-container:hover {
    transform: scale(1.02);
}

.screenshot-image {
    max-height: 400px;
    width: auto;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-container:hover .screenshot-overlay {
    opacity: 1;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    gap: 1rem;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.stat-row:hover {
    background: #edf2f7;
}

.stat-left,
.stat-right {
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    color: #2d3748;
}

.stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #4a5568;
    font-weight: 600;
}

.stat-label i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

/* No Stats */
.no-stats {
    text-align: center;
    padding: 3rem 2rem;
    color: #718096;
}

.no-stats i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

/* Empty Stats */
.empty-stats {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-icon i {
    font-size: 2rem;
    color: #a0aec0;
}

.empty-stats h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-stats p {
    color: #718096;
    line-height: 1.6;
}

/* Navigation Footer */
.navigation-footer {
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #f7fafc;
    color: #4a5568;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.btn-nav:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .commentary-text {
        padding: 2rem;
        font-size: 1rem;
    }

    .section-header {
        padding: 2rem 2rem 1.5rem 2rem;
    }

    .section-header h3 {
        font-size: 1.5rem;
    }

    .match-scoreboard {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }

    .player-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        max-width: none;
        justify-content: center;
    }

    .player-section.player-2 {
        flex-direction: column;
        text-align: center;
    }

    .vs-section {
        margin: 1rem 0;
    }

    .match-status-section {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .stat-label {
        order: -1;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .score-display {
        font-size: 2.5rem;
    }

    .player-name {
        font-size: 1.4rem;
        text-align: center;
        white-space: normal;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .leg-card,
    .commentary-content {
        background: #2d3748;
        border-color: #4a5568;
    }

    .leg-header {
        background: linear-gradient(135deg, #4a5568, #2d3748);
    }

    .section-header h3 {
        color: #e2e8f0;
    }

    .commentary-text {
        color: #e2e8f0;
    }

    .stat-row {
        background: #4a5568;
        border-color: #718096;
    }

    .stat-row:hover {
        background: #718096;
    }

    .stat-left,
    .stat-right {
        color: #e2e8f0;
    }

    .stat-label {
        color: #cbd5e0;
    }

    .empty-stats h3 {
        color: #e2e8f0;
    }

    .empty-stats p {
        color: #cbd5e0;
    }

    .btn-nav {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
}
