/*
 * KILINÇ GÜMÜŞ — Premium Footer
 * Kaynak: canlı sitede kullanılan Kılınç Theme Child footer görünümü.
 * 0.4.3 ile bağımsız Kılınç Theme'e taşındı.
 *
 * Bilinçli olarak .footer-2 / .absolute-footer gibi Kılınç Theme selector'ları yoktur.
 */

.klc-footer {
    background-color: #222222;
    color: #d1d1d1;
    font-family: var(--kg-font-sans, Inter, system-ui, sans-serif);
    padding: 60px 0 0;
    border-top: 2px solid #e0e0e0;
}

.klc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.klc-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.klc-col {
    flex: 1;
    min-width: 220px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.klc-col-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 25px;
    position: relative;
    padding-bottom: 10px;
    user-select: none;
    line-height: 1.3;
}

.klc-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #a8a8a8;
    transition: width .3s ease;
}

.klc-col:hover .klc-col-title::after {
    width: 50px;
}

/* Yeni temanın normalize katmanından bağımsız çalışması için UL reset'i burada. */
.klc-menu,
.klc-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.klc-menu li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.klc-menu li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
    transition: color .3s ease, transform .3s ease;
    display: inline-block;
}

.klc-menu li a:hover,
.klc-menu li a:focus-visible {
    color: #ffffff;
    transform: translateX(5px);
}

.klc-count {
    flex: 0 0 auto;
    font-size: 11px;
    color: #777;
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
}

.klc-trust-box {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.klc-trust-box img {
    display: block;
    max-width: 140px;
    height: auto;
    margin: 0 auto 15px;
    transition: transform .3s ease, filter .3s ease;
}

.klc-trust-box img:hover {
    transform: scale(1.05);
}

#ETBIS {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#ETBIS img {
    max-width: 100px;
    height: auto;
}

.klc-bottom {
    background-color: #1a1a1a;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #888;
    letter-spacing: .5px;
}

.klc-icon {
    display: none;
    font-size: 18px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .klc-footer {
        padding-top: 34px;
    }

    .klc-container {
        padding: 0 16px;
    }

    .klc-row {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .klc-col {
        min-width: 0;
        margin-bottom: 0;
        padding: 0;
        border-bottom: 1px solid #333;
    }

    .klc-col:last-child {
        border-bottom: 0;
        margin-top: 20px;
    }

    .klc-col-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0;
        padding: 20px 10px;
    }

    .klc-col-title::after {
        display: none;
    }

    .klc-icon {
        display: block;
    }

    .klc-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease-out;
        padding: 0 10px;
    }

    .klc-menu.open {
        margin-bottom: 20px;
    }

    .klc-trust-box {
        margin: 0 10px 20px;
    }
}

/* Global back-to-top — replaces the former sticky header as the fast return affordance. */
.kg-back-to-top {
    position: fixed;
    left: max(18px, env(safe-area-inset-left));
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 34px));
    z-index: 780;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(17,17,17,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #111;
    box-shadow: 0 8px 26px rgba(0,0,0,.10);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .18s ease, color .18s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.kg-back-to-top[hidden] { display: grid !important; }
.kg-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.kg-back-to-top:hover,
.kg-back-to-top:focus-visible {
    background: #111;
    color: #fff;
    border-color: #111;
}
.kg-back-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (max-width: 640px) {
    .kg-back-to-top {
        left: max(14px, env(safe-area-inset-left));
        bottom: max(29px, calc(env(safe-area-inset-bottom) + 29px));
        width: 42px;
        height: 42px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .kg-back-to-top { transition: none; }
}


/* 0.4.4 — Back-to-top / Favorilerim floating optical alignment
 * Favorites uses a 58px desktop / 60px mobile interaction box. The back-to-top
 * control remains visually smaller, so its bottom offset is raised by half the
 * size difference. This aligns the visible control centers without touching
 * the Favorites plugin or either control's size.
 */


/* S2-1.0.0 — mobile fixed-layer paint stabilization */
@media (max-width: 640px) {
    .kg-back-to-top {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: #fff;
        box-shadow: 0 5px 16px rgba(0,0,0,.08);
    }
}
