/* =========================================
   KARTSPORT - PAGE-SPECIFIC STYLES
   ========================================= */

/* Track-Preview Video (styles from index.css, needed here too) */
.track-preview-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--primary-blue);
    background: #000;
    margin-bottom: 25px;
}

body.dark-mode .track-preview-container {
    border-color: #4285F4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.track-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background-color: #000;
}

.video-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.preview-badge {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

.preview-badge i {
    color: var(--live-red);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* =========================================
   KLASSEN-TABELLE: Erwachsenen-Zeilen
   ========================================= */

table.stats-table tr.kart-class-adult td {
    background-color: #f0f4ff;
    font-style: italic;
}

body.dark-mode table.stats-table tr.kart-class-adult td {
    background-color: #1a2340;
}

/* =========================================
   FOTO-GALERIE
   ========================================= */

.kart-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 10px 0;
}

.kart-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.kart-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.kart-gallery-item:hover img {
    transform: scale(1.06);
    opacity: 0.8;
}

/* .gallery-hover-icon and its hover states are now in modules.css */

@media (max-width: 700px) {
    .kart-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .kart-gallery {
        grid-template-columns: 1fr;
    }
}

/* Lightbox styles are now in modules.css (shared) */
