/* BASE (global) styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

:root {
  /* Başlık fontu (istersen sonra tek yerden değiştiririz) */
  --font-heading: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Güvenlik: istenmeyen yatay kaydırmayı engelle */
html, body {
  overflow-x: hidden;
}

/* Scroll Animations */
/* JavaScript yüklenene kadar içerikler görünür olsun */
.animate-on-scroll {
  opacity: 1;
  transform: none;
}

/* JavaScript yüklendikten sonra animasyonlar aktif olsun */
body.js-loaded .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.js-loaded .animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

body.js-loaded .animate-on-scroll.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

body.js-loaded .animate-on-scroll.fade-in.animated {
  opacity: 1;
}

body.js-loaded .animate-on-scroll.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

body.js-loaded .animate-on-scroll.slide-up.animated {
  opacity: 1;
  transform: translateY(0);
}

body.js-loaded .animate-on-scroll.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

body.js-loaded .animate-on-scroll.slide-left.animated {
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .animate-on-scroll.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

body.js-loaded .animate-on-scroll.slide-right.animated {
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .animate-on-scroll.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.js-loaded .animate-on-scroll.scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

.main-content { flex: 1; }

/* Shared tracking widget */
.tracking-widget { padding: 30px 20px; }
.tracking-form { max-width: 820px; margin: 0 auto; }
.tracking-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.tracking-label { font-size: 16px; font-weight: 600; color: #333; white-space: nowrap; }
.tracking-input {
  flex: 1;
  height: 46px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}
.tracking-input:focus {
  border-color: #18ccff;
  box-shadow: 0 0 0 3px rgba(24, 204, 255, 0.18);
}
.tracking-button {
  height: 46px;
  min-width: 120px;
  border: 0;
  border-radius: 8px;
  background: #18ccff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.tracking-button:hover { filter: brightness(0.95); }

/* Header / Nav */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
}
.logo { height: 50px; padding-left: 20px; }
.logo-link { display: inline-flex; align-items: center; height: 100%; text-decoration: none; }
.logo img { height: 100%; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; padding-right: 20px; }
.nav-item { position: relative; }
.nav-link {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s;
  cursor: pointer;
}
.nav-link:hover { color: #18ccff; }
.login-link { color: #18ccff; }
.login-link:hover { color: #18ccff; }

.nav-item.has-dropdown::after {
  content: '▼';
  font-size: 10px;
  margin-left: 5px;
  color: #666;
  transition: transform 0.3s;
  display: inline-block;
}
.nav-item.has-dropdown:hover::after { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -10px);
  background: #fff;
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  list-style: none;
  padding: 10px 0;
  margin-top: 10px;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown-item { padding: 0; }
.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.dropdown-link:hover { background: #f8f9fa; color: #18ccff; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding-right: 20px;
}
.mobile-menu-toggle span { width: 25px; height: 3px; background: #333; transition: all 0.3s; }

/* Footer */
footer, .site-footer {
  background: #18ccff;
  color: #111;
  padding: 40px 20px;
  margin-top: auto;
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.footer-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-list { list-style: disc; padding-left: 18px; margin: 0; }
.footer-list li { margin: 8px 0; }
.footer-link { color: #111; text-decoration: none; font-size: 15px; line-height: 1.35; }
.footer-link:hover { text-decoration: underline; color: #111; }
.footer-social {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #111;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-social-link:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}
.footer-social-link svg {
  width: 24px;
  height: 24px;
}
.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.footer-copy { font-size: 14px; opacity: 0.95; }
.footer-powered-link { color: #111; text-decoration: none; font-size: 14px; opacity: 0.9; }
.footer-powered-link:hover { text-decoration: underline; opacity: 1; }

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }

  .tracking-input {
    height: 56px;
    font-size: 17px;
  }
  .tracking-button {
    height: 56px;
  }

  nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    transition: right 0.3s;
    overflow-y: auto;
    z-index: 999;
  }
  nav.active { right: 0; }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
    display: flex;
    width: 100%;
    height: 100%;
  }
  .nav-item { width: 100%; border-bottom: 1px solid #eee; }
  .nav-link { display: block; padding: 15px 0; width: 100%; }

  /* Mobilde dropdown’ı “Sanal Şube” altında iki item olarak göster */
  .nav-item.has-dropdown::after { display: none; }
  .dropdown-menu {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: 100%;
    padding: 0;
    background: transparent;
    list-style: none;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    min-width: auto;
  }
  .dropdown-item { width: 100%; border-bottom: 1px solid #eee; padding: 0; }
  .dropdown-link { display: block; padding: 15px 0 15px 30px; color: #333; text-decoration: none; }

  /* Tracking widget responsive */
  .tracking-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .tracking-button { width: 100%; min-width: 0; }

  /* Footer responsive */
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-title { font-family: Arial, Helvetica, sans-serif; font-size: 15px; margin-bottom: 8px; }
  .footer-list { padding-left: 14px; }
  .footer-link { font-size: 12px; }
  .footer-social { margin-top: 24px; padding-top: 16px; gap: 16px; }
  .footer-social-link { width: 36px; height: 36px; }
  .footer-social-link svg { width: 20px; height: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}