/* GESU Arıtma - Ana Stil Dosyası */

/* ===== GENEL ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Başlıklar dengeli satır kırar (uluslararası dillerde de düzgün durur) */
h1, h2, h3 {
  text-wrap: balance;
}

/* Marka rengiyle metin seçimi */
::selection {
  background: rgba(0, 172, 233, 0.25);
  color: #0a0e1a;
}

/* ===== ERİŞİLEBİLİRLİK ===== */
/* İçeriğe atla — klavye kullanıcısı menüyü atlayabilsin (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100000;
  background: #2b4a99;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* Klavye ile gezenler için görünür odak halkası */
:focus-visible {
  outline: 3px solid #00ace9;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hareket hassasiyeti olan kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up, .fade-in, .slide-left, .slide-right {
    opacity: 1;
    transform: none;
  }
}

/* İnce, markalı kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2b4a99, #00ace9);
  border-radius: 5px;
}

/* ===== PREMIUM KART — hover'da gradient kenarlık ===== */
.grad-card {
  position: relative;
  border-radius: 1rem;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.grad-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #00ace9, #2b4a99 55%, #e85e0c);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.grad-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -25px rgba(43, 74, 153, 0.45);
}
.grad-card:hover::before { opacity: 1; }

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ===== MÜŞTERİ LOGO DUVARI ===== */
.logo-wall-item {
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-wall-item:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* ===== SCROLLBAR GİZLE ===== */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== PATTERN STRIPE ===== */
.pattern-stripe {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #2b4a99 0px, #2b4a99 8px,
    #00ace9 8px, #00ace9 16px,
    #e85e0c 16px, #e85e0c 24px
  );
}

/* ===== SLOGAN - KAZAN VURGUSU ===== */
.kazan-text {
  color: #e85e0c;
  font-weight: 700;
}

/* ===== MEGA MENÜ ===== */
.mega-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  background: white;
  border-top: 3px solid #2b4a99;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 2rem 0;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mega-menu-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2b4a99;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #00ace9;
}

.mega-menu-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s;
}

.mega-menu-col a:hover {
  color: #2b4a99;
  padding-left: 0.5rem;
}

/* ===== DROPDOWN (basit menüler) ===== */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  border-top: 3px solid #2b4a99;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border-radius: 0 0 8px 8px;
  z-index: 100;
  padding: 0.5rem 0;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: #f0f7ff;
  color: #2b4a99;
}

/* ===== HERO ===== */
.hero-gradient {
  background: linear-gradient(135deg, rgba(43,74,153,0.85) 0%, rgba(0,172,233,0.6) 50%, rgba(43,74,153,0.75) 100%);
}

/* ===== SAYAÇ ANİMASYONU ===== */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* ===== SCROLL ANİMASYONLARI ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== KART HOVER ETKİLERİ ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(43,74,153,0.15);
}

/* ===== FOTOĞRAF ŞERİDİ ===== */
.photo-strip {
  display: flex;
  gap: 16px;
  animation: scroll-strip 60s linear infinite;
  width: max-content;
}

.photo-strip img {
  min-width: 360px;
  max-width: 480px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .photo-strip img {
    min-width: 280px;
    max-width: 360px;
  }
}

@keyframes scroll-strip {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.photo-strip:hover {
  animation-play-state: paused;
}

/* ===== BREADCRUMB ===== */
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  color: white;
  font-weight: 500;
}

/* ===== TABLO STİLLERİ ===== */
.tech-table th {
  background: #2b4a99;
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
}

.tech-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.tech-table tr:hover td {
  background: #f0f7ff;
}

/* ===== BADGE / ETİKET ===== */
.badge-blue {
  background: rgba(43,74,153,0.1);
  color: #2b4a99;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-turquoise {
  background: rgba(0,172,233,0.1);
  color: #0891b2;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-orange {
  background: rgba(232,94,12,0.1);
  color: #e85e0c;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== STAR ÜRÜN VURGUSU ===== */
.star-product {
  position: relative;
  border: 2px solid #e85e0c;
}

.star-product::before {
  content: '★';
  position: absolute;
  top: -12px;
  right: 12px;
  background: #e85e0c;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ===== MOBİL MENÜ ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: white;
  z-index: 999;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

.mobile-menu-panel.active {
  right: 0;
}

.mobile-accordion-content {
  display: none;
  padding-left: 1rem;
}

.mobile-accordion-content.active {
  display: block;
}

/* ===== FOOTER ===== */
footer a {
  transition: color 0.2s;
}

footer a:hover {
  color: #00ace9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .mega-menu-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== RTL DESTEĞİ (Arapça) ===== */
[dir="rtl"] .slide-left {
  transform: translateX(40px);
}

[dir="rtl"] .slide-right {
  transform: translateX(-40px);
}

[dir="rtl"] .mega-menu-col a:hover {
  padding-left: 0;
  padding-right: 0.5rem;
}

[dir="rtl"] .mobile-menu-panel {
  right: auto;
  left: -100%;
}

[dir="rtl"] .mobile-menu-panel.active {
  left: 0;
}

/* ===== LEAD CAPTURE POPUP ===== */
#gesu-lead-popup {
  animation: popupFadeIn 0.3s ease;
}

#gesu-lead-popup.hidden {
  display: none;
}

#gesu-lead-popup > div:last-child > div {
  animation: popupSlideUp 0.4s ease;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== NEWSLETTER FORM ===== */
#gesu-newsletter input[type="email"]:focus {
  outline: none;
}

#gesu-newsletter .lead-message:empty {
  display: none;
}

/* ===== RTL — LEAD CAPTURE ===== */
[dir="rtl"] #gesu-lead-popup .absolute.top-4.right-4 {
  right: auto;
  left: 1rem;
}

/* ===== İÇERİK KORUMA (2026-07-16 KALDIRILDI) =====
   Cem'in 07.07 şikâyeti ("yazıları kopyalayamıyorum") + AEO gerekçesi:
   metin seçimi/kopyalama engeli hırsızlığı DURDURMAZ (ekran görüntüsüyle aşılır),
   yalnız gerçek ziyaretçiyi ve okunabilirliği baltalar. Fotoğraf koruması artık
   filigran + EXIF/IPTC telif + DMCA yoluyla yapılır (bkz. hafıza: görsel koruma).
   Bu blok bilerek boşaltıldı; geri getirilmeyecek. */

/* ===== HERO — gerçek tesis karesi, yavaş zoom (stok video yerine, 24.07) ===== */
.hero-kens {
  animation: hero-zoom 28s ease-in-out infinite alternate;
  transform-origin: 60% 55%;
  will-change: transform;
}
@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kens { animation: none; transform: scale(1.04); }
}

/* ===== MARKA TURUNCUSU — OKUNABİLİRLİK AYARI (Cem 06.08: "kendi istediğin tona ayarla,
   önemli olan süper durması") =====
   Ölçüm: #e85e0c zemininde beyaz yazı = 3.48 kontrast. WCAG AA 4.5 istiyor; "Teklif Al"
   butonu 118 sayfada bu sınırın altındaydı.
   Seçilen: #c94a08 → 4.70 (AA geçer). Marka turuncusunun karakteri korunuyor, yalnız bir
   tık derinleşiyor — beyaz yazı net okunuyor, buton daha "dolu" duruyor.
   ÖNEMLİ: yalnız ZEMİN değişti. Turuncu METİN (text-gesu-orange) dokunulmadı; koyu zemindeki
   vurgular zaten açık tona (#ffa552) çekilmişti. */
.bg-gesu-orange { background-color: #c94a08; }
a.bg-gesu-orange:hover, button.bg-gesu-orange:hover,
.hover\:bg-orange-600:hover { background-color: #ab3d06; }
/* turuncu kenarlık da aynı derinliğe */
.border-gesu-orange { border-color: #c94a08; }

/* Yalnız ekran okuyucuya görünen metin — Tailwind derlemesinde bu sınıf ÜRETİLMEMİŞ,
   o yüzden gizli olması gereken metinler ekranda görünüyordu (tablo başlığı, ikon açıklamaları). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.not-sr-only { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal; }
