/* 
   Premium Logistics Theme - Custom Styles 
*/

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar customization for a premium feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1115; /* charcoal */
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffb703; /* accent */
}

/* Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(15, 17, 21, 0.95); /* charcoal */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Accordion transition for max-height */
.accordion-content {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
    padding-bottom: 0;
}

.accordion-container.active .accordion-content {
    max-height: 500px; /* arbitrary large max-height */
    padding-bottom: 1.25rem; /* pb-5 equivalent */
}

.accordion-container.active .icon {
    transform: rotate(45deg);
}

/* Custom form inputs removing autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #0f1115 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ensure mobile menu doesn't cause horizontal scroll */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ============================================================
   DENETİM DÜZELTMELERİ — 13.09.2026
   ============================================================ */

/* --- B7: sabit navbar altında kalan bölüm başlıkları --- */
section[id],
header[id] {
    scroll-margin-top: 88px;
}

/* --- A1 güvencesi: Tailwind'in .hidden'ı akordiyonu kapatmasın --- */
.accordion-content {
    display: block !important;
}

/* --- D3: appearance-none select'lere görünür ok --- */
#requestForm select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffb703' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.75rem;
}
#requestForm select option {
    background-color: #0f1115;
    color: #ffffff;
}

/* --- D4: klavye odak göstergesi --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ffb703;
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- D4: hareket hassasiyeti --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-up { opacity: 1; transform: none; }
}

/* --- Ekran okuyucu metni --- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Hukuki sayfalar (kvkk / gizlilik-politikasi / kullanim-kosullari)
   ============================================================ */
.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2.5rem 0 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #1f242c;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 1.75rem 0 0.6rem;
}
.legal-body p { margin-bottom: 1rem; }
.legal-body ul {
    list-style: disc;
    padding-left: 1.35rem;
    margin-bottom: 1.25rem;
}
.legal-body li { margin-bottom: 0.45rem; }
.legal-body strong { color: #ffffff; font-weight: 600; }
.legal-body a { color: #ffb703; text-underline-offset: 3px; text-decoration: underline; }
.legal-body a:hover { color: #ffffff; }
.legal-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
    background: #1a1d24;
    border: 1px solid #262c35;
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
}
.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.75rem;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
}
.legal-body th {
    text-align: left;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.7rem 0.9rem;
    background: #1a1d24;
    border-bottom: 1px solid #262c35;
    white-space: nowrap;
}
.legal-body td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #1f242c;
    vertical-align: top;
}
.legal-body tr:last-child td { border-bottom: 0; }
