/* CSS Değişkenleri - Dark Mode */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --header-bg: #000000;
    --header-text: #FFFB00;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --card-bg: #ffffff;
    --border-color: #000000;
    --highlight-bg: #f5f5f5;
}

body.dark-mode {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --header-bg: #000000;
    --header-text: #FFFB00;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --card-bg: #141414;
    --border-color: #ffffff;
    --highlight-bg: #222222;
}

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

html, body {
    height: 100%;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto !important;
}

.site-header {
    background: var(--header-bg);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO STİLLERİ */
.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Masaüstü buton */
.desktop-only {
    display: flex;
}

/* Mobil Menü Butonu (üç çizgi) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--header-text);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

/* Dark Mode Butonu (masaüstü) */
.dark-mode-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    color: var(--header-text);
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-btn:hover {
    background: rgba(255, 251, 0, 0.2);
    transform: rotate(15deg);
}

/* Menü (masaüstü) */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--header-text);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::before {
    width: 100%;
}

/* Mobil Menü İçi Header */
.mobile-nav-header {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 251, 0, 0.3);
    margin-bottom: 20px;
}

.mobile-close-btn, .mobile-dark-mode-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    color: var(--header-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.mobile-close-btn:hover, .mobile-dark-mode-btn:hover {
    background: rgba(255, 251, 0, 0.2);
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    flex-shrink: 0;
}

/* Masaüstü (min-width 769px) */
@media (min-width: 769px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-area {
        order: 1;
        margin-right: 2rem;
    }
    
    .main-nav {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .dark-mode-btn {
        order: 3;
        margin-left: 2rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .site-logo img {
        max-height: 55px;
    }
}

/* Mobil (max-width 768px) */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }
    
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo-area {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 1;
        z-index: 10;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--header-bg);
        transition: left 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .mobile-nav-header {
        display: flex;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 0 20px;
        margin: 0;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    
    .nav-menu li a::before {
        display: none;
    }
    
    .site-logo img {
        max-height: 40px;
    }
    
    body {
        overflow-y: auto !important;
        height: auto !important;
    }
}