/* ==========================================================================
   Yol Kargo – Özel CSS
   Tailwind'i tamamlayan marka stilleri, animasyonlar ve bileşenler.
   ========================================================================== */

/* --- Font Import ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Değişkenleri / Marka Renkleri ----------------------------------- */
:root {
  --orange-primary:  #F97316; /* orange-500 */
  --orange-dark:     #EA580C; /* orange-600 */
  --orange-light:    #FFF7ED; /* orange-50  */
  --black-primary:   #111827; /* gray-900   */
  --black-secondary: #1F2937; /* gray-800   */
  --gray-soft:       #F9FAFB;
  --border-soft:     #E5E7EB;
  --text-muted:      #6B7280;
}

/* --- Temel Sıfırlama ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--black-primary);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* --- Tipografi ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--black-primary);
  line-height: 1.2;
}

/* --- Navbar -------------------------------------------------------------- */
#navbar {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  background-color: #ffffff !important;
}

/* --- Full-Screen Mobil Overlay Menü ------------------------------------ */
.mob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Başlangıçta gizli */
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mob-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Header */
.mob-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.mob-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mob-close-btn:hover { background: rgba(255,255,255,0.15); }

/* Nav */
.mob-overlay-nav {
  flex: 1;
  padding: 0.5rem 0;
}

.mob-link {
  display: block;
  padding: 1rem 1.25rem;
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.15s, background 0.15s;
}
.mob-link:hover, .mob-link.active { color: #fb923c; background: rgba(251,146,60,0.06); }

/* Accordion */
.mob-accordion {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mob-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  transition: color 0.15s, background 0.15s;
}
.mob-accordion-btn:hover { color: #fb923c; background: rgba(251,146,60,0.06); }

.mob-acc-arrow {
  width: 20px; height: 20px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.mob-acc-arrow.rotated { transform: rotate(180deg); color: #fb923c; }

.mob-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0,0,0,0.2);
}
.mob-accordion-body.open { max-height: 300px; }

.mob-sub-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.15s;
}
.mob-sub-link:last-child { border-bottom: none; }
.mob-sub-link:hover, .mob-sub-link.active { color: #fb923c; }
.mob-sub-link--muted { color: #64748b; }

.mob-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #f97316;
  color: #fff;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 6px;
}

/* Footer */
.mob-overlay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mob-footer-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.mob-lang-select {
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.08);
  color: #f1f5f9;
  cursor: pointer;
}
.mob-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mob-social-icon:hover { background: rgba(249,115,22,0.15); color: #fb923c; }

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--black-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange-primary);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobil menü */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

/* --- Dil Seçici ------------------------------------------------------------ */
.lang-btn {
  color: #6B7280;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  background-color: #FFF7ED;
  color: var(--orange-primary);
}

.lang-btn-active {
  background-color: #111827;
  color: #ffffff !important;
}

/* --- Navbar Dropdown -------------------------------------------------------- */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  min-width: 210px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-wrapper:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: #FFF7ED;
  color: var(--orange-primary);
}

/* --- Butonlar ------------------------------------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--orange-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid var(--orange-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--orange-primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid var(--orange-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: var(--orange-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--black-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid var(--black-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-dark:hover {
  background-color: var(--black-secondary);
  transform: translateY(-1px);
}

/* --- Kart Bileşeni ------------------------------------------------------- */
.card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: var(--orange-primary);
}

.card-orange-icon {
  width: 52px;
  height: 52px;
  background-color: var(--orange-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--orange-primary);
}

/* --- Form Stilleri ------------------------------------------------------- */
.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--black-primary);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.form-input::placeholder { color: #9CA3AF; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black-secondary);
  margin-bottom: 0.4rem;
}

/* --- Kargo Sorgulama Alanı ----------------------------------------------- */
.tracking-wrapper {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  padding: 2rem;
}

.tracking-result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 10px;
  display: none;
}

.tracking-result.success {
  background-color: #F0FDF4;
  border: 1px solid #86EFAC;
  display: block;
}

.tracking-result.error {
  background-color: #FFF7ED;
  border: 1px solid var(--orange-primary);
  display: block;
}

.tracking-result.loading {
  background-color: var(--gray-soft);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Spinner ------------------------------------------------------------- */
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(249,115,22,0.2);
  border-top-color: var(--orange-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Hero Bölümü --------------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #FFF7ED 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Bölüm Başlıkları ---------------------------------------------------- */
.section-badge {
  display: inline-block;
  background-color: var(--orange-light);
  color: var(--orange-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--black-primary);
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

/* --- İstatistik Sayaçları ------------------------------------------------ */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* --- Hizmet Kartları ------------------------------------------------------ */
.service-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--orange-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

/* --- Footer ------------------------------------------------------------- */
.footer-link {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--orange-primary); }

/* Açık (beyaz) arka planlı footer için linkler */
.footer-link-light {
  color: #6B7280;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link-light:hover { color: var(--orange-primary); }

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #ffffff;
}

/* --- Şube Kartı ---------------------------------------------------------- */
.branch-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.branch-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  border-color: var(--orange-primary);
}

/* --- Filtre Butonları (Şubeler) ----------------------------------------- */
.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border-soft);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  color: var(--black-secondary);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #ffffff;
}

/* --- Başvuru Kartı ------------------------------------------------------- */
.apply-card {
  background: linear-gradient(135deg, #ffffff, #FFF7ED);
  border: 1px solid #FED7AA;
  border-radius: 14px;
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.apply-card:hover {
  box-shadow: 0 10px 32px rgba(249,115,22,0.12);
  transform: translateY(-3px);
}

/* --- WhatsApp Bölümü ----------------------------------------------------- */
.whatsapp-badge {
  background-color: #25D366;
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Alert / Bildirim ---------------------------------------------------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #86EFAC; }
.alert-error   { background: #FFF7ED; color: #C2410C; border: 1px solid #FDBA74; }
.alert-info    { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

/* --- Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--orange-primary); }

.breadcrumb-sep::after {
  content: '/';
  margin: 0 0.25rem;
}

/* --- Sayfa İç Başlıklar -------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--black-primary) 0%, #1F2937 100%);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(249,115,22,0.08));
  pointer-events: none;
}

/* --- SSS (Accordion) ----------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-icon { transition: transform 0.3s ease; }
.faq-icon.rotated { transform: rotate(45deg); }

/* --- Responsive Yardımcılar ---------------------------------------------- */
@media (max-width: 640px) {
  .section-title { font-size: 1.75rem; }
  .tracking-wrapper { padding: 1.25rem; }
}

/* --- WhatsApp Sabit Butonu ----------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #ffffff;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}

/* --- Yukarı Çık Butonu --------------------------------------------------- */
#back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background-color: #111827;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--orange-primary);
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}
