/*
 * EnFavori Footer Standard
 * ------------------------
 * Masaüstü footer yerleşimini tek merkezden kilitler.
 * Mevcut Blade içindeki eski/final katmanları ezmeden yalnızca düzen,
 * hizalama ve kolon ritmini standardize eder.
 */

@media (min-width: 1200px) {
    .hm-footer-main {
        display: grid !important;
        grid-template-columns:
            minmax(150px, 0.95fr)
            minmax(315px, 1.75fr)
            minmax(175px, 1.05fr)
            minmax(215px, 1.20fr)
            minmax(200px, 1.10fr) !important;
        column-gap: 0 !important;
        row-gap: 20px !important;
        padding-top: 26px !important;
        padding-bottom: 22px !important;
    }

    .hm-footer-main > .hm-footer-row {
        display: contents !important;
    }

    .hm-footer-brand-column {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 0 18px !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
    }

    .hm-footer-brand-box {
        width: 100% !important;
        max-width: 620px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .hm-footer-logo-link {
        display: flex !important;
        width: fit-content !important;
        margin: 0 auto 8px !important;
        justify-content: center !important;
    }

    .hm-footer-description {
        max-width: 580px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .hm-footer-menu-enfavori {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .hm-footer-menu-categories {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    .hm-footer-menu-channels {
        grid-column: 3 !important;
        grid-row: 2 !important;
    }

    .hm-footer-menu-legal {
        grid-column: 4 !important;
        grid-row: 2 !important;
    }

    .hm-footer-menu-principles {
        grid-column: 5 !important;
        grid-row: 2 !important;
    }

    .hm-footer-menu-enfavori,
    .hm-footer-menu-categories,
    .hm-footer-menu-channels,
    .hm-footer-menu-legal,
    .hm-footer-menu-principles {
        position: relative !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
        align-self: start !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-right: 18px !important;
        padding-bottom: 0 !important;
        padding-left: 18px !important;
        border-left: 1px solid rgba(148, 163, 184, 0.16) !important;
    }

    .hm-footer-menu-enfavori {
        padding-left: 0 !important;
        border-left: 0 !important;
    }

    .hm-footer-menu-principles {
        padding-right: 0 !important;
    }

    .hm-footer-policy-row {
        margin: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
        row-gap: 0 !important;
    }

    .hm-footer-policy-card {
        height: auto !important;
    }

    .hm-footer-accordion-button,
    .hm-footer-policy-row .hm-footer-accordion-button {
        min-height: 31px !important;
        margin: 0 0 12px !important;
        padding: 0 0 8px !important;
        font-size: 13.5px !important;
        line-height: 1.25 !important;
        align-items: flex-start !important;
    }

    .hm-footer-accordion-button::after {
        width: 34px !important;
        height: 3px !important;
    }

    .hm-footer-list li,
    .hm-footer-policy-row .hm-footer-list li {
        margin: 0 0 8px !important;
    }

    .hm-footer-list a,
    .hm-footer-link-button {
        font-size: 12.5px !important;
        line-height: 1.38 !important;
    }

    .hm-footer-category-list {
        column-count: 2 !important;
        column-gap: 22px !important;
    }

    .hm-footer-category-list li {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .hm-footer-legal-list,
    .hm-footer-principles-list {
        display: block !important;
        column-count: 1 !important;
    }

    .hm-footer-title-desktop {
        white-space: nowrap !important;
    }

    .hm-footer-copyright {
        min-height: 48px !important;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
        font-size: 12.5px !important;
    }
}

/*
 * 992–1199 px aralığında beş masaüstü kolonu zorla sıkıştırmak yerine
 * mevcut responsive düzen korunur; yalnız ritim ve başlık ölçüsü sabitlenir.
 */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hm-footer-accordion-button,
    .hm-footer-policy-row .hm-footer-accordion-button {
        font-size: 13px !important;
    }

    .hm-footer-list a,
    .hm-footer-link-button {
        font-size: 12px !important;
    }
}

/*
 * secim.enfavori.com — canlı public CSS kilidi
 * ---------------------------------------------
 * Bu kurallar Blade view cache'inden bağımsız olarak doğrudan public asset'ten
 * yüklenir. body.ef-election-site sınıfını mevcut seçim JS'i ekler.
 */
body.ef-election-site .hm-footer-container {
    margin-top: 18px !important;
    border-top-width: 2px !important;
}

body.ef-election-site .hm-footer-main {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding-top: 16px !important;
    padding-bottom: 14px !important;
    row-gap: 10px !important;
}

body.ef-election-site .hm-footer-brand-column {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    margin: 0 !important;
}

body.ef-election-site .hm-footer-brand-box {
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.ef-election-site .hm-footer-logo,
body.ef-election-site .hm-footer-logo-link img,
body.ef-election-site .hm-footer-logo-link svg {
    width: auto !important;
    height: auto !important;
    max-width: 170px !important;
    max-height: 30px !important;
}

body.ef-election-site .hm-footer-description {
    max-width: 680px !important;
    margin-top: 6px !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
}

body.ef-election-site .hm-footer-socials {
    gap: 6px !important;
    margin-top: 9px !important;
}

body.ef-election-site .hm-footer-social-link {
    flex-basis: 32px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
}

body.ef-election-site .hm-footer-share-area {
    margin-top: 9px !important;
    margin-left: 6px !important;
}

body.ef-election-site .hm-footer-share-button {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
}

body.ef-election-site .hm-footer-accordion-button,
body.ef-election-site .hm-footer-policy-row .hm-footer-accordion-button {
    min-height: 38px !important;
    margin: 0 !important;
    padding: 5px 6px !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
}

body.ef-election-site .hm-footer-app-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    margin-right: 8px !important;
    border-radius: 7px !important;
}

body.ef-election-site .hm-footer-list li,
body.ef-election-site .hm-footer-policy-row .hm-footer-list li {
    margin-bottom: 5px !important;
}

body.ef-election-site .hm-footer-list a,
body.ef-election-site .hm-footer-link-button {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

body.ef-election-site .hm-footer-policy-row {
    margin-top: 6px !important;
    padding-top: 6px !important;
}

body.ef-election-site .hm-footer-copyright {
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 10.5px !important;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    html body.ef-election-site .hm-footer-main {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 14px !important;
    }

    html body.ef-election-site .hm-footer-main > .hm-footer-row,
    html body.ef-election-site .hm-footer-main > .hm-footer-policy-row {
        display: contents !important;
    }

    html body.ef-election-site .hm-footer-brand-column {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    html body.ef-election-site .hm-footer-menu-enfavori,
    html body.ef-election-site .hm-footer-menu-categories,
    html body.ef-election-site .hm-footer-menu-channels,
    html body.ef-election-site .ef-footer-menu-articles,
    html body.ef-election-site .ef-footer-menu-cities,
    html body.ef-election-site .hm-footer-menu-legal,
    html body.ef-election-site .hm-footer-menu-principles {
        grid-column: auto !important;
        grid-row: auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
}

@media (min-width: 1200px) {
    html body.ef-election-site .hm-footer-main {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        column-gap: 14px !important;
        row-gap: 8px !important;
    }

    html body.ef-election-site .hm-footer-main > .hm-footer-row,
    html body.ef-election-site .hm-footer-main > .hm-footer-policy-row {
        display: contents !important;
    }

    html body.ef-election-site .hm-footer-brand-column {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        border-bottom: 0 !important;
    }

    html body.ef-election-site .hm-footer-menu-enfavori,
    html body.ef-election-site .hm-footer-menu-categories,
    html body.ef-election-site .hm-footer-menu-channels,
    html body.ef-election-site .ef-footer-menu-articles,
    html body.ef-election-site .ef-footer-menu-cities,
    html body.ef-election-site .hm-footer-menu-legal,
    html body.ef-election-site .hm-footer-menu-principles {
        grid-column: auto !important;
        grid-row: auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    html body.ef-election-site .hm-footer-accordion-button,
    html body.ef-election-site .hm-footer-policy-row .hm-footer-accordion-button {
        min-height: 0 !important;
        margin-bottom: 5px !important;
        padding: 0 0 5px !important;
    }
}

@media (max-width: 767.98px) {
    html body.ef-election-site .hm-footer-main {
        padding: 12px 10px 10px !important;
    }

    html body.ef-election-site .hm-footer-accordion-button,
    html body.ef-election-site .hm-footer-policy-row .hm-footer-accordion-button {
        min-height: 42px !important;
        padding: 6px !important;
    }
}