/*
 * EnFavori Canonical Footer
 * -------------------------
 * Public footer icin tek stil kaynagi.
 * Desktop + tablet + mobile ayni HTML'i responsive olarak kullanir.
 */

:root {
    --ef-footer-bg: #0d2238;
    --ef-footer-bg-top: #102a45;
    --ef-footer-accent: #18d2c3;
    --ef-footer-blue: #2ea7ff;
    --ef-footer-text: #ffffff;
    --ef-footer-muted: #9fb2c6;
    --ef-footer-line: rgba(159, 178, 198, .20);
    --ef-footer-card: rgba(255, 255, 255, .025);
    --ef-footer-card-hover: rgba(24, 210, 195, .07);
}

.ef-footer,
.ef-footer *,
.hm-cookie-banner,
.hm-cookie-banner *,
.hm-cookie-preferences,
.hm-cookie-preferences * {
    box-sizing: border-box;
}

.ef-footer {
    position: relative;
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
    color: var(--ef-footer-text);
    background: linear-gradient(180deg, var(--ef-footer-bg-top) 0%, var(--ef-footer-bg) 100%);
    border-top: 3px solid var(--ef-footer-accent);
}

.ef-footer-inner {
    width: calc(100% - 48px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 0 16px;
}

.ef-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    text-align: center;
}

.ef-footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ef-footer-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 238px;
    max-height: 44px;
    object-fit: contain;
}

.ef-footer-tagline {
    max-width: 620px;
    margin: 8px auto 0;
    color: #d7e4ef;
    font-size: 13px;
    line-height: 1.45;
}

.ef-footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
}

.ef-footer-social {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.ef-footer-social:hover,
.ef-footer-social:focus-visible {
    color: var(--ef-footer-accent);
    background: rgba(24,210,195,.08);
    border-color: rgba(24,210,195,.48);
    outline: none;
}

.ef-footer-social-x { font-weight: 900; }

.ef-footer-grid-wrap {
    padding: 14px 0 16px;
    border-top: 1px solid var(--ef-footer-line);
    border-bottom: 1px solid var(--ef-footer-line);
}

.ef-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    align-items: start;
    gap: 10px;
}

.ef-footer-grid > :nth-child(1) { order: 1; }
.ef-footer-grid > :nth-child(6) { order: 2; }
.ef-footer-grid > :nth-child(2) { order: 3; }
.ef-footer-grid > :nth-child(3) { order: 4; }
.ef-footer-grid > :nth-child(4) { order: 5; }
.ef-footer-grid > :nth-child(5) { order: 6; }
.ef-footer-grid > :nth-child(7) { order: 7; }

.ef-footer-section {
    min-width: 0;
    overflow: hidden;
    background: var(--ef-footer-card);
    border: 1px solid rgba(159,178,198,.22);
    border-radius: 11px;
    transition: background-color .16s ease, border-color .16s ease;
}

.ef-footer-section:hover,
.ef-footer-section:focus-within,
.ef-footer-section.is-open {
    background: var(--ef-footer-card-hover);
    border-color: rgba(24,210,195,.42);
}

.ef-footer-card {
    display: grid;
    width: 100%;
    grid-template-columns: 44px minmax(0,1fr) 16px;
    gap: 11px;
    align-items: center;
    min-width: 0;
    min-height: 70px;
    margin: 0;
    padding: 10px 12px;
    color: #fff;
    background: var(--ef-footer-card);
    border: 1px solid rgba(159,178,198,.22);
    border-radius: 11px;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    touch-action: manipulation;
    transition: background-color .16s ease, border-color .16s ease;
}

.ef-footer-section > .ef-footer-card {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.ef-footer-card:hover,
.ef-footer-card:focus-visible,
.ef-footer-card[aria-expanded="true"] {
    color: #fff;
    background: var(--ef-footer-card-hover);
    border-color: rgba(24,210,195,.42);
    outline: none;
    text-decoration: none;
}

.ef-footer-section > .ef-footer-card:hover,
.ef-footer-section > .ef-footer-card:focus-visible,
.ef-footer-section > .ef-footer-card[aria-expanded="true"] {
    background: transparent;
}

.ef-footer-card-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--ef-footer-accent);
    background: rgba(24,210,195,.055);
    border: 1px solid rgba(24,210,195,.24);
    border-radius: 10px;
    font-size: 16px;
}

.ef-footer-card-copy { min-width: 0; }
.ef-footer-card-title,
.ef-footer-card-subtitle { display: block; }

.ef-footer-card-title {
    color: #fff;
    font-size: 13.5px;
    font-weight: 850;
    line-height: 1.2;
}

.ef-footer-card-subtitle {
    margin-top: 3px;
    overflow: hidden;
    color: var(--ef-footer-muted);
    font-size: 11.5px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-footer-card-arrow {
    justify-self: end;
    color: var(--ef-footer-blue);
    font-size: 11px;
    transform-origin: center;
    transition: transform .16s ease;
}

.ef-footer-card[aria-expanded="true"] .ef-footer-card-arrow {
    transform: rotate(90deg);
}

.ef-footer-panel[hidden] { display: none !important; }

.ef-footer-panel {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 10px;
    background: rgba(6,24,40,.22);
    border: 0;
    border-top: 1px solid rgba(159,178,198,.16);
}

.ef-footer-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.ef-footer-panel-head strong {
    color: #fff;
    font-size: 11.5px;
    font-weight: 850;
}

.ef-footer-panel-head a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ef-footer-accent);
    font-size: 10.5px;
    font-weight: 800;
    text-decoration: none;
}

.ef-footer-panel-head a:hover,
.ef-footer-panel-head a:focus-visible {
    color: #fff;
    outline: none;
}

.ef-footer-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: 245px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(24,210,195,.50) rgba(255,255,255,.04);
}

.ef-footer-panel-grid > a {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    padding: 6px 8px;
    color: #d7e4ef;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(159,178,198,.13);
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(24,210,195,.16);
}

.ef-footer-panel-grid > a:hover,
.ef-footer-panel-grid > a:focus-visible {
    color: var(--ef-footer-accent);
    background: rgba(24,210,195,.06);
    border-color: rgba(24,210,195,.34);
    outline: none;
}

@media (min-width: 768px) {
    .ef-footer-section {
        display: contents;
    }

    .ef-footer-grid > .ef-footer-card,
    .ef-footer-section > .ef-footer-card {
        order: 1;
    }

    .ef-footer-grid > .ef-footer-section:nth-child(1) > .ef-footer-card { order: 1; }
    .ef-footer-grid > .ef-footer-card:nth-child(6) { order: 2; }
    .ef-footer-grid > .ef-footer-section:nth-child(2) > .ef-footer-card { order: 3; }
    .ef-footer-grid > .ef-footer-section:nth-child(3) > .ef-footer-card { order: 4; }
    .ef-footer-grid > .ef-footer-section:nth-child(4) > .ef-footer-card { order: 5; }
    .ef-footer-grid > .ef-footer-section:nth-child(5) > .ef-footer-card { order: 6; }
    .ef-footer-grid > .ef-footer-section:nth-child(7) > .ef-footer-card { order: 7; }

    .ef-footer-section > .ef-footer-card {
        background: var(--ef-footer-card);
        border: 1px solid rgba(159,178,198,.22);
        border-radius: 11px;
    }

    .ef-footer-section > .ef-footer-card:hover,
    .ef-footer-section > .ef-footer-card:focus-visible,
    .ef-footer-section > .ef-footer-card[aria-expanded="true"] {
        background: var(--ef-footer-card-hover);
        border-color: rgba(24,210,195,.42);
    }

    .ef-footer-section > .ef-footer-panel {
        grid-column: 1 / -1;
        order: 20;
        margin-top: 0;
        padding: 14px;
        background: rgba(255,255,255,.025);
        border: 1px solid rgba(159,178,198,.22);
        border-radius: 11px;
    }

    .ef-footer-section > .ef-footer-panel .ef-footer-panel-head {
        margin-bottom: 10px;
    }

    .ef-footer-section > .ef-footer-panel .ef-footer-panel-head strong {
        font-size: 13px;
    }

    .ef-footer-section > .ef-footer-panel .ef-footer-panel-head a {
        font-size: 11.5px;
    }

    .ef-footer-section > .ef-footer-panel .ef-footer-panel-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 7px;
        max-height: 245px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .ef-footer-section > .ef-footer-panel .ef-footer-panel-grid > a {
        min-height: 38px;
        padding: 7px 9px;
        font-size: 11px;
    }
}

.ef-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 14px 0 8px;
}

.ef-footer-legal a,
.ef-footer-cookie-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
    padding: 4px 13px;
    color: #d7e4ef;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.ef-footer-legal > * + *::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 14px;
    background: var(--ef-footer-line);
    transform: translateY(-50%);
}

.ef-footer-legal a:hover,
.ef-footer-legal a:focus-visible,
.ef-footer-cookie-link:hover,
.ef-footer-cookie-link:focus-visible {
    color: var(--ef-footer-accent);
    outline: none;
}

.ef-footer-bottom {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 56px;
    color: var(--ef-footer-muted);
    border-top: 1px solid rgba(159,178,198,.10);
    font-size: 11.5px;
    text-align: center;
}

.ef-footer-bottom a {
    color: var(--ef-footer-accent);
    font-weight: 850;
    text-decoration: none;
}

.ef-footer-top {
    position: absolute;
    right: 10px;
    top: 50%;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--ef-footer-accent);
    background: transparent;
    border: 1px solid rgba(24,210,195,.58);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.ef-footer-top:hover,
.ef-footer-top:focus-visible {
    color: #fff;
    background: rgba(24,210,195,.09);
    outline: none;
}

.hm-cookie-banner[hidden],
.hm-cookie-preferences[hidden] { display: none !important; }

.hm-cookie-banner {
    position: fixed;
    z-index: 110000;
    left: 14px;
    right: 14px;
    bottom: 14px;
    color: #e8f0f7;
    background: var(--ef-footer-bg);
    border: 1px solid rgba(255,255,255,.14);
    border-top: 3px solid var(--ef-footer-accent);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.32);
}

.hm-cookie-banner-inner {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hm-cookie-banner-copy { min-width: 0; }
.hm-cookie-banner-title { margin: 0; color: #fff; font-size: 15px; font-weight: 800; }
.hm-cookie-banner-title i { margin-right: 6px; color: var(--ef-footer-accent); }
.hm-cookie-banner-text { margin: 5px 0 0; color: #b9c8d7; font-size: 12px; line-height: 1.45; }
.hm-cookie-banner-text a { color: var(--ef-footer-accent); }

.hm-cookie-banner-actions,
.hm-cookie-preferences-footer { display: flex; flex-wrap: wrap; gap: 8px; }

.hm-cookie-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d7e2eb;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.hm-cookie-button-primary { color: #062b2a; background: var(--ef-footer-accent); border-color: var(--ef-footer-accent); }
.hm-cookie-button-secondary { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.hm-cookie-button-outline { color: var(--ef-footer-accent); background: transparent; border-color: rgba(24,210,195,.5); }

.hm-cookie-preferences {
    position: fixed;
    z-index: 110100;
    inset: 0;
    display: flex;
    padding: 18px;
    align-items: center;
    justify-content: center;
    background: rgba(3,12,23,.72);
}

.hm-cookie-preferences-dialog {
    width: min(680px,100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    color: #1d2939;
    background: #fff;
    border-top: 4px solid var(--ef-footer-accent);
    border-radius: 15px;
    box-shadow: 0 24px 70px rgba(0,0,0,.30);
}

.hm-cookie-preferences-header {
    display: flex;
    padding: 18px 20px 14px;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e6edf3;
}

.hm-cookie-preferences-title { margin: 0; color: #0d2238; font-size: 20px; font-weight: 850; }
.hm-cookie-preferences-description,
.hm-cookie-category-note,
.hm-cookie-storage-note { color: #66788a; line-height: 1.5; }
.hm-cookie-preferences-description { margin: 6px 0 0; font-size: 12px; }

.hm-cookie-preferences-close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: #f5f7fa;
    border: 1px solid #dde5ed;
    border-radius: 9px;
    cursor: pointer;
}

.hm-cookie-preferences-body { padding: 14px 20px; }
.hm-cookie-category { display: flex; padding: 13px 0; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf1f5; }
.hm-cookie-category-title { margin: 0; color: #18324c; font-size: 14px; font-weight: 800; }
.hm-cookie-category-note { margin: 4px 0 0; font-size: 11.5px; }

.hm-cookie-switch { position: relative; flex: 0 0 44px; width: 44px; height: 24px; }
.hm-cookie-switch input { position: absolute; opacity: 0; pointer-events: none; }
.hm-cookie-switch-track { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background .15s ease; }
.hm-cookie-switch-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.20); transition: transform .15s ease; }
.hm-cookie-switch input:checked + .hm-cookie-switch-track { background: #16b9aa; }
.hm-cookie-switch input:checked + .hm-cookie-switch-track::after { transform: translateX(20px); }
.hm-cookie-switch input:disabled + .hm-cookie-switch-track { opacity: .65; }
.hm-cookie-storage-note { margin: 13px 0 0; font-size: 11.5px; }
.hm-cookie-preferences-footer { padding: 12px 20px 18px; justify-content: flex-end; }

@media (max-width: 991.98px) {
    .ef-footer-inner { width: calc(100% - 32px); }
    .ef-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

    @media (min-width: 768px) {
        .ef-footer-section > .ef-footer-panel .ef-footer-panel-grid {
            grid-template-columns: repeat(2,minmax(0,1fr));
        }
    }
}

@media (max-width: 767.98px) {
    .ef-footer-grid { grid-template-columns: 1fr; gap: 7px; }

    .ef-footer-panel-grid {
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
    }

    .ef-footer-panel-grid > a {
        width: 100%;
        min-height: 42px;
    }
}

@media (max-width: 575.98px) {
    .ef-footer { margin-top: 28px; }
    .ef-footer-inner { width: calc(100% - 24px); padding: 23px 0 12px; }
    .ef-footer-brand { padding-bottom: 16px; }
    .ef-footer-logo { max-width: 196px; max-height: 36px; }
    .ef-footer-tagline { max-width: 330px; margin-top: 7px; font-size: 11.7px; }
    .ef-footer-socials { margin-top: 11px; }
    .ef-footer-social { width: 37px; height: 37px; border-radius: 9px; font-size: 15px; }
    .ef-footer-grid-wrap { padding: 11px 0 12px; }
    .ef-footer-card { grid-template-columns: 38px minmax(0,1fr) 14px; min-height: 57px; gap: 9px; padding: 8px 10px; border-radius: 9px; }
    .ef-footer-section { border-radius: 9px; }
    .ef-footer-card-icon { width: 36px; height: 36px; border-radius: 8px; font-size: 14px; }
    .ef-footer-card-title { font-size: 12.7px; }
    .ef-footer-card-subtitle { margin-top: 2px; font-size: 10.8px; }
    .ef-footer-panel { padding: 9px; }
    .ef-footer-panel-head { margin-bottom: 7px; }
    .ef-footer-panel-head strong { font-size: 11.8px; }
    .ef-footer-panel-head a { font-size: 10.5px; }
    .ef-footer-panel-grid { gap: 5px; }
    .ef-footer-panel-grid > a { min-height: 42px; padding: 8px 9px; font-size: 10.9px; }
    .ef-footer-legal { padding: 11px 0 7px; }
    .ef-footer-legal a,
    .ef-footer-cookie-link { min-height: 28px; padding: 4px 8px; font-size: 10.5px; }
    .ef-footer-bottom { min-height: 48px; padding: 8px 46px 8px 8px; font-size: 10.8px; }
    .ef-footer-top { right: 5px; width: 34px; height: 34px; }

    .hm-cookie-banner { left: 8px; right: 8px; bottom: 8px; }
    .hm-cookie-banner-inner { display: block; padding: 13px; }
    .hm-cookie-banner-actions { display: grid; grid-template-columns: 1fr; margin-top: 10px; }
    .hm-cookie-preferences { padding: 8px; align-items: flex-end; }
    .hm-cookie-preferences-dialog { max-height: calc(100vh - 16px); border-radius: 14px 14px 10px 10px; }
    .hm-cookie-preferences-header { padding: 16px 15px 12px; }
    .hm-cookie-preferences-title { font-size: 18px; }
    .hm-cookie-preferences-body { padding: 12px 15px; }
    .hm-cookie-preferences-footer { display: grid; grid-template-columns: 1fr; padding: 10px 15px 15px; }
}
