/* static/css/footer.css — site footer'ı (13 Eki 2026 sade tasarım).
   Şablon: templates/includes/_footer.html. İç düzen kendi kabında (.sf-wrap):
   Bootstrap grid'ine ve .page-wrapper'a bağlı değil; ölçüler px, kök yazı
   boyutu farklı sayfalarda (13/16px) aynı çizilir.
   Kök .site-footer'ın konumu/alt menü boşluğu/notch payı base_core.css ve
   mobile_enhancements.css'te; burada yalnız görünüm. */

.site-footer {
    --sf-bg: #141D33;
    --sf-text: #AEB8CC;
    --sf-link: #D5DCE8;
    --sf-head: #A6CEE6;
    --sf-line: rgba(255, 255, 255, .09);
    background: var(--sf-bg);
    background-image: none;
    color: var(--sf-text);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    border-top: 0;
    padding-top: 0;
    width: 100%;
    margin-top: 0 !important;
    position: relative;
    z-index: 10;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.site-footer a { color: var(--sf-link); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible,
.site-footer button:focus-visible { outline: 2px solid var(--sf-head); outline-offset: 3px; border-radius: 4px; }
/* Sıfırlamalar özgüllüksüz (:where): .sf-* boşluklarını ezmesin. */
:where(.site-footer) ul { list-style: none; margin: 0; padding: 0; }
:where(.site-footer) p { margin: 0; }

.sf-wrap {
    width: 100%;
    max-width: 1288px;
    margin: 0 auto;
    padding: 64px 24px 28px;
}

/* --- Üst: marka + dört sütun --- */
.sf-top {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr);
    gap: 56px;
}
.sf-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
/* Ölçü sabit: sitenin mobil CSS'i img'lere genişlik veriyor; zemin: critical_head.css img zeminini ezer. */
.site-footer .sf-logo img { display: block; flex: none; width: 27px; height: 30px; max-width: none; background: none; }
.site-footer .sf-pay img { max-width: none; }
.sf-tagline { margin-top: 14px; max-width: 26em; color: var(--sf-text); font-size: 14.5px; }

.sf-contact { display: grid; gap: 8px; margin-top: 22px; }
.sf-contact a,
.sf-addr { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.sf-addr { display: flex; margin-top: 8px; }
.sf-contact i,
.sf-addr i {
    display: inline-grid; place-items: center; flex: none;
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(166, 206, 230, .10); color: var(--sf-head); font-size: 13px;
}
.sf-contact i::before,
.sf-addr i::before { line-height: 1; vertical-align: 0; }

.sf-social { display: flex; gap: 8px; margin-top: 22px; }
.sf-social a {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--sf-line); color: var(--sf-link); font-size: 15px;
    transition: background-color .15s, border-color .15s, color .15s;
}
.sf-social a:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }

.sf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.sf-heading {
    margin-bottom: 14px;
    color: var(--sf-head); font-size: 12px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
}
/* Sütun başlıkları <summary>: masaüstünde düz başlık gibi görünür, işaretçi yok. */
.sf-col > summary { display: block; list-style: none; cursor: default; }
.sf-col > summary::-webkit-details-marker { display: none; }
.sf-col li + li { margin-top: 9px; }
.sf-col a { font-size: 14px; }

/* --- İlçe bülteni (newsletter_form, variant=footer) --- */
.sf-newsletter { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--sf-line); }
/* Aç-kapa düğmesi yalnız telefonda; masaüstünde form hep açık. */
.sf-nl-toggle { display: none; }
.newsletter-form__title { font-weight: 600; margin-bottom: .5rem; }
.newsletter-form--footer .newsletter-form__title,
.newsletter-form--footer .form-label,
.newsletter-form--footer .form-check-label { color: #CBD5E1; }
.newsletter-form--footer .form-check-label a { color: #E2E8F0; }
.newsletter-form--footer .newsletter-form__status.text-success { color: #86EFAC !important; }
.newsletter-form--footer .newsletter-form__status.text-danger { color: #FCA5A5 !important; }

/* --- Alt bant: telif + yasal + ödeme --- */
.sf-bottom {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
    margin-top: 48px; padding-top: 22px;
    border-top: 1px solid var(--sf-line);
    font-size: 12.5px;
}
.sf-copy { color: #8A95AB; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1 1 420px; }
.sf-legal a,
.sf-legal button {
    padding: 0; border: 0; background: none;
    color: #8A95AB; font: inherit; cursor: pointer;
    transition: color .15s;
}
.sf-legal a:hover, .sf-legal button:hover { color: #fff; }
.sf-pay { display: flex; gap: 6px; margin-left: auto; }
.sf-pay img {
    display: block; width: 38px; height: 24px;
    padding: 3px 5px; border-radius: 5px; background: #fff; object-fit: contain;
    opacity: .9;
}

/* --- Tablet --- */
@media (max-width: 1080px) {
    .sf-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .sf-tagline { max-width: none; }
}

/* --- Telefon: kısa footer — aç-kapa sütunlar, ikon satırı, katlanır bülten, sıkı yasal ızgara --- */
@media (max-width: 640px) {
    .sf-wrap { padding: 36px 16px 20px; }
    .sf-top { gap: 28px; }

    /* Marka bloğu: iletişim + sosyal ikonları tek satırda, adres altta. */
    .sf-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .sf-logo, .sf-tagline { flex: 0 0 100%; }
    .sf-tagline { margin: 6px 0 10px; font-size: 14px; }
    .sf-contact, .sf-social { display: flex; gap: 8px; margin: 0; }
    .sf-contact i {
        width: 40px; height: 40px; border-radius: 12px; font-size: 16px;
    }
    .sf-contact a { gap: 0; }
    .sf-contact__label {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    .sf-social a { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
    .sf-addr { order: 1; flex: 0 0 100%; margin-top: 6px; gap: 6px; font-size: 13px; }
    .sf-addr i { width: auto; height: auto; background: none; font-size: 13px; }

    /* Link sütunları: alt alta aç-kapa satırları. */
    .sf-cols { display: block; border-top: 1px solid var(--sf-line); }
    .sf-col { border-bottom: 1px solid var(--sf-line); }
    .sf-col > summary {
        display: flex; align-items: center; justify-content: space-between;
        margin: 0; padding: 15px 0; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .sf-col > summary::after,
    .sf-nl-toggle::after {
        content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg); transition: transform .2s;
    }
    .sf-col[open] > summary::after,
    .sf-newsletter[open] > .sf-nl-toggle::after { transform: translateY(2px) rotate(-135deg); }
    .sf-col ul { padding: 0 0 12px; }
    .sf-col li + li { margin-top: 0; }
    .sf-col a { display: block; padding: 8px 0; }

    /* Bülten: tek satır düğme, dokununca form. */
    .sf-newsletter { margin-top: 20px; padding-top: 0; border-top: 0; }
    .sf-nl-toggle {
        display: flex; align-items: center; gap: 10px;
        padding: 12px 14px; border: 1px solid var(--sf-line); border-radius: 12px;
        color: var(--sf-link); font-size: 14px; font-weight: 600;
        list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .sf-nl-toggle::-webkit-details-marker { display: none; }
    .sf-nl-toggle::after { margin-left: auto; }
    .sf-nl-toggle i { color: var(--sf-head); font-size: 16px; }
    .sf-newsletter[open] > .sf-nl-toggle { margin-bottom: 14px; }
    .sf-newsletter .newsletter-form__title { display: none; }

    /* Alt bant: yasal linkler 2 sütun; telif ve ödeme logoları yan yana. */
    .sf-bottom {
        display: grid; grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 12px; margin-top: 24px; padding-top: 16px;
    }
    .sf-legal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .sf-legal a, .sf-legal button { padding: 6px 0; text-align: left; }
    .sf-copy { grid-row: 2; font-size: 11.5px; line-height: 1.45; }
    .sf-pay { grid-row: 2; margin-left: 0; gap: 4px; }
    .sf-pay img { width: 30px; height: 20px; padding: 2px 4px; border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a, .sf-social a, .sf-legal a, .sf-legal button { transition: none; }
    .sf-col > summary::after, .sf-nl-toggle::after { transition: none; }
}

@media print {
    .site-footer { background: #fff !important; color: #000 !important; }
    .sf-social, .sf-pay, .sf-newsletter { display: none !important; }
    .sf-contact__label { position: static !important; width: auto !important; height: auto !important; clip: auto !important; }
    .site-footer a, .sf-legal button { color: #000 !important; }
}
