/* ================= NAVBAR (PROFESSIONAL RESPONSIVE) ================= */

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(15, 15, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s, padding 0.3s;
}

/* ===== NAV WRAPPER ===== */
.nav {
  max-width: 1300px;
  margin: auto;
  padding: 0 24px; /* Yüksekliği padding yerine height ile sabitleyeceğiz */
  height: 80px;    /* Navbar yüksekliğini sabitledik */
  display: flex;
  align-items: center; /* Tüm elemanları dikeyde TAM ORTALAR */
  justify-content: space-between;
  position: relative;
}

@media (max-width: 900px) {
  .nav {
    padding: 14px 18px; /* mobilde daha kompakt */
  }
}

/* ===== LOGO ===== */
.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo span {
  color: #d40026;
}

/* ===== DESKTOP MENU ===== */
.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav li {
  position: relative;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
}

/* underline hover & active */
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #ff2f4f;
  transition: width 0.3s ease-in-out;
}
.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ================= LANGUAGE ================= */

.lang {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Nav yüksekliğine uyum sağlar */
}

/* Yuvarlak butonun hizasını sabitlemek için */
.lang-btn {
  width: 38px;  /* Biraz küçülterek menü yazılarına oranladık */
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); /* Hafif çerçeve şık durur */
  background: rgba(255,255,255,.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.lang-btn:hover{
  transform:scale(1.07);
}

/* ana flag (ASLA TAŞMAZ) */
.lang-btn img{
  width:100%;
  height:100%;
  object-fit:contain;   /* EN GÜVENLİ */
  display:block;
}

/* dropdown */
.dropdown{
  position:absolute;
  top:55px;
  left:0;

  background:#1b1b1b;
  border-radius:12px;

  padding:6px;
  min-width:150px;

  display:none;
  z-index:1000;
}

.dropdown.show{
  display:block;
}

/* item */
.dropdown-item{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:9px 12px;
  border-radius:8px;

  cursor:pointer;
  font-size:14px;
  color:#fff;
}

.dropdown-item:hover{
  background:#2a2a2a;
}

/* küçük bayrak */
.small-flag{
  width:22px;
  height:14px;
  object-fit:contain;
}




/* ===== HAMBURGER ===== */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.menu-btn span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
body {
    padding-top: 80px; /* Navbar yüksekliği kadar boşluk */
}
/* ===== MOBILE ===== */
@media (max-width: 900px) {

  .nav {
        display: flex;
        flex-direction: row; /* Yan yana dizilmeyi garantile */
        align-items: center;
        justify-content: space-between;
    }

    body {
        padding-top: 70px; /* Mobilde biraz daha dar boşluk */
    }

  .nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #0b0b0e;
    padding: 30px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .nav ul.active {
    transform: translateY(0%);
  }

  .nav a {
    font-size: 1.1rem;
  }

  /* ===== MOBİL SIRA DÜZENİ ===== */
  .logo {
    margin-right: auto; /* logo sola yaslan */
  }

  .lang {
    margin-left: auto; /* language sağa git */
    margin-right: 12px; /* hamburger ile arasına boşluk */
  }

  .menu-btn {
    display: flex;
  }

  /* dropdown sağa hizalı */
  .dropdown{
    left:auto;
    right:0;
  }
}