/* ============================
   GLOBAL HEADER STYLES
   ============================ */
.site-header {
  background: linear-gradient(180deg, #000000 0%, #111111 100%);
  padding: 1.25rem 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.site-header .container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================
   TEXT LOGO – Ca W fa
   ============================ */
.header-logo-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.04em;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #ffffff;
  padding-bottom: 0.45rem;
}

.logo-ca,
.logo-fa {
  color: #ffffff;
}

/* EXTRA BOLD W + PREMIUM RED GRADIENT */
.logo-w {
  font-weight: 900;
  background: linear-gradient(135deg, #b80303, #520505);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(184, 3, 3, 0.75);
}

/* ============================
   LINE + CAMERA TRACK
   ============================ */
.logo-line-track {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  overflow: visible;
}

/* İnce kırmızı çizgi */
.logo-line-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(135deg, #b80303, #520505);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.95;
  animation: lineGrow 6s ease-out infinite;
}

/* Kamera ikonu – çizgi tamamlandıktan sonra yürür */
.logo-pulse-icon {
  position: absolute;
  left: 0;
  top: -0.55rem;
  font-size: 0.92rem;
  color: #b80303;
  text-shadow: 0 0 8px rgba(184, 3, 3, 0.7);
  opacity: 0;
  pointer-events: none;
  animation: cameraWalk 6s linear infinite;
}

.logo-pulse-icon i {
  display: inline-block;
}

/* ============================
   ANIMATIONS
   ============================ */

/* 0–50%: çizgi 0 → 100% büyür
   50–100%: çizgi tam uzunlukta kalır */
@keyframes lineGrow {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  10% {
    transform: scaleX(0.1);
    opacity: 1;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* 0–50%: kamera bekler (görünmez)
   50–100%: kamera çizginin başından sonuna kadar yürür */
@keyframes cameraWalk {
  0% {
    left: 0%;
    opacity: 0;
  }
  50% {
    left: 0%;
    opacity: 0;
  }
  55% {
    left: 0%;
    opacity: 1;
  }
  90% {
    left: calc(100% - 14px); /* ikon genişliği kadar offset */
    opacity: 1;
  }
  100% {
    left: calc(100% - 14px);
    opacity: 0;
  }
}

/* Hover – ikisini birlikte biraz hızlandır */
.navbar-brand:hover .logo-line-track::before,
.navbar-brand:hover .logo-pulse-icon {
  animation-duration: 4.5s;
}

.navbar-brand:hover .logo-w {
  text-shadow: 0 0 18px rgba(184, 3, 3, 1);
}

/* ============================
   NAVIGATION MENU
   ============================ */
.navbar-nav {
  gap: 1.75rem;
}

.navbar-nav .nav-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease-in-out;
  text-decoration: none !important;
}

.navbar-nav .nav-link:hover {
  color: #D90404;
}

.navbar-nav .nav-link i {
  margin-right: 0.4rem;
  color: #D90404;
  font-size: 1.1rem;
}

/* ============================
   LANGUAGE DROPDOWN
   ============================ */
.dropdown .nav-link {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown .nav-link i {
  margin-right: 0.4rem;
  color: #D90404;
}

.site-header .dropdown-menu {
  background: rgba(20, 20, 20, 0.93);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 180px;
  margin-top: 0 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent !important;
  transition: color 0.2s ease-in-out;
}

.dropdown-item:hover {
  color: #bbbbbb;
  background: transparent !important;
}

/* ============================
   BUTTONS
   ============================ */
.btn-light {
  background-color: #ffffff;
  color: #000000 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background-color: #e0e0e0;
  color: #000000 !important;
}

.btn-gradient {
  background: linear-gradient(135deg, #b80303, #520505);
  color: white !important;
  border: none;
  padding: 0.5rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(184, 3, 3, 0.25);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #8c0202, #350303);
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(184, 3, 3, 0.35);
}

/* ============================
   HAMBURGER (TOGGLER)
   ============================ */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
}

.navbar-toggler i {
  font-size: 1.8rem;
  color: #ffffff;
}

/* Desktop'ta hamburger gizli */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 0;
  }

  .site-header .dropdown,
  .site-header .btn {
    width: 100%;
  }

  .btn-light,
  .btn-gradient {
    width: 100%;
    text-align: center;
  }
}
