/* Header Component Styles */
.site-header {
  position: fixed !important; 
  top: 0 !important; 
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  width: 100% !important;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(25px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 64px; 
}

.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  color: var(--text); 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 18px;
}

.brand .logo { 
  width: 28px; 
  height: 28px; 
  object-fit: contain; 
}

.nav { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav a { 
  color: var(--text-muted); 
  text-decoration: none; 
  padding: 8px 12px; 
  border-radius: 6px; 
  font-weight: 400;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: translateY(0);
  flex: 0 0 auto;
}

/* Hide scrollbar for nav overflow */
.nav::-webkit-scrollbar { display: none; }
.nav { scrollbar-width: none; }

/* Compact menu spacing for EN to avoid overflow */
html[lang="en"] .nav a { padding: 6px 10px; font-size: 13px; }
html[lang="en"] .github-link { padding: 6px 10px; font-size: 13px; }
html[lang="en"] .project-status-btn { padding: 6px 10px !important; font-size: 13px !important; height: 34px !important; }

.lang-toggle {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-light);
  color: var(--text);
  cursor: pointer;
  min-width: 44px;
}

.lang-toggle:hover {
  background: var(--surface);
}

.nav a:hover { 
  color: var(--text); 
  background: var(--surface-light); 
  transform: translateY(-1px);
}

/* Active Page Indicator */
.nav a.active {
  color: var(--primary);
  background: var(--surface-light);
  font-weight: 500;
  transform: translateY(-1px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary), 0 0 16px var(--primary);
  animation: activeGlow 3s ease-in-out infinite alternate;
}

@keyframes activeGlow {
  0% {
    box-shadow: 0 0 6px var(--primary), 0 0 12px var(--primary);
    opacity: 0.7;
  }
  100% {
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    opacity: 1;
  }
}

/* Primary Button (Ücretsiz Deneyin) Styles */
.nav .btn-primary {
  height: 36px !important;
  padding: 8px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  min-width: 140px !important;
  white-space: nowrap !important;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.github-link:hover {
  color: var(--text);
  background: var(--surface-light);
  border-color: var(--border-light);
}

.github-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Project Status Button Styles */
.project-status-btn {
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  background: var(--surface-light) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  transition: all 0.2s ease !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  min-width: 96px !important;
}

.project-status-btn:hover {
  background: var(--surface) !important;
  border-color: var(--border-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.project-status-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.nav-toggle { 
  display: none; 
  background: transparent; 
  border: 0; 
  cursor: pointer; 
  padding: 12px;
  z-index: 1001;
  min-width: 48px;
  min-height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-toggle span { 
  display: block; 
  width: 24px; 
  height: 2px; 
  background: var(--text); 
  margin: 3px 0; 
  border-radius: 2px; 
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  
  .nav.open {
    display: flex;
  }
  
  .nav-toggle {
    display: flex !important;
  }
  
  .project-status-btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
    height: 38px !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: auto !important;
  }
  
  .nav .btn-primary {
    height: 36px !important;
    width: 100% !important;
    min-width: auto !important;
  }
}
