/* style.css - KYROSIL EU & NATO THEME FINAL V2.5 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    --bg-dark: #0a0e17;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-blue: #00f2ff;
    --neon-purple: #bd00ff;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image: radial-gradient(circle at 10% 20%, rgba(189, 0, 255, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.15) 0%, transparent 40%);
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* --- HEADER STYLES --- */
header { position: sticky; top: 0; z-index: 1000; }

/* 1. ÜST KAT: UTILITY BAR (Trademark) */
.utility-bar {
    background: #05080f; padding: 5px 0; width: 100%; overflow-x: auto; white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.utility-content { max-width: 1400px; margin: 0 auto; padding: 0 3rem; display: flex; justify-content: flex-start; align-items: center; }
.trademark-link { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #666; text-decoration: none; padding: 2px 5px; line-height: 1; white-space: nowrap; }
.trademark-link img { height: 12px; filter: brightness(0.85); }
.trademark-link strong { color: var(--neon-blue); font-weight: 700; }

/* 2. ALT KAT: MAIN NAVBAR */
.navbar-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 3rem; 
    max-width: 100%; 
    margin: 0 auto;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* LOGO VE YAZI HİZALAMASI (Final) */
.logo-container { padding: 0; margin: 0; }
.logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-link img { height: 35px; vertical-align: middle; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--text-main); text-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.btn-login { background: var(--neon-blue); color: #000; padding: 0.5rem 1.2rem; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: 0.3s; }

.menu-trigger { display: flex; align-items: center; gap: 10px; cursor: pointer; color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; }
.hamburger-icon { display: flex; flex-direction: column; gap: 5px; width: 25px; }
.hamburger-icon span { display: block; width: 100%; height: 2px; background: #fff; transition: 0.3s; }
.mobile-hidden { display: block; }

/* --- MEGA MENU OVERLAY --- */
.mega-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(5, 8, 15, 0.98); backdrop-filter: blur(15px);
    z-index: 2000; padding: 3rem; transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.mega-menu-overlay.active { transform: translateY(0); }
.menu-close { align-self: flex-end; cursor: pointer; color: #fff; font-weight: bold; font-size: 1.2rem; margin-bottom: 2rem; transition: 0.3s; }
.menu-content-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.menu-title { color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.overlay-links { list-style: none; }
.overlay-links li { margin-bottom: 15px; }
.overlay-links a { font-size: 1.5rem; color: #fff; text-decoration: none; font-weight: 700; transition: 0.3s; }
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.games-grid a { color: #cbd5e1; text-decoration: none; font-size: 1rem; padding: 5px 0; transition: 0.3s; display: block; }

/* --- FOOTER STYLES --- */
footer { background: #05080f; border-top: 2px solid var(--neon-blue); padding: 3rem 2rem 1rem 2rem; margin-top: auto; font-size: 0.9rem; color: var(--text-muted); }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 2rem; }
.footer-col h3 { color: #fff; margin-bottom: 1.2rem; font-size: 1.1rem; border-left: 3px solid var(--neon-purple); padding-left: 10px; }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: 0.3s; display: block; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; max-width: 1400px; margin: 0 auto; font-size: 0.75rem; }

/* --- MAIN CONTENT & LAYOUT STYLES --- */
main { flex: 1; padding: 0; max-width: 100%; margin: 0 auto; width: 100%; }
.hero-title { font-size: 3.5rem; }
.marquee-content span { font-size: 1.5rem; }
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.research-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 20px; border-radius: 12px; transition: 0.3s; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.game-item { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 10px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease-in-out; text-align: center; }

/* --- MOBİL UYUMLULUK AYARLARI (KRİTİK VE FINAL FIX) --- */
@media (max-width: 768px) {
    /* Yazı Küçültme (Sıkışmayı Önler) */
    .hero-title { font-size: 2.5rem !important; line-height: 1.1; }
    h1 { font-size: 2.5rem !important; }
    .hero-subtitle { font-size: 1rem; }
    .section-header h2 { font-size: 1.5rem; }
    
    /* Header Temizliği */
    .navbar-top { padding: 0.8rem 1rem; }
    .logo-text { font-size: 1.1rem; }
    .logo-link img { height: 30px; }
    
    /* MEGA MENÜ KRİTİK FIX (Yatay Kaydırmayı Engeller) */
    .mega-menu-overlay { padding: 1rem; }
    .menu-content-grid { 
        grid-template-columns: 1fr; /* Ana menü 1 sütuna düştü */
        gap: 1.5rem; 
    }
    .games-grid { 
        grid-template-columns: 1fr; /* Oyunlar Gridi KESİN tek sütuna düştü */
        padding: 0 20px;
    } 
    .games-grid a {
        white-space: normal; /* Uzun metinler alt satıra insin (taşmayı engeller) */
        text-align: left;
    }

    /* Footer Temizliği */
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-col h3 { border-left: none; border-bottom: 2px solid var(--neon-purple); padding-bottom: 5px; margin-top: 2rem; left: 50%; transform: translateX(-50%); }
}

/* MOBİL MEGA MENÜ - FİNAL V3 - MÜKEMMEL GÖRÜNÜM */
@media (max-width: 992px) {
    .mega-menu-overlay.active {
        padding: 2rem 1.5rem !important;
    }

    .menu-content-grid {
        display: block !important;
    }

    /* MAIN menü (My Sponsors, About Me vs.) */
    .overlay-links {
        display: block !important;
        margin-bottom: 3rem !important;
    }
    .overlay-links li {
        margin-bottom: 1.4rem !important;
    }
    .overlay-links a {
        font-size: 1.65rem !important;     /* eskiden 2rem’di, şimdi tam kararında */
        font-weight: 700 !important;
        display: block !important;
        line-height: 1.3 !important;
        color: #fff !important;
        padding: 6px 0 !important;
    }

    /* GAMES & APPS */
    .games-grid {
        display: block !important;
        margin-top: 1.5rem !important;
    }
    .games-grid a {
        display: block !important;
        font-size: 1.15rem !important;     /* daha zarif */
        font-weight: 500 !important;
        color: #cbd5e1 !important;
        padding: 11px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        transition: all 0.3s !important;
    }
    .games-grid a:hover {
        color: var(--neon-blue) !important;
        padding-left: 8px !important;
    }

    .menu-title {
        margin: 3.5rem 0 1.3rem 0 !important;
        font-size: 0.8rem !important;
        letter-spacing: 3px;
    }
}
