/* =========================================
   HesapGG - Kurumsal Sayfa & Sidebar Stilleri
   (Tam Kod - Override Yok)
   ========================================= */

:root {
  /* Renk Paleti */
  --main-accent: #3b82f6;       /* Ana Mavi */
  --secondary-accent: #8b5cf6;  /* İkincil Mor */
  
  /* Gradientler */
  --active-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(139, 92, 246, 0.85) 100%);
  --hover-bg: rgba(255, 255, 255, 0.08);

  /* Glassmorphism (Cam Efekti) Değişkenleri */
  --glass-bg: rgba(30, 58, 95, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  
  /* Tipografi Renkleri */
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.70);
  
  /* Düzen */
  --sidebar-width: 290px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

/* 1. SAYFA GENEL YAPISI */
.whyus-page {
  background: transparent !important; /* Global arkaplanı gösterir */
  min-height: 100vh;
  padding-bottom: 80px;
  font-family: 'Inter', sans-serif; /* Sitenin fontuna uyum sağlar */
}

.whyus-hero {
  text-align: center;
  padding: 60px 0 50px;
}

.acc-hero-title {
  font-size: 42px;
  font-weight: 900;
  color: var(--text-white);
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.whyus-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 12px;
  font-weight: 500;
}

/* 2. LAYOUT (SIDEBAR + CONTENT) */
.terms-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
}

/* 3. SOL MENÜ (SIDEBAR) - RENKLENDİRİLDİ */
.terms-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 110px; /* Header altı boşluk */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Menü Linkleri */
.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent; /* Zıplamayı önler */
}

/* Menü İkonları */
.nav-link i {
  width: 24px;
  text-align: center;
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

/* Hover Durumu */
.nav-link:hover {
  background: var(--hover-bg);
  color: var(--text-white);
  transform: translateX(5px); /* Hafif sağa kayma */
}

.nav-link:hover i {
  color: var(--main-accent);
}

/* ACTIVE (AKTİF) DURUMU - BURASI RENKLENDİRİLDİ */
.nav-link.active {
  background: var(--active-gradient); /* Mavi-Mor Gradient */
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35); /* Parlama Efekti */
  border: 1px solid rgba(255,255,255,0.15);
}

.nav-link.active i {
  color: #fff; /* Aktifken ikon beyaz olsun */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* 4. SAĞ İÇERİK ALANI */
.terms-content-area {
  flex-grow: 1;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 600px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Tab Geçiş Animasyonları */
.tab-content {
  display: none;
  animation: fadeUp 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* İçerik Başlıkları */
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--main-accent);
  font-weight: 500;
  margin-bottom: 35px;
  font-size: 16px;
}

/* 5. KUTU TASARIMLARI (NEDEN BİZ GRID) */
.trust-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.trust-card-mini {
  background: rgba(0, 0, 0, 0.25);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.trust-card-mini:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255,255,255,0.1);
}

.trust-card-mini h3 {
  color: var(--text-white);
  font-size: 19px;
  margin: 18px 0 12px;
  font-weight: 700;
}

.trust-card-mini p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* İkon Kutuları ve SVG Ayarları */
.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.whyus-ico {
  width: 26px;
  height: 26px;
  color: #fff;
  fill: currentColor;
  display: block;
}

.icon-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.icon-orange { background: linear-gradient(135deg, #f97316, #ea580c); }

/* 6. METİN BLOKLARI (Hakkımızda vb.) */
.legal-text-block {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 16px;
}

.legal-text-block h3 {
  color: var(--text-white);
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.legal-text-block p {
  margin-bottom: 20px;
}

.legal-list {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-list li {
  margin-bottom: 12px;
  list-style-type: disc;
  color: var(--text-muted);
}
.legal-list li strong {
  color: var(--text-white);
}

/* İletişim Kutusu */
.contact-info-box {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--main-accent);
}
.contact-info-box p {
  margin: 10px 0;
  color: var(--text-white);
}

/* 7. RESPONSIVE (MOBİL) */
@media (max-width: 991px) {
  .terms-layout {
    flex-direction: column;
  }
  
  .terms-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
  
  .sidebar-sticky {
    padding: 10px;
    overflow-x: auto; /* Yan yana kaydırma */
  }

  .sidebar-nav {
    flex-direction: row;
    width: max-content; /* İçerik kadar geniş */
    gap: 10px;
  }
  
  .nav-link {
    white-space: nowrap;
    padding: 10px 15px;
    background: rgba(0,0,0,0.3);
  }
  
  .nav-link:hover {
    transform: none;
  }
  
  .trust-grid-mini {
    grid-template-columns: 1fr;
  }
  
  .acc-hero-title {
    font-size: 32px;
  }
}

/* =========================
   FIX PACK: Missing icon + hover flicker
   ========================= */

/* Sidebar’daki inline SVG ikon */
.nav-svg-ico{
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  flex: 0 0 24px;
}
.nav-svg-ico svg{
  width: 20px;
  height: 20px;
  display: block;
}

/* Hover/active ile aynı davranış */
.nav-link:hover .nav-svg-ico{ color: var(--main-accent); }
.nav-link.active .nav-svg-ico{ color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }

/* ✅ Flicker fix: kart hover’da background değiştirme -> overlay opacity */
.trust-card-mini{
  /* GPU stabilize (repaint/flicker azaltır) */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  -webkit-font-smoothing: antialiased;

  /* background artık sabit; hover efektini ::before ile vereceğiz */
  background: rgba(0, 0, 0, 0.25) !important;
}

/* overlay katmanı */
.trust-card-mini::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  opacity: 0;
  transition: opacity 0.25s ease;

  /* hover’da “kutunun gelmesi” hissini veren glow/overlay */
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

/* Hover: sadece opacity değişsin (flicker yok) */
.trust-card-mini:hover::before{ opacity: 1; }

/* Senin mevcut hover’ındaki background değişimini iptal edip sadece transform/border bırakıyoruz */
.trust-card-mini:hover{
  transform: translateY(-5px) translateZ(0);
  background: rgba(0, 0, 0, 0.25) !important; /* sabit */
  border-color: rgba(255,255,255,0.10);
}
