/* === ÜST BAR === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  z-index: 100;
  box-sizing: border-box;
  overflow-x: hidden;
  height: 70px;
}

/* Theme toggle - her zaman fixed position */
.theme-toggle {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--theme-toggle-icon);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--theme-toggle-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Light mode background */
body.light-mode .theme-toggle {
  background: rgba(239, 252, 244, 0.9);
  border-color: var(--line);
  color: var(--accent); /* Use accent color (green) in light mode */
}

/* Dark mode text color */
body.dark-mode .theme-toggle {
  color: #ffffff; /* Use white color in dark mode */
}

.theme-toggle:hover {
  background: rgba(74, 222, 128, 0.15);
  transform: translateY(-1px);
}

.theme-toggle i {
  font-size: 16px;
  transition: transform 0.5s ease;
}

.theme-toggle:hover i {
  transform: rotate(20deg);
}

.theme-toggle span {
  font-size: 13px;
}

/* === Üst satır === */
.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--header-text);
  font-size: 15px;
  opacity: 0.95;
  max-width: 100%;
  overflow: hidden;
}

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

.right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent); /* Changed to green color */
}
.phone i {
  color: var(--header-text);
  margin-right: 4px;
}

/* === Alt satır === */
.header-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 6px;
  max-width: 100%;
  overflow: hidden;
}

.social {
  display: flex;
  align-items: center;
  gap: 20px;
}
.social a {
  color: var(--social-whatsapp);
  font-size: 20px;
  transition: transform 0.25s ease, color 0.25s ease;
}
.social .whatsapp:hover {
  color: var(--social-whatsapp);
}
.social .instagram:hover {
  color: var(--social-instagram);
}
.social .facebook:hover {
  color: var(--social-facebook);
}
.social .twitter:hover {
  color: var(--social-twitter);
}
.social a:hover {
  transform: translateY(-2px) scale(1.12);
}

/* === Mobilde sosyal öğeleri logo altında ortala === */
@media (max-width: 899px) {
  .site-header {
    flex-direction: column;
    height: auto;
    padding: 8px 16px; /* Reduced padding */
  }
  
  .center {
    margin-bottom: 5px; /* Reduced margin */
  }
  
  .right {
    display: flex !important;
    justify-content: center;
    margin-top: 5px; /* Reduced margin */
    width: 100%;
  }
  
  .social {
    justify-content: center;
    gap: 15px; /* Reduced gap between social icons */
  }
  
  .logo {
    color: var(--accent); /* Ensure logo is green on mobile too */
  }
}

/* === Geniş ekranda tek satır === */
@media (min-width: 900px) {
  .site-header {
    padding: 0 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }

  .right {
    justify-content: flex-end;
    display: flex !important;
    margin-left: auto;
  }

  .theme-toggle {
    left: 40px;
    top: 12px;
    gap: 8px;
    font-size: 16px;
    padding: 8px 14px;
  }

  .theme-toggle i {
    font-size: 18px;
  }

  .theme-toggle span {
    font-size: 16px;
  }

  .header-top,
  .header-bottom {
    margin: 0;
  }

  .header-top {
    gap: 16px;
  }

  .header-bottom {
    gap: 40px;
  }
}