:root {
    --brand-main: #009d6c;
    --brand-neon: #00ffbf;
    --brand-dark: #006b4a;
    --brand-deep: #004d33;
    --text-dark: #1f2937;
    --nav-height: 90px;
    --header-bg: linear-gradient(135deg, #006b4a 0%, #004d33 100%);
}

* {
    box-sizing: border-box;
}

body {
    padding-top: var(--nav-height);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 0 40px;
    z-index: 1000;
}

.logo {
    position: static;
    transform: none;
    z-index: 20;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover img {
    transform: rotate(-3deg) scale(1.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    margin: 0 3px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-btn:hover {
    background-color: #ffffff;
    color: var(--brand-deep);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--brand-neon);
}

.giris-btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: var(--brand-neon);
    color: var(--brand-deep);
    border: 2px solid var(--brand-neon);
    box-shadow: 0 0 10px rgba(0, 255, 191, 0.3);
}

.giris-btn:hover {
    background: #fff;
    color: var(--brand-main);
    border-color: #fff;
    box-shadow: 0 0 20px var(--brand-neon);
    transform: translateY(-3px); 
}

.auth-actions {
    display: flex;   
    align-items: center;
    gap: 10px;      
}

.logout-style {
    background-color: transparent;
    border-color: #ef4444; 
    color: #ef4444;
}

.logout-style:hover {
    background-color: #ef4444;
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); 
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
    z-index: 1001; /* Ensuring it's above other elements */
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--header-bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Ensuring it's above other elements */
}

.mobile-nav a {
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px; /* Added spacing between items */
}

.auth-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Increased gap */
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .desktop-nav, .auth-actions {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .navbar {
        justify-content: flex-end;
    }
    .header-container {
        justify-content: space-between;
        padding: 0 20px;
    }
    .logo {
        position: static;
        transform: none;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px; 
    }
    .giris-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* --- EK MOBİL İYİLEŞTİRMELER (header.css) --- */

@media (max-width: 768px) {
  :root {
    --nav-height: 70px; /* Header yüksekliğini azalt */
  }
  .logo img {
    height: 35px; /* Logo boyutunu ayarla */
  }
  .hamburger-menu {
    font-size: 22px; /* Hamburger ikon boyutunu ayarla */
  }
  /* giris-btn zaten 768px içinde ayarlanmış */
}

@media (max-width: 480px) {
  :root {
    --nav-height: 60px; /* Daha küçük ekranlar için header yüksekliğini azalt */
  }
  .header-container {
    padding: 0 15px; /* Kenar boşluklarını azalt */
  }
  .logo img {
    height: 30px; /* Logo boyutunu ayarla */
  }
  .hamburger-menu {
    font-size: 20px; /* Hamburger ikon boyutunu ayarla */
  }
  .mobile-nav a {
    padding: 12px 15px; /* Mobil menü link dolgusunu ayarla */
  }
  .auth-actions-mobile {
    gap: 10px; /* Mobil yetkilendirme aksiyonları arasındaki boşluğu ayarla */
    margin-top: 15px;
  }
}