﻿:root {
    --bs-red: #e60118;
    --bs-danger: #e60118;
    --bs-danger-rgb: 230, 1, 24;
}

.text-danger {
    color: #e60118 !important;
}

.btn-danger {
    background-color: #e60118 !important;
    border-color: #e60118 !important;
}
:root {
    --primary-red: #e60118;
    --dark-text: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --nav-font: 'Poppins', sans-serif; /* Yeni ekledik */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
}

/* --------------------------------------------------------------
# HEADER & NAVBAR (SENÄ°N GÃ–NDERDÄ°ÄÄ°N KODUN REVÄ°ZE HALÄ°)
-------------------------------------------------------------- */
.header {
    background-color: rgba(255, 255, 255, 0.98); /* OpaklÄ±ÄŸÄ± artÄ±rdÄ±k, tok duruyor */
    padding: 15px 0;
    transition: all 0.5s;
    z-index: 997;
    box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.header .logo {
    line-height: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header .logo img {
    max-height: 62px;
    margin-right: 8px;
}

.header .logo h1 {
    font-size: 24px; /* Biraz kÃ¼Ã§Ã¼lttÃ¼k mobilde taÅŸmasÄ±n diye */
    margin: 0;
    font-weight: 700;
    color: var(--dark-text);
    font-family: var(--nav-font);
    text-transform: uppercase;
}

.header .logo h1 span {
    color: var(--primary-red);
}

/* Mobil Logo AyarÄ± */
@media (max-width: 768px) {
    .header .logo img { max-height: 50px; }
    .header .logo h1 { font-size: 18px; }
}

/* --- MASAÃœSTÃœ MENÃœ --- */
@media (min-width: 1200px) {
    /* ... (Ãœstteki container ayarlarÄ± aynÄ± kalÄ±yor) ... */
    .navmenu { padding: 0; }
    .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
    .navmenu li { position: relative; }
    .navmenu > ul > li { white-space: nowrap; padding: 15px 14px; }

    /* Linkin Kendisi */
    .navmenu a {
        color: #555;
        font-size: 15px;
        font-family: var(--nav-font);
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
        position: relative; /* Ã‡izgi iÃ§in referans */
        text-decoration: none;
        text-transform: uppercase;
        cursor: pointer !important; /* 1. Ä°STEK: TÄ±klama Ä°konu (El Ä°ÅŸareti) */
    }

    /* 2. Ä°STEK: Ortadan Kenarlara AÃ§Ä±lan KÄ±rmÄ±zÄ± Ã‡izgi (Kanat Gibi) */
    .navmenu a::after {
        content: "";
        position: absolute;
        background-color: var(--primary-red);
        height: 3px; /* Ã‡izgi kalÄ±nlÄ±ÄŸÄ± */
        width: 100%; /* BaÅŸlangÄ±Ã§ta tam geniÅŸlikte var ama gizli */
        left: 0;
        bottom: -5px; /* YazÄ±nÄ±n 5px altÄ± */
        
        /* SÄ°HÄ°RLÄ° KISIM BURASI: */
        transform: scaleX(0); /* Yatayda 0 boyutuna kÃ¼Ã§Ã¼lt (gÃ¶rÃ¼nmez yap) */
        transform-origin: center; /* BÃ¼yÃ¼me merkezi tam orta nokta */
        transition: transform 0.3s ease-in-out; /* Animasyon hÄ±zÄ± ve tipi */
    }

    /* ÃœstÃ¼ne gelince (Hover) veya Aktifse */
    .navmenu a:hover::after,
    .navmenu .active::after {
        transform: scaleX(1); /* Orijinal boyutuna (ortadan aÃ§Ä±larak) dÃ¶n */
    }

    /* Link Rengi DeÄŸiÅŸimi */
    .navmenu a:hover,
    .navmenu .active {
        color: var(--primary-red);
    }
}

/* --- MOBÄ°L MENÃœ --- */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--dark-text);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .navmenu { padding: 0; z-index: 9997; }

    .navmenu ul {
        display: none; /* JS ile aÃ§Ä±lacak */
        list-style: none;
        position: absolute;
        inset: 60px 20px 20px 20px;
        padding: 10px 0;
        margin: 0;
        border-radius: 6px;
        background-color: #fff;
        border: 1px solid #eee;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
    }

    .navmenu a {
        color: #333;
        padding: 10px 20px;
        font-family: var(--nav-font);
        font-size: 17px;
        font-weight: 500;
        display: block;
        text-decoration: none;
        transition: 0.3s;
    }

    .navmenu a:hover, .navmenu .active {
        color: var(--primary-red);
    }

    /* Mobilde Ä°letiÅŸim Butonu Normal Link Gibi Dursun */
    .btn-ozel {
        background: transparent !important;
        color: #333 !important;
        padding: 10px 20px !important;
        margin: 0 !important;
    }
}

/* Ä°LETÄ°ÅÄ°M BUTONU (Ã–ZEL TASARIM) */
/* Sadece MasaÃ¼stÃ¼nde Buton Gibi GÃ¶rÃ¼nsÃ¼n */
@media (min-width: 1200px) {
    .btn-ozel {
        background: var(--primary-red) !important;
        color: white !important;
        padding: 8px 25px !important;
        border-radius: 50px;
        margin-left: 10px;
        transition: 0.3s;
    }
    
    .btn-ozel:hover {
        background: #333 !important;
        color: white !important;
    }
    
    /* Butonun altÄ±na Ã§izgi Ã§Ä±kmasÄ±n */
    .navmenu > ul > li > a.btn-ozel:before {
        display: none;
    }
}

/* --------------------------------------------------------------
# HERO SECTION & SLIDER (SENÄ°N AYARLARIN)
-------------------------------------------------------------- */
.hero-section { margin-top: 100px; } /* Header bÃ¼yÃ¼dÃ¼ÄŸÃ¼ iÃ§in boÅŸluÄŸu artÄ±rdÄ±k */

.hero-frame {
    padding: 8px;
    background: #1a1a1a !important; 
    border-radius: 25px;
    border: 1px solid #000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* MOUSE GLOW */
.hero-frame::before {
    content: "";
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 1, 24, 0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}
.hero-frame:hover::before { opacity: 1; }

.carousel-inner { border-radius: 20px; background: #000; position: relative; z-index: 2; }
.carousel-item { height: 85vh; }
.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 1 !important; /* Ã–NEMLÄ°: Bunu 1 yaptÄ±k, resim parladÄ± */
}

/* Siyah GÃ¶lge: Sadece yazÄ±nÄ±n arkasÄ±nda (altta) olacak */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ãœst taraf tamamen ÅŸeffaf, aÅŸaÄŸÄ± indikÃ§e koyulaÅŸÄ±yor */
    /* %60'tan sonra kararmaya baÅŸlar, yazÄ±nÄ±n arkasÄ± okunur olur */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%);
    z-index: 1; /* Resmin Ã¼stÃ¼nde, yazÄ±nÄ±n altÄ±nda */
}
/* BADGE */
.badge-custom {
    display: inline-block !important;
    width: auto !important;
    background: var(--primary-red) !important;
    color: white !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 10px;
}

.carousel-caption { text-align: left; bottom: 10%; left: 5%; z-index: 10; }
.carousel-caption h1 { font-weight: 800; font-size: 3.5rem; text-transform: uppercase; color: #fff; }
.carousel-caption h1 span { color: var(--primary-red); }

/* SLIDER GÃ–STERGELERÄ° (NOKTA) */
.custom-indicators {
    bottom: 20px !important;
    z-index: 20;
    margin-bottom: 0;
}
.custom-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    opacity: 0.5 !important;
    border: none !important;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}
.custom-indicators button.active {
    background-color: var(--primary-red) !important;
    opacity: 1 !important;
    transform: scale(1.3);
}

/* NAVIGASYON OKLARI (GRÄ° & SADE) */
.carousel-control-prev, .carousel-control-next {
    width: 60px !important;
    opacity: 1 !important;
    z-index: 100;
}
.custom-nav-icon {
    width: 40px !important;
    height: 40px !important;
    background-color: transparent !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.custom-nav-icon::after {
    content: '';
    display: inline-block;
    border-top: 4px solid #b0b0b0;
    border-right: 4px solid #b0b0b0;
    width: 25px;
    height: 25px;
}   
.carousel-control-prev .custom-nav-icon::after { transform: rotate(-135deg); }
.carousel-control-next .custom-nav-icon::after { transform: rotate(45deg); }
.carousel-control-prev:hover .custom-nav-icon::after,
.carousel-control-next:hover .custom-nav-icon::after { border-color: #ffffff !important; }


/* --------------------------------------------------------------
# GENEL SECTIONS
-------------------------------------------------------------- */
.section-padding { padding: 40px 0; }
.bg-light-gray { background-color: var(--light-gray); }

/* BAÅLIK ALTI Ã‡Ä°ZGÄ°SÄ° */
.custom-red-line {
    width: 50px !important;
    height: 5px !important;
    background-color: var(--primary-red) !important;
    margin: 10px auto !important;
    border-radius: 4px;
}
.title-line { display: none !important; }
/* =========================================
   KART TASARIMLARI (YAVAÅ GELEN Ã‡ERÃ‡EVE)
========================================= */

/* Ana Kart Kutusu */
.card-box, .member-card {
    border-radius: 20px;
    /* Ã‡erÃ§evenin dÄ±ÅŸÄ±na taÅŸmasÄ± iÃ§in visible ÅŸart */
    overflow: visible; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    /* KartÄ±n yÃ¼kselme hÄ±zÄ± */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1; /* Ä°Ã§erik her zaman Ã¼stte */
    background: #fff; /* KartÄ±n kendi rengi beyaz */
}

/* --- HAYALET Ã‡ERÃ‡EVE (::before) --- */
/* Bu element kartÄ±n arkasÄ±nda bekleyen gradyan Ã§erÃ§evedir */
.card-box::before, .member-card::before {
    content: "";
    position: absolute;
    /* KartÄ±n sÄ±nÄ±rlarÄ±ndan 3px dÄ±ÅŸarÄ± taÅŸÄ±r (Ã‡erÃ§eve kalÄ±nlÄ±ÄŸÄ±) */
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    
    /* Senin istediÄŸin gradyan (Soluk KÄ±rmÄ±zÄ± -> Siyah) */
    background: linear-gradient(135deg, rgba(230, 1, 24, 0.6) 0%, #1a1a1a 100%);
    
    /* KartÄ±n arkasÄ±nda kalsÄ±n */
    z-index: -1; 
    
    /* KÃ¶ÅŸeler karta uyumlu olsun (20px + 3px = 23px) */
    border-radius: 23px; 
    
    /* --- Ä°ÅTE OLAY BURADA: BAÅLANGIÃ‡TA GÃ–RÃœNMEZ --- */
    opacity: 0;
    
    /* --- GEÃ‡Ä°Å HIZI (0.5 saniye - yavaÅŸÃ§a belirir) --- */
    transition: opacity 0.6s ease-in-out; 
}

/* --- HOVER DURUMU (ÃœSTÃœNE GELÄ°NCE) --- */
.card-box:hover, .member-card:hover {
    /* Hafif yÃ¼kselme (-4px) */
    transform: translateY(-4px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Hover olunca hayalet Ã§erÃ§eve yavaÅŸÃ§a gÃ¶rÃ¼nsÃ¼n */
.card-box:hover::before, .member-card:hover::before {
    opacity: 1;
}

/* --- Ä°Ã‡ERÄ°K DÃœZENLEMESÄ° --- */
.img-box, .pic {
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent !important;
    /* Ãœst kÃ¶ÅŸeleri yuvarlat */
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px;
}

.img-box img, .pic img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}

.content-box, .member-info {
    padding: 30px;
    position: relative;
    flex-grow: 1;
    background: #fff; /* Ä°Ã§erik zemini beyaz */
    border-radius: 0 0 20px 20px; /* Alt kÃ¶ÅŸeleri yuvarlat */
    padding-bottom: 70px;
}
/* SAÄ ALT Ä°KON */
.social-icon-bottom {
    position: absolute; bottom: 20px; right: 20px; background: white; width: 45px; height: 45px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--primary-red); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid #eee; transition: 0.3s;
}
.social-icon-bottom:hover { background: var(--primary-red); color: white; }


/* --- FOOTER LIGHT RACING --- */
.footer-light-racing {
    background-color: #f8f9fa; /* Light Gray Zemin */
    color: #333;
    padding: 50px 0 20px 0;
    border-top: 4px solid var(--primary-red);
}

/* --- SENÄ°N EKLEDÄ°ÄÄ°N LOGO ALANI AYARLARI --- */
.sitename2 {
    font-size: 28px; /* MasaÃ¼stÃ¼ boyutu */
    font-weight: 800;
    color: #333; /* Koyu Gri YazÄ± */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex; /* Yan yana dizilmesi iÃ§in */
    align-items: center; /* Dikey ortalama */
    gap: 10px; /* Ã–ÄŸeler arasÄ± boÅŸluk */
    text-transform: uppercase;
    flex-wrap: wrap; /* Mobilde sÄ±ÄŸmazsa alt satÄ±ra geÃ§sin */
}

/* Ortadaki Logo Resmi */
.sitename2 img {
    height: 60px; /* YÃ¼ksekliÄŸi sabitledik */
    width: auto;  /* GeniÅŸlik orantÄ±lÄ± */
}

/* Sondaki "Spor KulÃ¼bÃ¼" yazÄ±sÄ± */
.sitename2 span {
    color: var(--primary-red); /* KÄ±rmÄ±zÄ± olsun ki patlasÄ±n */
}


/* --- DÄ°ÄER AYARLAR --- */
.social-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    margin-left: 8px;
    transition: all 0.6s;
}

.social-links a:hover {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(0,0,0,0.1);
    margin: 20px 0;
}

.copyright { font-size: 14px; color: #666; }

/* MOBÄ°L AYARLARI */
@media (max-width: 768px) {
    .sitename2 {
        font-size: 20px; /* Mobilde yazÄ± kÃ¼Ã§Ã¼lsÃ¼n */
        justify-content: center; /* Ortala */
    }
    .sitename2 img {
        height: 40px; /* Logo kÃ¼Ã§Ã¼lsÃ¼n */
    }
    .footer-light-racing {
        text-align: center;
    }
    .social-links {
        justify-content: center !important;
        margin-top: 15px;
    }
}
/* --- UZUN VE HÄ°ZALI PÄ°LOT KARTLARI --- */
/* --- UZUN VE GRADYAN Ã‡ERÃ‡EVELÄ° PÄ°LOT KARTLARI --- */

.member-card {
    /* 1. Ä°STEK: Boyu 20px kÄ±salttÄ±k (520 -> 500) */
    min-height: 500px; 
    
    /* 2. Ä°STEK: Gradyan Ã‡erÃ§eve HazÄ±rlÄ±ÄŸÄ± */
    border: 3px solid transparent; /* Ã‡erÃ§eve iÃ§in yer aÃ§tÄ±k */
    background: #fff; /* KartÄ±n iÃ§i beyaz */
    background-clip: padding-box; /* Arka plan Ã§erÃ§eveye taÅŸmasÄ±n */
    
    border-radius: 20px;
    /* Ã‡erÃ§evenin dÃ¼zgÃ¼n gÃ¶rÃ¼nmesi iÃ§in overflow'u aÃ§tÄ±k */
    overflow: visible; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease; /* GeÃ§iÅŸi yumuÅŸattÄ±k */
    
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Hover Durumu (ÃœstÃ¼ne Gelince) */
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    
    /* 2. Ä°STEK: GRADYAN Ã‡ERÃ‡EVE UYGULAMASI */
    /* Ä°Ã§ kÄ±sÄ±m beyaz kalÄ±r, sadece sÄ±nÄ±r (border-box) gradyan olur */
    /* Soluk KÄ±rmÄ±zÄ± -> Siyah geÃ§iÅŸi */
    background: linear-gradient(#fff, #fff) padding-box, 
                linear-gradient(135deg, rgba(230, 1, 24, 0.6) 0%, #1a1a1a 100%) border-box;
}


/* --- DÄ°ÄER Ä°Ã‡ERÄ°K AYARLARI (AynÄ± KalÄ±yor) --- */

/* Resim AlanÄ± */
.pic {
    height: 280px; 
    overflow: hidden;
    flex-shrink: 0;
    /* KÃ¶ÅŸeleri Ã§erÃ§eveye uydurmak iÃ§in biraz kÄ±stÄ±k */
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
    margin: -1px -1px 0 -1px; /* Beyaz Ã§izgi oluÅŸmamasÄ± iÃ§in ince ayar */
}

.pic img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}

/* YazÄ± AlanÄ± */
.member-info {
    padding: 30px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    /* Alt kÃ¶ÅŸeleri Ã§erÃ§eveye uydur */
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
}

/* Ä°sim */
.member-info h4 {
    font-weight: 700; font-size: 22px; color: #222; margin-bottom: 15px; font-family: 'Poppins', sans-serif;
}

/* AÃ§Ä±klama YazÄ±sÄ± */
.member-info span {
    font-size: 15px; color: #666; line-height: 1.8; font-weight: 400; margin-bottom: 20px;
}

/* Ä°kon AlanÄ± */
.member-info .social-wrapper {
    margin-top: auto; display: flex; justify-content: flex-end;
}

/* Ä°konun Kendisi */
.social-icon-bottom {
    width: 45px; height: 45px; background: #f8f9fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-red); border: 1px solid #ddd; transition: 0.3s;
}

.social-icon-bottom:hover {
    background: var(--primary-red); color: white; border-color: var(--primary-red);
}

/* --- INDEX KART METIN DÜZENİ (Güncel/Kulüp/Gelişen Pilotlar) --- */
#events .content-box,
#club-activities .member-info,
#pilots .member-info {
    padding: 24px 24px 70px;
}

#events .content-box h3,
#club-activities .member-info h4,
#pilots .member-info h4 {
    margin-bottom: 10px;
    font-size: clamp(1.02rem, 1.1vw, 1.2rem);
    line-height: 1.35;
    font-weight: 700;
    color: #1f2430;
    letter-spacing: 0.2px;
}

#events .content-box p,
#club-activities .member-info span,
#pilots .member-info span {
    display: block;
    margin-bottom: 14px;
    font-size: 0.98rem;
    line-height: 1.65;
    font-weight: 600;
    color: #3d4454;
}

@media (max-width: 768px) {
    #events .content-box,
    #club-activities .member-info,
    #pilots .member-info {
        padding: 20px 18px 64px;
    }

    #events .content-box h3,
    #club-activities .member-info h4,
    #pilots .member-info h4 {
        font-size: 1rem;
    }

    #events .content-box p,
    #club-activities .member-info span,
    #pilots .member-info span {
        font-size: 0.95rem;
        line-height: 1.62;
    }
}


