/* header.css */

/* --- WEB: TÜM AKAN YAZILAR VE FAZLALIKLAR TEMİZLENDİ --- */
.topbar, .web-topbar-box { display: none !important; }

/* --- WEB NAVBAR (KAPSÜL - YENİ TEMA UYUMLU) --- */
.web-navbar {
    /* Arka plan rengi style.css ile uyumlu hale getirildi */
    background: rgba(10, 25, 41, 0.85) !important; 
    backdrop-filter: blur(12px) saturate(180%);
    padding: 10px 0 !important;
    position: relative;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 20px;
    border-radius: 50px !important; /* Daha oval */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

/* Navbar içi referans */
.web-navbar .container-fluid{ position: relative !important; }

/* Logo Alanı */
.web-navbar .navbar-brand{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 180px;
    width: 180px;
    overflow: visible;
}

.logo-size {
    max-height: 45px !important; /* Bir tık küçültüldü, daha zarif */
    width: auto !important;
    transform: scale(1.1) !important;
    transform-origin: left center;
    margin-left: -10px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

/* Menü Ortalaması */
.web-navbar .navbar-collapse{
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    flex: 0 0 auto !important;
}

/* Menü Linkleri */
.nav-link { 
    color: rgba(255, 255, 255, 0.75) !important; 
    font-weight: 600; 
    font-size: 14px; 
    padding: 8px 16px !important; 
    border-radius: 50px; 
    transition: 0.3s; 
}
.nav-link:hover { 
    color: #fff !important; 
    background: rgba(255, 255, 255, 0.08); 
}
.nav-link.active-pill { 
    background: rgba(59, 130, 246, 0.15) !important; 
    color: #fff !important; 
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* --- PC BUTONLARI --- */
.pc-auth-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 40px !important; /* Biraz daha kompakt */
    width: 120px !important;
    padding: 0 !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    color: #fff !important;
    transition: 0.3s ease;
    cursor: pointer !important;
}

.btn-auth-login {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}
.btn-auth-login:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6) !important; }

.btn-auth-register {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}
.btn-auth-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6) !important; }

.cart-btn { 
    width: 40px; height: 40px; 
    background: rgba(255,255,255,0.08); 
    border-radius: 50px; 
    display: flex; align-items: center; justify-content: center; 
    color: #fff !important; 
    border: 1px solid rgba(255,255,255,0.15); 
    margin-right: 10px; 
    transition: 0.3s; 
}
.cart-btn:hover { background: #fff; color: #0b1120 !important; }

/* --- MOBİL AYRIMI --- */
#global-mobile-btn, #global-mobile-nav, #global-mobile-overlay { display: none !important; }

@media screen and (max-width: 991px) {
    .web-navbar { display: none !important; }

    #global-mobile-btn {
        display: flex !important; align-items: center; justify-content: center;
        width: 46px; height: 46px; position: fixed; top: 20px; right: 20px;
        background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 14px;
        z-index: 99999; cursor: pointer; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        pointer-events: auto !important;
    }

    #global-mobile-nav {
        display: block !important;
        /* Mobil menü arka planı yeni tema ile uyumlu */
        background: #0a1929; 
        width: 85%; max-width: 300px; height: 100vh;
        position: fixed; top: 0; left: 0; z-index: 99998 !important;
        transform: translateX(-101%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto; border-right: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 100px;
    }

    #global-mobile-nav.active { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,0.6); }

    #global-mobile-overlay.active {
        display: block !important;
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
        z-index: 99997;
    }
}

.mobile-nav-header { padding: 30px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-auth-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.nav-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #64748b; font-weight: 800; padding: 25px 20px 10px 22px; display: flex; align-items: center; }
.nav-section-title::after { content: ''; height: 1px; flex: 1; background: rgba(255,255,255,0.1); margin-left: 15px; }

.mobile-nav-link {
    display: flex; align-items: center; padding: 12px 20px; color: #cbd5e0;
    text-decoration: none !important; transition: 0.2s ease; margin: 4px 12px; border-radius: 10px;
    border: 1px solid transparent; font-weight: 600; font-size: 14px;
}
.mobile-nav-link:active, .mobile-nav-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: rgba(255, 255, 255, 0.1); }
.mobile-nav-link img { width: 28px; height: 28px; margin-right: 14px; border-radius: 6px; object-fit: contain; }
.mobile-nav-link i { width: 20px; text-align: center; margin-right: 14px; font-size: 16px; color: #60a5fa; }

/* =========================
   FLOATING SUPPORT BUTTON
   ========================= */
.floating-support-btn{
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99996; 
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-support-btn:hover{
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.6);
}
.floating-support-btn i{ font-size: 24px; }

.floating-support-dot{
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ef4444;
    border: 2px solid #1e3a5f;
    display: none;
}

/* Mobil safe-area */
@media (max-width: 991px){
    .floating-support-btn{
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 50px;
        height: 50px;
    }
}

/* =========================
   MOBİL TOPBAR ÇAKIŞMA FIX
   ========================= */
@media screen and (max-width: 991px){
  #global-mobile-btn{
    top: calc(20px + env(safe-area-inset-top) + 10px) !important;
  }
  .mobile-nav-header{
    padding-top: calc(30px + env(safe-area-inset-top) + 10px) !important;
  }
}



.floating-support-bubble{
  position: fixed;
  right: 90px;
  bottom: 22px;
  z-index: 999999;

  background: #151f32;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);

  color: rgba(255,255,255,0.95);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;

  max-width: 230px;
  line-height: 1.4;

  opacity: 0;
  transform: translateY(10px);
  transition: .25s ease;

  pointer-events: auto;
}

.floating-support-bubble.show{
  opacity: 1;
  transform: translateY(0);
}

.floating-support-bubble::after{
  content:"";
  position:absolute;
  right: -6px;
  bottom: 16px;
  width: 12px;
  height: 12px;
  background: #151f32;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transform: rotate(-45deg);
}

.bubble-close{
  position:absolute;
  top: 6px;
  right: 8px;

  width: 22px;
  height: 22px;

  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);

  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.bubble-close:hover{
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Mobilde biraz küçült */
@media(max-width: 575px){
  .floating-support-bubble{
    right: 75px;
    bottom: 16px;
    max-width: 190px;
    font-size: 12px;
    padding: 10px 12px;
  }
}


/* ✅ MOBİL MENÜ BUTONU AYARI */
#global-mobile-btn{
  top: 42px !important;
}

/* ==========================================================
   ✅ SUPPORT FLOAT + BALONCUK (HEADER GLOBAL)
   - Bubble guest'e de görünür
   - Kapatılabilir
   ========================================================== */

/* dot default gizli olsun */
.floating-support-dot{
  display: none;
}

/* Bubble base */
.floating-support-bubble{
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 9999999;

  max-width: 260px;
  padding: 12px 14px;
  border-radius: 16px;

  background: #151f32;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);

  color: rgba(255,255,255,0.95);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: .2s ease;
}

/* görünür hali */
.floating-support-bubble.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ok ucu */
.floating-support-bubble::after{
  content:"";
  position:absolute;
  right: 18px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background:#151f32;
  transform: rotate(45deg);
  border-right: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

/* close btn */
.floating-support-bubble .bubble-close{
  position:absolute;
  top: 6px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 10px;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);

  cursor: pointer;
  font-weight: 900;
}

.floating-support-bubble .bubble-close:hover{
  background: rgba(255,255,255,0.12);
  color:#fff;
}

/* mobile tweak */
@media (max-width: 575px){
  .floating-support-bubble{
    right: 16px;
    bottom: 86px;
    max-width: 240px;
    font-size: 12.5px;
  }
}
