/*
 * Hızlı Okuma - Premium Header CSS
 * Modern, profesyonel header stilleri
 */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.main-header.scrolled {
  background: white;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  height: 80px;
}

.logo {
  display: block;
  max-height: 55px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  max-height: 55px;
  width: auto;
  transform: rotate(0deg) !important;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav ul li a {
  color: #1e293b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.main-nav ul li a:hover {
  color: #6366f1;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.header-actions .btn {
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.header-actions .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.header-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.header-actions .btn-outline {
  background: transparent;
  color: #1e293b;
  border: 2px solid #e2e8f0;
}

.header-actions .btn-outline:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.mobile-menu-toggle.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.mobile-menu-toggle.active i::before {
  content: "\f00d";
}

/* ===== MOBILE MENU ===== */
@media (max-width: 992px) {
  .header-container {
    height: 70px;
  }
  
  .logo img {
    max-height: 45px;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    padding: 100px 2rem 2rem;
    z-index: 100000;
    overflow-y: auto;
    animation: mobileMenuSlide 0.3s ease;
  }
  
  @keyframes mobileMenuSlide {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .main-nav.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 400px;
  }
  
  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav ul li:last-child {
    border-bottom: none;
  }
  
  .main-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
  }
  
  .main-nav ul li a::after {
    display: none;
  }
  
  .main-nav ul li a:hover,
  .main-nav ul li a:active {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100002;
  }
  
  .header-actions {
    display: none !important;
  }
  
  /* Mobile Auth Buttons - Inside Menu */
  .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-auth-buttons .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .mobile-auth-buttons .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #1e293b;
    border: none;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  }
  
  .mobile-auth-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
  }
  
  .mobile-auth-buttons .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .mobile-auth-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
  }
}

/* Hide mobile buttons on desktop */
@media (min-width: 993px) {
  .mobile-auth-buttons {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 60px;
    padding: 0;
  }
  
  .logo img {
    max-height: 38px;
  }
  
  .main-nav {
    padding: 80px 1.5rem 2rem;
  }
  
  .main-nav ul li a {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.1rem;
  }
  
  .mobile-auth-buttons {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  
  .mobile-auth-buttons .btn {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 56px;
  }
  
  .logo img {
    max-height: 34px;
  }
  
  .main-nav {
    padding: 70px 1.25rem 1.5rem;
  }
  
  .main-nav ul li a {
    font-size: 0.9rem;
    padding: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .mobile-auth-buttons {
    margin-top: 1.25rem;
    padding-top: 1rem;
    gap: 0.5rem;
  }
  
  .mobile-auth-buttons .btn {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }
}
