/* =========================================================
   ALTINFİYATLARI INDEPENDENT FOOTER
   Prefix: aff-
========================================================= */

/* DARK - mevcut tasarım birebir */
:root {
    --aff-footer-bg: #0c0e11;
    --aff-footer-border: #292d34;

    --aff-brand-name: #f5f5f5;
    --aff-brand-description: #969ca6;
    --aff-brand-note: #606771;

    --aff-column-title: #d8dadd;
    --aff-link: #858c96;
    --aff-logout-link: #777e88;

    --aff-bottom-border: #20242a;
    --aff-copyright: #686e77;
    --aff-disclaimer: #5f656e;

    --aff-gold: #d4af37;
}


/* LIGHT */
html[data-theme="light"] {
    --aff-footer-bg: #f3f4f5;
    --aff-footer-border: #e0e3e7;

    --aff-brand-name: #181a1f;
    --aff-brand-description: #6d737c;
    --aff-brand-note: #8a9099;

    --aff-column-title: #34383f;
    --aff-link: #6d737c;
    --aff-logout-link: #7b8189;

    --aff-bottom-border: #e0e3e7;
    --aff-copyright: #8a9099;
    --aff-disclaimer: #858b94;

    --aff-gold: #d4af37;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 transparent;
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        #f2c94c 0%,
        #d4af37 50%,
        #b88914 100%
    );
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #f6d96a 0%,
        #d4af37 50%,
        #a97d10 100%
    );
}

::selection {
    background: #FAF5E7;
    color: #111317;
}

::-moz-selection {
    background: #FAF5E7;
    color: #111317;
}

.aff-footer,
.aff-footer * {
    box-sizing: border-box;
}

.aff-footer {
    width: 100%;
    padding-top: 55px;

    border-top: 1px solid var(--aff-footer-border);

    background: var(--aff-footer-bg);

    color: var(--aff-brand-name);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.aff-footer a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   SHELL
========================================================= */

.aff-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   MAIN
========================================================= */

.aff-main {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.7fr)
        minmax(130px, 0.8fr)
        minmax(150px, 0.9fr)
        minmax(120px, 0.7fr);

    gap: 55px;

    padding: 48px 0 44px;
}


/* =========================================================
   BRAND
========================================================= */

.aff-brand {
    max-width: 330px;
}

.aff-brand-logo {
    display: inline-flex;
    align-items: center;

    gap: 9px;
}

.aff-brand-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(212, 175, 55, 0.40);
    border-radius: 9px;

    background: rgba(212, 175, 55, 0.07);

    color: var(--aff-gold);

    font-size: 14px;
    font-weight: 700;
}

.aff-brand-name {
    color: var(--aff-brand-name);

    font-size: 19px;
    font-weight: 600;

    white-space: nowrap;
}

.aff-brand-name strong {
    color: var(--aff-gold);
}

.aff-brand-description {
    max-width: 300px;

    margin: 17px 0 0;

    color: var(--aff-brand-description);

    font-size: 12px;
    line-height: 1.7;
}

.aff-brand-note {
    display: block;

    max-width: 300px;

    margin-top: 9px;

    color: var(--aff-brand-note);

    font-size: 9px;
    line-height: 1.6;
}


/* =========================================================
   COLUMNS
========================================================= */

.aff-column {
    min-width: 0;
}

.aff-column-title {
    display: block;

    margin-bottom: 15px;

    color: var(--aff-column-title);

    font-size: 11px;
    font-weight: 750;
}

.aff-link-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.aff-link-list a {
    width: fit-content;

    color: var(--aff-link);

    font-size: 10px;
    font-weight: 550;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.aff-link-list a:hover {
    color: var(--aff-gold);

    transform: translateX(2px);
}

.aff-link-list .aff-logout-link {
    color: var(--aff-logout-link);
}

.aff-link-list .aff-logout-link:hover {
    color: var(--aff-gold);
}


/* =========================================================
   BOTTOM
========================================================= */

.aff-bottom {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-top: 1px solid var(--aff-bottom-border);
}

.aff-copyright {
    flex-shrink: 0;

    color: var(--aff-copyright);

    font-size: 9px;
}

.aff-disclaimer {
    margin: 0;

    color: var(--aff-disclaimer);

    font-size: 9px;
    line-height: 1.5;

    text-align: right;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .aff-main {
        grid-template-columns: 1.5fr 1fr 1fr;

        gap: 38px;
    }

    .aff-brand {
        grid-column: 1 / -1;

        max-width: 450px;

        padding-bottom: 6px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .aff-footer {
        margin-top: 40px;
    }

    .aff-shell {
        width: calc(100% - 28px);
    }

    .aff-main {
        grid-template-columns: 1fr 1fr;

        gap: 34px 24px;

        padding: 38px 0 34px;
    }

    .aff-brand {
        grid-column: 1 / -1;
    }

    .aff-brand-description {
        max-width: 360px;
    }

    .aff-column-title {
        margin-bottom: 13px;
    }

    .aff-link-list {
        gap: 11px;
    }

    .aff-link-list a {
        font-size: 10px;
    }

    .aff-bottom {
        align-items: flex-start;
        flex-direction: column;

        gap: 7px;

        padding: 17px 0 20px;
    }

    .aff-disclaimer {
        max-width: 420px;

        text-align: left;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .aff-shell {
        width: calc(100% - 22px);
    }

    .aff-main {
        gap: 31px 18px;
    }

    .aff-brand-name {
        font-size: 17px;
    }

    .aff-brand-icon {
        width: 31px;
        height: 31px;
    }

}