/* ============================================================
   Yolgöz Landing - modern header/footer + hafif SVG/CSS animasyonlar
   ============================================================ */

/* ---------- Dil dropdown (native <details>, JS gerekmez) ---------- */
.lang-dropdown { position: relative; }
.lang-dropdown summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px;
  user-select: none;
}
.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-dropdown[open] summary { border-color: var(--teal); color: var(--teal); }
.lang-dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
  background: var(--bg-panel); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 6px; min-width: 160px; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.35);
}
.lang-dd-menu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 7px;
  font-size: 13.5px; color: var(--text-dim);
}
.lang-dd-menu a:hover { background: var(--bg-panel-2); color: var(--text); }
.lang-dd-menu a.active { color: var(--teal); background: var(--teal-dim); font-weight: 600; }

@media (max-width: 860px) {
  .lang-dropdown { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.hide-mobile { display: inline-flex; }

.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; cursor: pointer;
}
.mobile-menu-toggle span { width: 16px; height: 2px; background: var(--text); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; max-height: 0; overflow: hidden;
  transition: max-height .25s ease; border-top: 1px solid var(--line);
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav a { padding: 14px 28px; font-size: 14.5px; color: var(--text-dim); border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .nav-links, .nav-cta .lang-switch, .nav-cta .theme-switch, .hide-mobile { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 50px 28px 24px; }
.footer-grid {
  max-width: 1180px; margin: 0 auto 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--text-faint);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Hareketli otobüs animasyonu (yol üzerinde, üzerinde "YOLGÖZ" yazan) ---------- */
.bus-track { position: relative; height: 76px; overflow: hidden; margin: 4px 0; }
.bus-track .track-line {
  position: absolute; bottom: 16px; left: 18px; right: 18px; height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--teal) 0 9px, transparent 9px 16px);
}
.bus-track .track-dot { position: absolute; bottom: 11px; width: 11px; height: 11px; border-radius: 50%; }
.bus-track .track-dot.start { left: 12px; background: var(--teal); }
.bus-track .track-dot.end { right: 12px; background: var(--amber); }
.bus-icon { position: absolute; bottom: 6px; left: 0; animation: busDrive 8s linear infinite; }
.bus-icon svg { display: block; width: 92px; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15)); }
@keyframes busDrive {
  0% { left: 0; }
  92% { left: calc(100% - 92px); }
  100% { left: calc(100% - 92px); }
}
@media (prefers-reduced-motion: reduce) { .bus-icon { animation: none; left: 40%; } }

/* ---------- Hero görsel: canlı gösterge paneli ---------- */
.hero-visual {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25);
}
.hero-visual-head { display: flex; justify-content: space-between; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero-visual-head b { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em; }
.hero-visual-head span { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.hv-row { display: flex; align-items: center; justify-content: space-between; background: rgba(127,127,127,0.05); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin-bottom: 10px; }
.hv-row-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.hv-dot { width: 9px; height: 9px; border-radius: 50%; position: relative; flex: none; }
.hv-dot::after { content:""; position:absolute; inset:-5px; border-radius:50%; border:1px solid currentColor; opacity:.35; }
.hv-dot.teal { background: var(--teal); color: var(--teal); animation: hvPulse 2.4s ease-in-out infinite; }
.hv-dot.amber { background: var(--amber); color: var(--amber); animation: hvPulse 1.2s ease-in-out infinite; }
.hv-badge { font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; border-radius: 5px; }
.hv-badge.teal { color: var(--teal); background: var(--teal-dim); }
.hv-badge.amber { color: var(--amber); background: var(--amber-dim); }
@keyframes hvPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* Gözün taranması - "canlı izleme" hissi veren döngüsel animasyon */
.eye-scan-wrap { display: flex; align-items: center; justify-content: center; padding: 26px 0; }
.eye-scan { position: relative; width: 92px; height: 92px; }
.eye-scan svg { width: 100%; height: 100%; }
.eye-scan .scan-line {
  position: absolute; left: 6%; width: 88%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scanMove 2.6s ease-in-out infinite;
}
@keyframes scanMove { 0% { top: 30%; opacity: 0; } 15% { opacity: 1; } 50% { top: 68%; } 85% { opacity: 1; } 100% { top: 30%; opacity: 0; } }

/* Rota üzerinde ilerleyen nokta - "sefer takibi" hissi */
.route-anim .route-dash { stroke-dasharray: 6 6; animation: dashMove 1.6s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -24; } }

/* Sayı sayaçları / istatistik şeridi */
.stat-strip { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-strip b { display: block; font-family: var(--font-mono); font-size: 24px; }
.stat-strip span { font-size: 12px; color: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
  .hv-dot, .scan-line, .route-dash { animation: none !important; }
}
