/**
 * Header Component CSS
 * Profesyonel, modern ve responsive tasarım
 * 
 * Özellikler:
 * - Glassmorphism efektleri
 * - Gold gradient tema
 * - Smooth animasyonlar
 * - Responsive breakpoints
 */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Gold Gradient Renkleri */
  --header-gold-start: rgb(196, 147, 55);
  --header-gold-mid: rgb(237, 205, 120);
  --header-gold-end: rgb(187, 145, 56);
  --header-gold-dark: rgb(167, 96, 43);
  
  /* Arka Plan Renkleri */
  --header-bg-primary: #0d1529;
  --header-bg-secondary: #1a2548;
  --header-bg-tertiary: #243056;
  --header-bg-glass: rgba(26, 37, 72, 0.85);
  
  /* Metin Renkleri */
  --header-text-primary: #ffffff;
  --header-text-secondary: #e0e0e0;
  --header-text-muted: #a0a0a0;
  
  /* Border & Glow */
  --header-border-color: rgba(255, 215, 0, 0.15);
  --header-border-hover: rgba(255, 215, 0, 0.35);
  --header-glow-color: rgb(0 228 255 / 25%)!important;
  
  /* Spacing */
  --header-gap: 12px;
  --header-padding: 8px 12px;
  --header-radius: 12px;
  --header-radius-sm: 8px;
  
  /* Transitions */
  --header-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-transition-fast: all 0.15s ease;
}

/* ==================== ANA CONTAINER ==================== */
.quartz-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  flex-wrap: nowrap;
  width: 100%;
}

/* ==================== ARAMA BUTONU ==================== */
.quartz-header__search-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border-radius: var(--header-radius);
  cursor: pointer;
  transition: var(--header-transition);
  overflow: hidden;
  flex-shrink: 0;
  min-height: 48px !important;
  border: 1.5px solid #ffffff29 !important;
  background: #ffffff0f !important;
}

.quartz-header__search-btn:hover {
  border-color: 1px solid #00EA89!important;
  transform: none!important;
  box-shadow: 0px 0px 27.9px rgba(0, 234, 137, 0.42)!important;
}

.quartz-header__search-btn:active,
.quartz-header__search-btn.clicked {
  transform: none!important;
}

.quartz-header__search-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header-text-primary);
  transition: var(--header-transition);
}

.quartz-header__search-btn:hover .quartz-header__search-icon {
  color: var(--header-gold-mid);
}

.quartz-header__search-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--header-glow-color) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: var(--header-transition);
  pointer-events: none;
}

.quartz-header__search-btn:hover .quartz-header__search-glow {
  width: 80px;
  height: 80px;
}

/* ==================== DİL SEÇİCİ ==================== */
.quartz-header__lang {
  position: relative;
  flex-shrink: 0;
}

.quartz-header__lang > button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--header-bg-secondary) 0%, var(--header-bg-primary) 100%);
  border: 1px solid var(--header-border-color);
  border-radius: var(--header-radius);
  color: var(--header-text-primary);
  cursor: pointer;
  transition: var(--header-transition);
  font-weight: 600;
  font-size: 14px;
  min-height: 48px !important;
    border: 1.5px solid #ffffff29 !important;
    background: #ffffff0f !important;
}

.quartz-header__lang > button:hover {
  border-color: #00EA89!important;
  background: linear-gradient(135deg, var(--header-bg-tertiary) 0%, var(--header-bg-secondary) 100%);
}

.quartz-header__lang > button.active {
  border-color: #00EA89!important;
  box-shadow: 0 0 15px #00EA89!important;
}

.quartz-header__lang-current {
  background: linear-gradient(137.95deg, #7A96AC 2.28%, #EAEFF3 19.8%, #C2D4E1 32.94%, #FFFFFF 50.16%, #D4DEE5 62.15%, #ABBDC8 78.69%, #BCCAD7 95.24%), #808080;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.quartz-header__lang-arrow {
  display: flex;
  color: var(--header-text-muted);
  transition: var(--header-transition);
}

.quartz-header__lang > button.active .quartz-header__lang-arrow {
  transform: rotate(180deg);
  color: var(--header-gold-mid);
}

/* Dil Dropdown */
.quartz-header__lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 140px;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: var(--header-radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--header-transition);
  box-shadow: 0 10px 40px #00ea8954!important;
    border: 1px solid rgb(0 234 137 / 34%) !important;
    background: rgb(24 51 47) !important;
}

.quartz-header__lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.quartz-header__lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--header-text-secondary);
  text-decoration: none;
  border-radius: var(--header-radius-sm);
  transition: var(--header-transition-fast);
  font-size: 14px;
}

.quartz-header__lang-dropdown a:hover {
  background: #00ea8978 !important;
  color: var(--header-text-primary);
}

.quartz-header__lang-dropdown a.active {
    font-weight: 600;
    background: #00ea89 !important;
    color: #091110 !important;
}

.quartz-header__lang-flag {
  font-size: 18px;
}

.quartz-header__lang-name {
  flex: 1;
}

/* ==================== VIP BANNER ==================== */
.quartz-header__vip {
  position: relative;
  flex-shrink: 0;
}

.quartz-header__vip-link {
  display: block;
  position: relative;
  border-radius: var(--header-radius);
  overflow: hidden;
  transition: var(--header-transition);
}

.quartz-header__vip-link:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px #00EA89!important;
}

.quartz-header__vip-link img {
  display: block;
  max-height: 48px!important;
  width: auto;
  object-fit: contain;
  border: 0px solid #223d9cc2 !important;
  border-radius: 12px;
  min-height: 48px!important;
}

.quartz-header__vip-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: none;
  pointer-events: none;
}

.quartz-header__vip-link:hover .quartz-header__vip-shine {
  animation: vipShine 0.6s ease;
}

@keyframes vipShine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* ==================== CASINO / SPOR SEKMELERİ ==================== */
.quartz-header__tabs {
  position: relative;
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 180px;
  background: linear-gradient(135deg, var(--header-bg-secondary) 0%, var(--header-bg-primary) 100%);
  border: 1px solid var(--header-border-color);
  border-radius: var(--header-radius);
  padding: 5px;
}

.quartz-header__tab {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--header-text-secondary);
  text-decoration: none;
  border-radius: var(--header-radius-sm);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: var(--header-transition);
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
  min-height: 36px;
}

/* İkonlar kaldırıldı - sadece metin gösteriliyor */
.quartz-header__tab-icon {
  display: none;
}

.quartz-header__tab-text {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quartz-header__tab-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(200.56deg, var(--header-gold-start) 16%, var(--header-gold-mid) 36%, var(--header-gold-dark) 60%, var(--header-gold-end) 85%);
  border-radius: var(--header-radius-sm);
  opacity: 0;
  transform: scale(0.9);
  transition: var(--header-transition);
  z-index: 0;
}

/* Hover State */
.quartz-header__tab:hover:not(.active) {
  color: var(--header-text-primary);
  background: rgba(255, 215, 0, 0.08);
}

.quartz-header__tab:hover:not(.active) .quartz-header__tab-icon {
  color: var(--header-gold-mid);
}

/* Active State */
.quartz-header__tab.active {
  color: var(--header-bg-primary);
}

.quartz-header__tab.active .quartz-header__tab-bg {
  opacity: 1;
  transform: scale(1);
}

.quartz-header__tab.active .quartz-header__tab-icon,
.quartz-header__tab.active .quartz-header__tab-text {
  position: relative;
  z-index: 2;
}

/* Ripple Effect */
.quartz-header__tab-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: tabRipple 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 3;
}

@keyframes tabRipple {
  to {
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
  }
}

/* Aktif Indicator Çizgisi (alt kısımda) */
.quartz-header__tabs-indicator {
  position: absolute;
  bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, var(--header-gold-start), var(--header-gold-mid), var(--header-gold-start));
  border-radius: 2px;
  transition: var(--header-transition);
  opacity: 0;
}

/* ==================== RESPONSIVE ==================== */
/* Tüm ekran boyutlarında yan yana - optimize edilmiş responsive */

/* 1200px altı */
@media (max-width: 1200px) {
  .quartz-header {
    gap: 10px;
  }
  
  .quartz-header__tabs {
    min-width: 200px;
  }
  
  .quartz-header__tab {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* 992px altı */
@media (max-width: 992px) {
  .quartz-header {
    gap: 8px;
  }
  
  .quartz-header__search-btn {
    width: 42px;
    height: 42px;
  }
  
  .quartz-header__lang > button {
    padding: 9px 12px;
    font-size: 13px;
  }
  
  .quartz-header__vip-link img {
    max-height: 40px;
  }
  
  .quartz-header__tabs {
    min-width: 180px;
  }
  
  .quartz-header__tab {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 38px;
  }
}

/* 768px altı - Tablet */
@media (max-width: 768px) {
  .quartz-header {
    gap: 8px;
  }
  
  .quartz-header__search-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  
  .quartz-header__lang {
    flex-shrink: 0;
  }
  
  .quartz-header__lang > button {
    padding: 9px 12px;
    font-size: 12px;
  }
  
  .quartz-header__vip {
    flex-shrink: 0;
  }
  
  .quartz-header__vip-link img {
    max-height: 38px;
  }
  
  .quartz-header__tabs {
    flex: 1;
    min-width: 160px;
    padding: 4px;
  }
  
  .quartz-header__tab {
    padding: 10px;
    font-size: 12px;
    min-height: 36px;
  }
}

/* 640px altı - Büyük Mobil */
@media (max-width: 640px) {
  .quartz-header {
    gap: 6px;
    padding: 6px 0;
  }
  
  .quartz-header__search-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .quartz-header__search-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .quartz-header__lang > button {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 10px;
  }
  
  .quartz-header__lang-arrow {
    display: none;
  }
  
  /* VIP banner'ı gizle - butonlara yer aç */
  .quartz-header__vip {
    display: none;
  }
  
  .quartz-header__tabs {
    min-width: 0;
    flex: 1;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
  }
  
  .quartz-header__tab {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 8px;
    min-height: 38px;
  }
}

/* 480px altı - Mobil */
@media (max-width: 480px) {
  .quartz-header {
    gap: 6px;
  }
  
  .quartz-header__search-btn {
    width: 36px;
    height: 36px;
  }
  
  .quartz-header__search-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .quartz-header__lang > button {
    padding: 7px 10px;
    font-size: 11px;
  }
  
  .quartz-header__lang-dropdown {
    min-width: 130px;
    padding: 6px;
  }
  
  .quartz-header__lang-dropdown a {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .quartz-header__tabs {
    padding: 3px;
    gap: 3px;
  }
  
  .quartz-header__tab {
    padding: 9px 10px;
    font-size: 11px;
    min-height: 36px;
  }
}

/* 400px altı - Küçük Mobil */
@media (max-width: 400px) {
  .quartz-header {
    gap: 5px;
  }
  
  .quartz-header__search-btn {
    width: 34px;
    height: 34px;
  }
  
  .quartz-header__search-icon svg {
    width: 14px;
    height: 14px;
  }
  
  .quartz-header__lang > button {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  .quartz-header__tabs {
    padding: 3px;
  }
  
  .quartz-header__tab {
    padding: 8px;
    font-size: 11px;
    min-height: 34px;
  }
}

/* 360px altı - Çok Küçük Mobil */
@media (max-width: 360px) {
  .quartz-header {
    gap: 4px;
  }
  
  .quartz-header__search-btn {
    width: 32px;
    height: 32px;
  }
  
  .quartz-header__lang > button {
    padding: 5px 6px;
    font-size: 9px;
  }
  
  .quartz-header__tabs {
    padding: 2px;
  }
  
  .quartz-header__tab {
    padding: 7px 6px;
    font-size: 10px;
    min-height: 32px;
  }
}

/* ==================== DARK MODE OVERRIDE ==================== */
@media (prefers-color-scheme: light) {
  /* Site zaten dark olduğu için light mode'da da dark kalmasını sağla */
  .quartz-header {
    color-scheme: dark;
  }
}

/* ==================== ANİMASYONLAR ==================== */

/* Pulse animasyonu - VIP banner için */
@keyframes headerPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
}

/* Dikkat çeken VIP banner */
.quartz-header__vip-link.pulse {
  animation: headerPulse 2s infinite;
}

/* Fade In animasyonu - Component ilk yüklendiğinde */
@keyframes headerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quartz-header {
  animation: headerFadeIn 0.4s ease-out;
}

/* ==================== ACCESSIBILITY ==================== */

/* Focus states */
.quartz-header__search-btn:focus-visible,
.quartz-header__lang > button:focus-visible,
.quartz-header__tab:focus-visible,
.quartz-header__vip-link:focus-visible {
  outline: 2px solid var #421E47!important;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .quartz-header,
  .quartz-header__search-btn,
  .quartz-header__lang > button,
  .quartz-header__lang-dropdown,
  .quartz-header__tab,
  .quartz-header__tab-bg,
  .quartz-header__vip-link,
  .quartz-header__tabs-indicator {
    animation: none;
    transition: none;
  }
  
  .quartz-header__vip-shine,
  .quartz-header__tab-ripple {
    display: none;
  }
}
