/*
 * ====================================================================
 * TV BROADCASTS STYLES (broadcasts_bs5.twig)
 * ====================================================================
 * Styles für die TV-Übertragungen Seite
 */

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

/* Filter Bar */
.filter-bar {
    background: var(--fm-bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-btn {
    margin: 0.25rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-color: var(--fm-border);
}

.filter-btn.active {
    background-color: var(--fm-blue);
    border-color: var(--fm-blue);
    color: white;
}

.team-selector-wrapper {
    margin-top: 1rem;
}

#teamSelector {
    max-width: 300px;
}

/* Broadcast Card */
.broadcast-card {
    background: white;
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.broadcast-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Live Indicator */
.live-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none;
    background: var(--fm-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.live-indicator.live {
    display: block;
}

/* Competition Type */
.competition-type {
    text-align: center;
    margin-bottom: 1rem;
}

.competition-type .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Date and Time */
.broadcast-datetime {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--fm-text-primary);
}

.broadcast-datetime h5 {
    color: var(--fm-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.broadcast-datetime .date {
    font-size: 1.1rem;
    font-weight: 500;
}

.broadcast-datetime .time {
    font-size: 1rem;
    color: var(--fm-text-secondary);
}

/* Teams */
.teams-wrapper {
    margin-bottom: 1.5rem;
    min-height: 150px;
}

.team-box {
    text-align: center;
    padding: 0.5rem;
}

.team-logo {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.team-placeholder {
    height: 120px;
    background: var(--fm-bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.team-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10L13 26.375c0 44.721 19.508 57.032 37 67.625 17.492-10.593 37-22.904 37-67.625L50 10z' fill='%23e0e0e0'/%3E%3C/svg%3E");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
}

.team-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fm-text-primary);
    word-break: break-word;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

/* TV Channels */
.tv-channels {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--fm-bg-light);
    border-radius: 8px;
}

.tv-channels h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fm-text-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.tv-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.channel-name {
    font-weight: 500;
    color: var(--fm-text-primary);
    padding: 0.5rem;
    text-align: center;
}

.no-channels {
    text-align: center;
    color: var(--fm-text-muted);
    font-style: italic;
}

/* Broadcast Comment */
.broadcast-comment {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fm-border);
    font-size: 0.9rem;
    color: var(--fm-text-secondary);
    text-align: center;
}

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

.alert-info .alert-heading {
    color: var(--fm-blue);
    font-weight: 600;
}

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

@media (max-width: 991px) {
    .broadcasts-content-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .filter-bar {
        padding: 1rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 767px) {
    .broadcasts-content-wrapper {
        padding: 1rem 0.25rem;
    }
    
    .broadcast-card {
        padding: 1rem;
    }
    
    .team-logo {
        max-height: 80px;
    }
    
    .team-placeholder {
        height: 80px;
    }
    
    .tv-logo {
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    .broadcasts-content-wrapper {
        padding: 0.75rem 0.125rem;
    }
    
    .broadcast-datetime h5 {
        font-size: 1rem;
    }
    
    .broadcast-datetime .date {
        font-size: 0.95rem;
    }
    
    .broadcast-datetime .time {
        font-size: 0.9rem;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .broadcasts-content-wrapper {
        max-width: none;
        padding: 0;
    }
    
    .filter-bar {
        display: none;
    }
    
    .broadcast-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .broadcast-card:hover {
        transform: none;
    }
    
    .live-indicator {
        display: none !important;
    }
}