:root {
    --primary: #ff1a1a;
    --primary-dark: #8a0303;
    --primary-glow: rgba(255, 26, 26, 0.6);
    --bg-color: #020202; 
    --text-main: #f0f0f0;
    --glass-bg: rgba(5, 5, 5, 0.95);
    --glass-border: rgba(255, 255, 255, 0.08);
    --bar-green: #2ecc71;
    --status-green: #27ae60;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --panel-bg: #080808;
    --input-bg: #000000;
    --border-color: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: 'Rajdhani', sans-serif; 
    min-height: 100vh; 
    width: 100vw; 
    overflow-x: hidden; 
    overflow-y: auto; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 50px; }

.bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, #2a0000 0%, #000000 85%); z-index: -2; }
body.red-mode .bg-overlay { background: radial-gradient(circle at 50% 30%, rgba(180, 0, 0, 0.15) 0%, #020202 90%); }

.fog { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/img/fog1.png') repeat-x; background-size: 200% auto; opacity: 0.1; animation: fogMove 60s linear infinite; z-index: -1; pointer-events: none; }
#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@keyframes fogMove { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

nav { position: fixed; top: 0; left: 0; width: 100%; height: 75px; display: flex; align-items: center; justify-content: space-between; padding: 0 4%; background: rgba(0, 0, 0, 0.15); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.03); z-index: 1000; transition: all 0.3s ease; }
.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: 0.3s; }
.logo-area:hover { transform: scale(1.02); }
.logo-img { height: 48px; filter: drop-shadow(0 0 10px rgba(255,0,0,0.3)); transition: 0.3s; }
.logo-text { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; line-height: 1; text-transform: uppercase; letter-spacing: 2px; display: flex; gap: 6px; cursor: pointer; }
.logo-text span { transition: all 0.3s ease; }
.logo-text span:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.nav-right-container { display: flex; align-items: center; }
.nav-links { display: flex; gap: 10px; align-items: center; margin-left: auto; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    margin-left: auto;
    gap: 4px;
    transition: all 0.3s ease;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-item { text-decoration: none; color: rgba(255, 255, 255, 0.75); font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 1px; padding: 8px 20px; border-radius: 50px; transition: all 0.3s ease; position: relative; cursor: pointer; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255, 26, 26, 0.15); border-color: rgba(255, 26, 26, 0.5); box-shadow: 0 5px 15px rgba(255, 26, 26, 0.25); transform: translateY(-2px); }

.dropdown { position: relative; display: flex; align-items: center; }
.dropdown-wrapper { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 15px; z-index: 200; opacity: 0; transition: all 0.3s ease; }
.dropdown:hover .dropdown-wrapper { display: block; opacity: 1; animation: slideUpFadeDropdown 0.2s ease-out forwards; }

.dropdown-content { background: rgba(5, 5, 8, 0.85); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); min-width: 220px; box-shadow: 0 15px 35px rgba(0,0,0,0.8); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; overflow: hidden; padding: 6px; }
.dropdown-content a { color: rgba(255, 255, 255, 0.8); padding: 10px 18px; text-decoration: none; display: block; border-radius: 50px; font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px; transition: all 0.2s; margin-bottom: 4px; text-align: center; border: 1px solid transparent; background: rgba(255,255,255,0.02); }
.dropdown-content a:last-child { margin-bottom: 0; }
.dropdown-content a:hover, .dropdown-content a.active { background: rgba(255, 26, 26, 0.2); color: #fff; transform: translateY(-2px); border: 1px solid rgba(255,26,26,0.4); box-shadow: 0 5px 15px rgba(255, 26, 26, 0.3); }

@keyframes slideUpFadeDropdown { 0% { opacity: 0; transform: translate(-50%, 10px); } 100% { opacity: 1; transform: translate(-50%, 0); } }

footer {
    background-color: #020202;
    background-image: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, #000 100%), repeating-linear-gradient(45deg, rgba(20,20,20,0.1) 0px, rgba(20,20,20,0.1) 1px, transparent 1px, transparent 10px);
    position: relative; padding: 25px 0 0; z-index: 50; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto; 
    width: 100%;
}
footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%); box-shadow: 0 0 15px var(--primary); opacity: 0.8; }
.footer-content { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 20px; position: relative; z-index: 2; }
.f-brand { flex: 1; max-width: 550px; border-left: 3px solid var(--primary); padding-left: 20px; background: linear-gradient(90deg, rgba(255,26,26,0.02) 0%, transparent 100%); }
.f-brand-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.f-brand-logo { height: 38px; width: auto; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,255,255,0.1)); }
.f-brand h2 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; margin: 0; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; }
.f-desc { font-family: 'Rajdhani', sans-serif; color: #b0b0b0; line-height: 1.5; font-size: 0.95rem; margin-bottom: 5px; }
.f-desc .highlight { color: var(--primary); font-weight: 600; }
.f-legal-text { font-size: 1rem; color: #b0b0b0; font-family: 'Rajdhani', sans-serif; line-height: 1.4; margin: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); }
.f-legal-text .highlight { color: var(--primary); font-weight: 700; }
.f-social-area { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.f-title { font-family: 'Teko', sans-serif; font-size: 1.1rem; color: #fff; margin-bottom: 10px; letter-spacing: 1.2px; position: relative; display: inline-block; padding-bottom: 4px; }
.f-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.f-social-icons { display: flex; gap: 10px; margin-bottom: 5px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(30, 30, 30, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: #ccc; text-decoration: none; font-size: 1rem; transition: all 0.3s ease; }
.social-btn:hover { border-color: var(--primary); color: #fff; background: rgba(255, 26, 26, 0.2); box-shadow: 0 0 15px var(--primary-glow); transform: translateY(-3px); }
.footer-bottom { background: #080808; border-top: 1px solid rgba(255,255,255,0.05); padding: 12px 0; text-align: center; font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; color: #666; letter-spacing: 1px; position: relative; width: 100%; }
.footer-bottom span { display: inline-block; }

/* Masaüstü için dil butonu özel stilleri (HTML'den çıkardığımız stiller) */
.lang-dropdown { margin-left: 15px; }
.lang-btn { padding: 6px 15px; border-color: rgba(255,255,255,0.2); font-weight: 700; }
.lang-wrapper { min-width: 80px; }
.text-center { text-align: center; }

@media (max-width: 1024px) {
    nav { height: auto; padding: 12px 18px; }
}

@media (max-width: 900px) {
    /* Üst Menü Barı */
    nav {
        height: 70px;
        padding: 0 20px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo-text { font-size: 1.1rem; letter-spacing: 1.1px; }
    .logo-img { height: 38px; }
    
    .nav-right-container {
        position: static; 
        margin: 0;
        display: block;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        width: 44px;
        height: 44px;
        z-index: 1001;
    }

    /* Açılır Mobil Menü Container'ı */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgb(0, 0, 0);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 0 30px 0;
        gap: 12px;
        border-top: 1px solid rgba(255,255,255,0.05);
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 15px 40px rgba(0,0,0,0.9);
        display: none;
        opacity: 0;
        transform: translateY(-15px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        margin: 0;
    }
    
    nav.open .nav-links {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        animation: fadeIn 0.3s ease-out forwards;
    }

    /* Menü Butonları */
    .nav-item {
        width: 85%;
        margin: 0 auto;
        justify-content: center;
        text-align: center;
        font-size: 1.1rem;
        padding: 14px;
        max-width: none;
    }

    /* Mobil Dropdown (İstatistikler & Dil) */
    .dropdown {
        width: 100%;
        flex-direction: column;
    }
    
    .lang-dropdown { margin-left: 0 !important; }
    
    .dropdown-wrapper {
        position: static;
        transform: none;
        display: none;
        width: 85%;
        margin: 0 auto;
        padding-top: 8px;
        opacity: 1;
        left: auto;
    }
    
    .dropdown.open .dropdown-wrapper {
        display: block;
        animation: slideDownFade 0.2s ease-out forwards;
    }
    
    .dropdown-content {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255,255,255,0.05);
        padding: 10px;
        width: 100%;
        min-width: unset;
    }

    /* Footer Mobil Düzeni */
    .footer-content { flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 0 20px; }
    .f-brand { max-width: 100%; padding-left: 0; border-left: none; border-top: 3px solid var(--primary); padding-top: 20px; background: linear-gradient(180deg, rgba(255,26,26,0.03) 0%, transparent 100%); }
    .f-brand-header { justify-content: center; flex-direction: column; }
    .f-social-area { align-items: center; text-align: center; }
    .f-title::after { right: auto; left: 50%; transform: translateX(-50%); width: 100px; } 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}