/* GENEL AYARLAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background-color: #f0f9ff;
    overflow: hidden;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(45deg, #00BFFF, #1E90FF);
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 65px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.brand-logo {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* HAMBURGER BUTONU - Varsayılan olarak gizli */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hamburger açık animasyonu */
.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* MENÜ */
.menu ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.menu-item > a {
    display: block;
    padding: 10px 18px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.menu-item > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* DROPDOWN MENÜ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: flex; /* BU SATIRI EKLEYİN */
    flex-direction: column; /* BU SATIRI EKLEYİN */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    min-width: 180px;
    z-index: 1001;
}

.menu-item.menu-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

/* OYUN ALANI */
.game-area {
    width: 100%;
    height: calc(100vh - 65px);
}

#game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================ */
/* MOBİL RESPONSIVE (768px ve altı) */
/* ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }

    .brand-logo {
        font-size: 22px;
    }

    /* Hamburger göster */
    .hamburger {
        display: flex;
    }

    /* Masaüstü menüyü gizle */
    .menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 65px);
        background: linear-gradient(180deg, #1E90FF, #0077CC);
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .menu.mobile-open {
        left: 0;
    }

    .menu ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-item > a {
        border-radius: 0;
        padding: 15px 20px;
        font-size: 17px;
    }

    /* Mobil dropdown stili */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu-item.menu-open > .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu li a {
        color: white;
        padding: 12px 20px 12px 40px;
        font-size: 16px;
    }

    .dropdown-menu li a:hover {
        background-color: rgba(0, 0, 0, 0.2);
    }

    /* Mobil overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .mobile-overlay.active {
        display: block;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 480px) {
    .brand-logo {
        font-size: 20px;
    }

    .menu {
        width: 250px;
    }
}