/* ============================================================
   LojiTrans — premium katman (Tailwind CDN üzerine)
   ============================================================ */
body {
    font-feature-settings: 'ss01' on;
    scroll-behavior: smooth;
}

/* Scroll reveal ve hero parallax */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
[data-reveal="fade-left"] { transform: translate3d(32px, 0, 0); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.lgt-hero-photo {
    will-change: transform;
    transition: transform .12s linear;
}

/* Hero yüzen kart animasyonu */
.lgt-float-card {
    animation: lgtFloat 6s ease-in-out infinite;
}
@keyframes lgtFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Rota çizgisi dash animasyonu */
.lgt-route {
    animation: lgtDash 1.6s linear infinite;
}
@keyframes lgtDash {
    to { stroke-dashoffset: -44; }
}

/* Takip sonuç kartı */
.lgt-track-card .timeline-item {
    position: relative;
    padding-left: 1.75rem;
    padding-bottom: 1.1rem;
}
.lgt-track-card .timeline-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .2);
}
.lgt-track-card .timeline-item::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: -2px;
    width: 2px;
    background: #E2E8F0;
}
.lgt-track-card .timeline-item:last-child::after { display: none; }
.lgt-track-card .timeline-item:first-child::before {
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .2);
}

/* Form uyarıları */
.lgt-alert-ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.lgt-alert-err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* Mobil sabit CTA — yalnızca küçük ekranda */
.lgt-mobile-cta { display: none !important; }
.lgt-mobile-cta > div { width: 100%; }
@media (max-width: 640px) {
    .lgt-mobile-cta { display: flex !important; }
    body { padding-bottom: 72px; }
    footer { padding-bottom: 0; }
}

/* Admin yerine frontend düzeni: uzun kelimeler */
.break-words { overflow-wrap: break-word; }

/* Prose başlık aralığı */
.prose h2 { margin-top: 1.75em; }
.prose h3 { margin-top: 1.4em; }

/* İnce scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Odak halkası erişilebilirlik */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* details/summary hover */
details summary:hover { color: #2751E1; }

/* Sayfa geçişinde hafif fade */
main { animation: lgtFade .4s ease; }
@keyframes lgtFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* Print */
@media print {
    header, footer, .lgt-mobile-cta, nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .lgt-hero-photo { transition: none; }
    .lgt-float-card, .lgt-route, main { animation: none; }
}
