/* --- RACE TIMELINE (YARIŞ ZAMAN ÇİZELGESİ) KESİN ÇÖZÜM --- */

/* 1. Dış Kapsayıcı (Zorunlu Yatay Düzen) */
.race-timeline-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    position: relative;
    padding: 20px 10px 15px 10px !important; /* Noktalar ve çizgi için üstten boşluk */
    overflow-x: auto !important;
    width: 100% !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.race-timeline-container::-webkit-scrollbar {
    display: none !important;
}

/* 2. Kesintisiz İnce Gri Bağlantı Çizgisi (Tek Parça) */
.race-timeline-container::before {
    content: '';
    position: absolute;
    top: 24px; /* Noktaların tam merkezinden geçecek yükseklik */
    left: 20px; /* Sol baştan hafif boşluk */
    right: 20px; /* Sağ sondan hafif boşluk */
    height: 1px;
    background: #333; /* İnce koyu gri çizgi */
    z-index: 1;
}

/* 3. Her Bir Koşu Öğesi */
.timeline-item {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 75px; /* Mobilde sıkışmaması için minimum genişlik */
    flex: 1 1 auto !important; /* Desktop ekranlarda 9 koşuyu tüm satıra eşit dağıtır */
    cursor: pointer;
    z-index: 2;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important; /* Herhangi bir ul/li stili sızarsa iptal eder */
}

/* 4. Küçük Yuvarlak Noktalar (Dot) */
.timeline-node {
    width: 10px;
    height: 10px;
    background: #111;
    border: 2px solid #555;
    border-radius: 50%;
    margin-bottom: 8px;
    position: relative;
    z-index: 3; /* Çizginin üstünde kalmasını sağlar */
    transition: all 0.3s ease;
}

/* 5. Yazı Kapsayıcısı */
.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

/* 6. Pasif/Gri Yazı Stilleri */
.timeline-content .race-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    transition: color 0.3s;
    font-family: 'Chakra Petch', sans-serif;
}
.timeline-content .race-time {
    font-size: 0.65rem;
    color: #555;
    margin-top: 2px;
    font-family: monospace;
}

/* 7. Hover (Üzerine Gelince Hafif Aydınlanma) */
.timeline-item:hover .timeline-node {
    background: #333;
    border-color: #888;
}
.timeline-item:hover .timeline-content .race-name {
    color: #aaa;
}

/* 🔥 8. AKTİF KOŞU DURUMU (Sarı Vurgu ve Glow) */
.timeline-item.active .timeline-node {
    background: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}
.timeline-item.active .timeline-content .race-name {
    color: #FFD700;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.timeline-item.active .timeline-content .race-time {
    color: rgba(255, 215, 0, 0.8); /* Aktif koşunun saati de sarımtırak olsun */
}

/* --- ANALİZ MOTORU BUTONLARI İÇİN STİL --- */

/* Butonların Kapsayıcısı */
#engineContainer {
    display: flex;
    flex-wrap: wrap; /* Sığmazsa alt satıra geç */
    gap: 8px;        /* Butonlar arası boşluk */
}

/* Standart Buton Görünümü (Seçili Değilken) */
.engine-btn {
    flex: 1 1 auto;  /* Boşlukları doldur */
    min-width: 110px; /* Çok küçülmesin */
    background-color: #212529; /* Koyu Gri */
    border: 1px solid #495057; /* Gri Çerçeve */
    color: #e0e0e0;
    font-family: 'Chakra Petch', sans-serif; /* Tekno Font */
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma Efekti */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Üzerine Gelince (Hover) */
.engine-btn:hover {
    background-color: #343a40;
    border-color: #00C8FF; /* Mavi Çerçeve */
    color: #fff;
    transform: translateY(-2px); /* Hafif yukarı kalksın */
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    z-index: 2;
}

/* --- SEÇİLİ (AKTİF) DURUM --- */
/* Burası senin istediğin Neon Mavi Ayarı */
.engine-btn.active {
    background-color: #00C8FF !important; /* Neon Mavi Arka Plan */
    border-color: #00C8FF !important;     /* Mavi Çerçeve */
    color: #000 !important;               /* Siyah Yazı (Okunabilirlik için) */
    font-weight: 800 !important;          /* Kalın Yazı */
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.6), inset 0 0 10px rgba(255,255,255,0.3) !important; /* Dış ve İç Parlama */
    transform: scale(1.05);               /* Hafif Büyüme */
    z-index: 5;                           /* Diğerlerinin üstüne çıksın */
}

/* Voltran Butonu (Tümünü Seç) Özel Stili */
.btn-outline-warning {
    border-width: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-outline-warning:hover, .btn-outline-warning:active {
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

/* --- SİHİRLİ KUPON ÖZEL NEON STİLİ --- */
.btn-magic-neon {
    background-color: #00C8FF !important;  /* Neon Mavi */
    border: 2px solid #00C8FF !important;
    color: #000 !important;                /* Siyah Yazı */
    font-weight: 800 !important;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5) !important; /* Mavi Parlama */
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Üzerine Gelince */
.btn-magic-neon:hover {
    background-color: #0090b8 !important;  /* Hafif koyu mavi */
    border-color: #0090b8 !important;
    color: #fff !important;                /* Yazı beyaz olsun */
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.9) !important; /* Parlama artsın */
    transform: scale(1.02);
}

/* İçindeki Rozet (VIP yazısı) */
.btn-magic-neon .badge {
    background-color: #000 !important;
    color: #00C8FF !important;
    border: 1px solid #00C8FF !important;
}

    #bultenTypeTab .nav-link.active { background-color: rgba(255,255,255,0.1) !important; border-color: currentColor !important; box-shadow: 0 0 10px rgba(255,255,255,0.1); }
