/*
 * ====================================================================
 * MATCH STYLES (match_bs5.twig)
 * ====================================================================
 * Styles für die Einzelspiel-Ansicht
 */

/* Content Wrapper */
.match-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Match Hero Section */
.match-hero {
    background: linear-gradient(135deg, var(--fm-dark) 0%, var(--fm-blue) 100%);
    min-height: 400px;
    position: relative;
}

.match-info {
    margin-bottom: 2rem;
}

.season-info {
    font-size: 1.1rem;
    color: var(--fm-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stadium-info {
    font-size: 0.95rem;
}

.stadium-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stadium-link:hover {
    color: var(--fm-gold);
}

/* Match Teams Hero */
.match-teams-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-section {
    flex: 1;
    text-align: center;
    max-width: 200px;
}

.team-logo-hero {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.team-name-hero {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    word-break: break-word;
}

/* Match Result Hero */
.match-result-hero {
    flex: 0 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 200px;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.halftime-display {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.attendance-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.attendance-info div {
    margin-bottom: 0.25rem;
}

/* Navigation Arrows */
.match-navigation {
    position: relative;
    margin-bottom: 2rem;
}

.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fm-gold);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-arrow:hover {
    background: var(--fm-red);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-match {
    left: 20px;
}

.next-match {
    right: 20px;
}

/* Tabs Navigation */
.match-tabs-nav {
    margin-bottom: 2rem;
}

.nav-tabs {
    border-bottom: 2px solid var(--fm-border);
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--fm-text-secondary);
    font-weight: 500;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: var(--fm-bg-light);
    color: var(--fm-text-primary);
}

.nav-tabs .nav-link.active {
    background: var(--fm-blue);
    color: white;
    border-bottom: 3px solid var(--fm-gold);
}

/* Tab Content */
.match-tabs-content {
    background: white;
    border-radius: 0 0 8px 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
    color: var(--fm-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--fm-border);
}

.section-title i {
    color: var(--fm-gold);
}

/* Stats Section */
.stats-card {
    background: var(--fm-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
}

.stats-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fm-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--fm-border);
}

.stats-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stat-row.highlight {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    color: var(--fm-text-primary);
}

.stat-label {
    color: var(--fm-text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: var(--fm-text-primary);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

.no-images {
    text-align: center;
    padding: 3rem;
    background: var(--fm-bg-light);
    border-radius: 8px;
}

/* Image Upload Section */
.image-upload-section {
    background: var(--fm-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.image-upload-section h4 {
    color: var(--fm-text-primary);
    margin-bottom: 1rem;
}

/* Comments Section */
.comments-list {
    margin-bottom: 2rem;
}

.comment-item {
    background: var(--fm-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-header {
    margin-bottom: 0.75rem;
}

.comment-author {
    color: var(--fm-text-primary);
    font-weight: 600;
}

.comment-date {
    color: var(--fm-text-secondary);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.comment-text {
    color: var(--fm-text-primary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.comment-image {
    margin: 1rem 0;
}

.comment-image img {
    max-width: 300px;
    border-radius: 6px;
}

.comment-actions {
    border-top: 1px solid var(--fm-border);
    padding-top: 0.75rem;
}

.comment-reply {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    margin-left: 2rem;
    border-left: 3px solid var(--fm-gold);
}

/* Comment Form */
.comment-form-section {
    background: var(--fm-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.comment-form-section h4 {
    color: var(--fm-text-primary);
    margin-bottom: 1rem;
}

/* Fan Activities */
.fan-activity-section {
    margin-bottom: 2rem;
}

.activity-title {
    color: var(--fm-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--fm-border);
}

.activity-title i {
    color: var(--fm-gold);
}

.activity-item {
    background: var(--fm-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.activity-description {
    color: var(--fm-text-primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.activity-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.activity-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.activity-thumb:hover {
    transform: scale(1.05);
}

.no-activities {
    text-align: center;
    padding: 3rem;
    background: var(--fm-bg-light);
    border-radius: 8px;
}

/* Form Styling */
.form-label {
    font-weight: 500;
    color: var(--fm-text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--fm-border);
    border-radius: 6px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--fm-blue);
    box-shadow: 0 0 0 0.25rem rgba(66, 139, 202, 0.25);
}

/* Button Styling */
.btn-primary {
    background-color: var(--fm-blue);
    border-color: var(--fm-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--fm-red);
    border-color: var(--fm-red);
}

.btn-link {
    color: var(--fm-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:hover {
    color: var(--fm-red);
}

/* Alert Styling */
.alert-info {
    background-color: rgba(66, 139, 202, 0.1);
    border-color: var(--fm-blue);
    color: var(--fm-text-primary);
}

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid var(--fm-border);
    background: var(--fm-bg-light);
    border-radius: 12px 12px 0 0;
}

.modal-body img {
    max-width: 100%;
    border-radius: 8px;
}

/* Responsive Anpassungen */
@media (max-width: 1199px) {
    .match-content-wrapper {
        padding: 1.5rem 0.75rem;
    }
    
    .match-tabs-content {
        padding: 1.5rem;
    }
}

@media (max-width: 991px) {
    .match-content-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .match-teams-hero {
        gap: 1rem;
    }
    
    .team-logo-hero {
        width: 80px;
        height: 80px;
    }
    
    .score-display {
        font-size: 2.5rem;
    }
    
    .match-result-hero {
        min-width: 160px;
        padding: 1rem;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .prev-match {
        left: 10px;
    }
    
    .next-match {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .match-content-wrapper {
        padding: 1rem 0.25rem;
    }
    
    .match-hero {
        min-height: 350px;
    }
    
    .match-teams-hero {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .team-logo-hero {
        width: 60px;
        height: 60px;
    }
    
    .team-name-hero {
        font-size: 0.9rem;
    }
    
    .score-display {
        font-size: 2rem;
    }
    
    .match-result-hero {
        min-width: 140px;
        order: -1;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .match-tabs-content {
        padding: 1rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .comment-reply {
        margin-left: 1rem;
    }
    
    .nav-arrow {
        display: none;
    }
}

@media (max-width: 576px) {
    .match-content-wrapper {
        padding: 0.75rem 0.125rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .nav-tabs .nav-link span {
        display: none;
    }
    
    .match-tabs-content {
        padding: 0.75rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stat-row.highlight {
        padding: 0.5rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .comment-item,
    .activity-item,
    .image-upload-section,
    .comment-form-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .match-content-wrapper {
        max-width: none;
        padding: 0;
    }
    
    .match-hero {
        background: none;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .match-navigation,
    .nav-tabs,
    .comment-form-section,
    .image-upload-section {
        display: none;
    }
    
    .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }
    
    .match-tabs-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .stats-card,
    .comment-item,
    .activity-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}