/* style.css */

:root {
    --primary-yellow: #cb8e00;
    /* Balta Robotics Sarısı */
    --primary-black: #111111;
    /* Balta Robotics Siyahı */
    --secondary-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-dark: #333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

/* --- NAVIGATION --- */
nav {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--primary-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-size: 1.4rem;
    font-family: 'Times New Roman', Times, serif;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-yellow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    /* Logonun yüksekliğini ayarlar. İhtiyaca göre 40px veya 60px deneyebilirsiniz. */
    width: auto;
    /* Genişliği otomatik ayarlar, böylece logo yamulmaz. */
    display: flex;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-yellow);
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--primary-yellow);
    color: var(--primary-yellow);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

/* --- ORTAK ALANLAR --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
    color: var(--primary-yellow);
    border-bottom: 2px solid var(--primary-yellow);
    display: inline-block;
}

.center-wrapper {
    text-align: center;
}

.trophies {
    height: 50px;
    width: auto;
    text-align: center;
    font-style: italic;
}

/* --- ANA SAYFA HERO --- */
.hero {
    height: 100vh;

    background-color: var(--secondary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    margin-top: 0;
    padding-top: 0;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
}

/* --- HAKKIMIZDA --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.about-grid h3{
    color: #cb8e00;
    font-size: 1.3rem;
}

.about-grid p{
    color: #fff;

}

.frc-box {
    background: var(--secondary-dark);
    padding: 2rem;
    border-left: 5px solid var(--primary-yellow);
    margin-top: 2rem;
}

.frc-box h3{
    color: #cb8e00;
    font-size: 1.3rem;
}

.frc-box p{
    color: #fff;

}

/* --- MEDYA --- */
.season-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.season-btn {
    background: transparent;
    border: 1px solid var(--primary-yellow);
    color: var(--text-light);
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
}

.season-btn.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.media-gallery {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.media-gallery.active {
    display: grid;
}

.media-gallery {
    display: none;
    /* Varsayılan olarak gizli */
}

.media-gallery.active {
    display: block;
    /* Grid yerine Block kullanıyoruz */
    /* Masaüstünde yan yana kaç sütun olsun? (Burada 3 yaptık) */
    column-count: 3;
    /* Sütunlar arası boşluk */
    column-gap: 20px;
}

/* Her Bir Medya Kutusu */
.media-item {
    /* Alt alta gelen öğeler arasındaki boşluk */
    margin-bottom: 20px;
    /* Önemli: Görselin sütunlar arasında ikiye bölünmesini engeller */
    break-inside: avoid;
    background-color: transparent;
    /* Arkaplanı temizle */
}

/* Resimler ve Videolar İçin Ortak Ayar */
.media-item img,
.media-item video {
    width: 100%;
    /* Bulunduğu sütunun genişliğine yayıl */
    height: auto;
    /* YÜKSEKLİĞİ ORİJİNAL DOSYAYA GÖRE AYARLA (Kilit nokta burası) */
    display: block;
    /* Alt taraftaki milimetrik boşlukları siler */
    border-radius: 8px;
    /* Köşeleri hafif yuvarla */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Hafif gölge ekle */
    transition: transform 0.3s ease;
}

/* Üzerine gelince hafif büyüsün */
.media-item:hover img,
.media-item:hover video {
    transform: scale(1.05);
}

/* --- MOBİL UYUMLULUK --- */
/* Tabletler için 2 sütun */
@media (max-width: 900px) {
    .media-gallery.active {
        column-count: 2;
    }
}

/* Telefonlar için tek sütun (Büyük görünmesi için) */
@media (max-width: 600px) {
    .media-gallery.active {
        column-count: 1;
    }
}

/* --- SPONSORLAR --- */
.sponsor-tier h3 {
    margin: 2rem 0 1rem;
    display: inline-block;
    padding: 5px 20px;
    background: #333;
    border-radius: 5px;
}

.tier-platinum h3 {
    color: #b4f0eb;
    border: 1px solid #b4f0eb;
}

.tier-platinum img {
    color: #b4f0eb;
    border: 3px solid #b4f0eb;
    border-radius: 12px;
    size: 100px;
}

.tier-platinum p {
    color: #b4f0eb;
    text-align: center;
    font-size: 1.6rem;
}

.tier-gold h3 {
    color: #FFD700;
    border: 1px solid #FFD700;
}

.tier-gold img {
    color: #FFD700;
    border: 3px solid #FFD700;
    border-radius: 12px;
}

.tier-silver h3 {
    color: #C0C0C0;
    border: 1px solid #C0C0C0;
}
.tier-silver img {
    color: #C0C0C0;
    border: 3px solid #C0C0C0;
    border-radius: 12px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-weight: bold;
    text-decoration: #cb8e00;
}

.logo-box img {
    height: 120px;
    max-width: 100%;
    object-fit: contain;
}

/* --- FOOTER --- */
footer {
    background: black;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: auto;
}

.social-icons a {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin: 0 15px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hamburger menü eklenebilir */
    .hero h1 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* style.css EN ALTINA EKLE */

/* Lightbox (Arka Plan) */
#lightbox {
    display: none;
    /* Başlangıçta gizli */
    position: fixed;
    z-index: 10000;
    /* Her şeyin üstünde olsun */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* %90 Siyahlık */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* Tıklayınca kapansın hissi ver */
}

/* Lightbox Aktifken (JS ile eklenecek) */
#lightbox.active {
    display: flex;
}

/* İçindeki Resim */
#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--primary-yellow);
    /* Takım rengi çerçeve */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    object-fit: contain;
}

/* İçindeki Video */
#lightbox video {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--primary-yellow);
    outline: none;
}

/* Kapatma Butonu (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--primary-yellow);
}

/* --- HAMBURGER MENÜ STİLLERİ (Bunu style.css'in en altına ekle) --- */

/* Varsayılan olarak ikonu gizle (Masaüstünde görünmesin) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-yellow);
    cursor: pointer;
}

/* --- MOBİL UYUMLULUK --- */
/* --- MOBİL MENÜ DÜZELTMESİ --- */

@media (max-width: 768px) {
    /* --- Fix Hamburger & Nav --- */
    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.8rem;
        color: var(--primary-yellow);
    }

    body[data-lang="tr"] .page-title[data-lang-key="sponsors_title"] {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px 0;
        z-index: 9999;
        border-bottom: 2px solid var(--primary-yellow);
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        font-size: 1.2rem;
    }

    /* --- The Layout Overrides (THE FIX) --- */
    
    /* 1. Shrink long titles and force wrapping */
    .page-title {
        font-size: 1.8rem;
        word-break: break-word; 
    }

    /* 2. Free up padding space that is squishing content */
    .container, nav {
        padding: 1rem;
    }

    /* 3. Reduce grid gaps so flex items can wrap safely */
    .logos-grid {
        gap: 1rem;
    }

    /* 4. Fix invalid CSS and enforce strict limits on all logos */
    .logo-box {
        max-width: 50%;
        min-width: 0;
    }

    .logo-box img {
        height: auto !important; 
        max-height: 90px !important; 
        max-width: 100% !important;
    }

    .tier-platinum img {
        width: 100px; /* Replaces the invalid 'size: 100px' */
        height: auto;
    }

    /* 5. Ensure long emails in footer don't stretch page */
    footer p, .social-icons p {
        word-break: break-word;
    }

    .nav-sponsors {
        width: 90;
    }
}