/* Sürüş aktarma tanıtımı: ana sayfa, uygulama ve "alternatifi" sayfaları.
   Wikiloc, Calimoto, Strava, Garmin… GPX/FIT/TCX/KML kayıtları MotoAtlas günlüğüne. */
.import-promo.import-promo {
  --ip-card: var(--card, #fff);
  --ip-border: var(--border, #e0d7d3);
  --ip-fg: var(--fg, #1c1718);
  --ip-muted: var(--muted-fg, #665b58);
  --ip-red: var(--primary, #c41e1a);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px;
  max-width: 1240px;
  margin: 32px auto;
  padding: 36px 36px 36px 44px;
  border: 1px solid var(--ip-border);
  border-radius: 24px;
  background: var(--ip-card);
  color: var(--ip-fg);
  text-align: left;
}
.import-promo.import-promo .import-promo-copy { display: grid; gap: 14px; align-content: center; }
.import-promo-label {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ip-red);
}
.import-promo.import-promo h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.import-promo.import-promo p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ip-muted); }
.import-promo-sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.import-promo-sources li {
  padding: 5px 11px;
  border: 1px solid var(--ip-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ip-fg);
}
.import-promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.import-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 12px;
  background: #c72b24;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.import-promo-cta:hover { background: #ac231e; }
.import-promo-more { font-size: 14px; font-weight: 700; color: var(--ip-fg); }
.import-promo-visual { margin: 0; border-radius: 16px; overflow: hidden; background: #ece7e1; line-height: 0; }
.import-promo-visual video { display: block; width: 100%; height: auto; aspect-ratio: 760 / 420; }
@media (max-width: 960px) {
  .import-promo.import-promo { grid-template-columns: 1fr; gap: 24px; padding: 28px; margin: 24px 16px; }
}
@media (max-width: 560px) {
  .import-promo.import-promo { padding: 22px 18px; border-radius: 20px; margin: 20px 12px; }
  .import-promo-visual video { aspect-ratio: 400 / 340; }
  .import-promo-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .import-promo-visual video { animation: none; }
}

/* Üst menüdeki kırmızı "Sürüşlerini aktar" düğmesi (route-header olan sayfalar) */
.route-import {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #c72b24;
  border-radius: 9px;
  background: #c72b24;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.route-import:hover { background: #ac231e; border-color: #ac231e; color: #fff; }
@media (max-width: 380px) {
  .route-header .route-import { padding: 8px 12px; font-size: 12px; }
}
@media (max-width: 1120px) {
  .route-surface.community-explore .route-import { display: none; }
}

/* Ana sayfa: tam genişlik "Eski sürüşlerini aktar" afişi. Önce yalnız animasyon oynar;
   altı sürüş aktarılınca görüntü bulanıklaşır, başlık ve düğmeler ortaya çıkar. Afişin
   tamamı aktarmaya götürür, "Daha fazla bilgi" ayrıntılı tanıtıma. */
.import-hero {
  position: relative;
  isolation: isolate;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border, #e0d7d3);
  border-radius: 16px;
  background: #ece7e1;
  aspect-ratio: 1120 / 320;
  min-height: 260px;
  color: #fff;
}
.import-hero video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.import-hero-hit { position: absolute; inset: 0; z-index: 1; }
.import-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, rgb(24 18 17 / 0.42), rgb(24 18 17 / 0.62));
  opacity: 0;
  transition: opacity 0.7s ease;
}
.import-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.25s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.import-hero-label { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; color: rgb(255 255 255 / 0.82); }
.import-hero.import-hero h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.import-hero.import-hero p { margin: 0; font-size: 15px; line-height: 1.5; color: rgb(255 255 255 / 0.86); }
.import-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 4px; }
.import-hero-more {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 12px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.import-hero-actions a { height: 46px; min-height: 0; padding: 0 20px; font-size: 15px; }
.import-hero-more:hover { background: rgb(255 255 255 / 0.12); }
.import-hero[data-state='done'] video { filter: blur(14px) saturate(0.9); transform: scale(1.06); }
.import-hero[data-state='done'] .import-hero-veil { opacity: 1; }
.import-hero[data-state='done'] .import-hero-copy,
.import-hero:focus-within .import-hero-copy { opacity: 1; transform: none; }
.import-hero[data-state='done'] .import-hero-actions a,
.import-hero:focus-within .import-hero-actions a { pointer-events: auto; }
.import-hero:focus-within video { filter: blur(14px); }
.import-hero:focus-within .import-hero-veil { opacity: 1; }
@media (max-width: 560px) {
  .import-hero { aspect-ratio: 1 / 1; }
  .import-hero.import-hero p { font-size: 15px; }
  .import-hero-copy { gap: 10px; padding: 20px; }
  .import-hero.import-hero h2 { font-size: 30px; }
  .import-hero-actions { display: grid; width: 100%; max-width: 260px; gap: 10px; margin-top: 6px; }
  .import-hero-actions a { width: auto; height: 48px; min-height: 0; padding: 0 18px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .import-hero video, .import-hero-veil, .import-hero-copy { transition: none; }
}

/* Karanlık tema: açık renkli animasyon gözü almasın; kenarlardan sayfanın siyahına geçiş */
html:not([data-theme='light']) .import-hero { border-color: #2a2427; background: #0d0c0e; }
html:not([data-theme='light']) .import-hero video { filter: brightness(0.74) saturate(0.92); }
html:not([data-theme='light']) .import-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(13 12 14 / 0.82) 0%, rgb(13 12 14 / 0.18) 22%, rgb(13 12 14 / 0) 50%, rgb(13 12 14 / 0.18) 78%, rgb(13 12 14 / 0.82) 100%),
    linear-gradient(180deg, rgb(13 12 14 / 0.35) 0%, rgb(13 12 14 / 0) 30%, rgb(13 12 14 / 0) 62%, rgb(13 12 14 / 0.75) 100%);
  transition: opacity 0.7s ease;
}
html:not([data-theme='light']) .import-hero[data-state='done'] video { filter: blur(14px) brightness(0.6) saturate(0.9); }
html:not([data-theme='light']) .import-hero[data-state='done']::after { opacity: 0.6; }
