/* ==================================================
   HOME – UPCOMING RACES
================================================== */

/* WRAPPER (final görünüm = dark premium + padding korunur) */
.home-upcoming-races .container {
    background: #121212;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

/* GRID */
.upcoming-races-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* CARD TITLE */
.upcoming-card-title {
    font-size: 13px;
    font-weight: 800;
    padding: 10px 14px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.upcoming-card-title.motogp { color: #b11217; }
.upcoming-card-title.worldsbk { color: #0a58ca; }
.upcoming-card-title.standings { color: #7a3df0; }

/* CARD */
.upcoming-race-card {
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;

    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,.08);
    color: #eee;
}

.upcoming-race-card.standings {
    background: #181818;
}

/* IMAGE */
.race-image {
    height: 130px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9) contrast(1.05);
    transition: transform .4s ease;
}

/* BODY */
.race-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* BADGES */
.race-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.race-badge.motogp {
    background: #c40000;
    color: #fff;
}

.race-badge.worldsbk {
    background: rgba(10,88,202,.25);
    color: #9ec5ff;
}

/* TEXT */
.race-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
    transition: color .2s ease, transform .2s ease;
}

.race-dates {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.race-track {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

/* Dark premium text colors */
.race-track,
.mini-driver,
.mini-points,
.race-dates {
    color: #ccc;
}

/* TIMES */
.motocal-times {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.motocal-times span {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* Series-specific times (mevcut görünüm korunur) */
.upcoming-race-card.motogp .motocal-times span {
    background: #b11217;
    color: #fff;
}

.upcoming-race-card.worldsbk .motocal-times span {
    background: #e7efff;
    color: #0a58ca;
}

/* ==================================================
   STANDINGS (mini)
================================================== */

.mini-standings-row {
    display: grid;
    grid-template-columns: 26px 1fr 40px;
    gap: 6px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed rgba(255,255,255,.1);
}

.mini-rank {
    font-weight: 800;
    text-align: center;
    color: #b58cff;
}

.mini-driver {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.mini-driver img {
    width: 18px;
}

.mini-points {
    font-weight: 800;
    text-align: right;
}

.mini-standings-link {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: #b58cff;
    text-decoration: none;
}

.mini-standings-link:hover {
    opacity: .85;
}

/* PUAN DURUMU – SCROLL KAPALI (final davranış) */
.upcoming-race-card.standings .race-body {
    overflow-y: visible;
}

/* ==================================================
   STANDINGS TABS
================================================== */

.standings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.standings-tabs .tab-btn {
    background: #f2f2f2;
    color: #111;
    border: none;
    padding: 6px 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all .2s ease;
    margin-right: 4px;
}

.standings-tabs .tab-btn:last-child {
    margin-right: 0;
}

.standings-tabs .tab-btn:hover {
    background: #ddd;
}

.standings-tabs .tab-btn.active {
    background: #c40000;
    color: #fff;
    border-radius: 6px;
}

.standings-tab-content {
    display: none;
}

.standings-tab-content.active {
    display: block;
}

/* ==================================================
   HOVER (final premium)
================================================== */

.upcoming-race-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0,0,0,.6);
}

.upcoming-race-card:hover .race-image {
    transform: scale(1.05);
}

.upcoming-race-card:hover .race-title {
    transform: translateX(2px);
}

.upcoming-race-card.motogp:hover {
    box-shadow: 0 18px 48px rgba(196,0,0,.35);
}

.upcoming-race-card.worldsbk:hover {
    box-shadow: 0 18px 48px rgba(10,88,202,.35);
}

.upcoming-race-card.standings:hover {
    box-shadow: 0 18px 48px rgba(122,61,240,.35);
}

@media (hover: none) {
    .upcoming-race-card:hover {
        transform: none;
        box-shadow: none;
    }

    .upcoming-race-card:hover .race-image,
    .upcoming-race-card:hover .race-title {
        transform: none;
    }
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {
    .upcoming-races-grid {
        grid-template-columns: 1fr;
    }

    .race-image {
        height: 160px;
    }
}
.race-countdown{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.upcoming-race-card.motogp .race-countdown{
    background: rgba(225, 6, 0, 0.08);
    color: #b11217;
}

.upcoming-race-card.worldsbk .race-countdown{
    background: rgba(10, 88, 202, 0.10);
    color: #0a58ca;
}

.race-countdown.is-live{
    background: rgba(21, 115, 71, 0.10);
    color: #157347;
}
.upcoming-race-card.worldsbk .motocal-times{
    flex-wrap: nowrap;
    gap: 8px;
}

.upcoming-race-card.worldsbk .motocal-times span{
    white-space: nowrap;
    font-size: 11px;
    padding: 6px 8px;
}