/* Footer ve mobil açılır bölümleri.
 * style.css dosyasından taşınmıştır; mevcut kurallar korunur.
 */

/* YOURTOURKEY NEO FOOTER - UPDATED */

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

.ytk-neo-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 0%, rgba(2,79,77,0.24), transparent 34%),
        radial-gradient(circle at 8% 18%, rgba(255,255,255,0.055), transparent 28%),
        #071018;
    color: #ffffff;
    font-family: var(--ytk-font-family);
}

.ytk-neo-footer::before {
    content: "";
    position: absolute;
    inset: auto -10% -35% -10%;
    height: 460px;
    background: radial-gradient(circle, rgba(2,79,77,0.18), transparent 62%);
    pointer-events: none;
}

/* MAIN GRID */

.ytk-footer-main {
    position: relative;
    z-index: 1;
    width: calc(100% - var(--ytk-layout-cut));
    max-width: var(--ytk-layout-max);
    margin: 0 auto;
    padding: 72px 0 56px;
    display: grid;
    grid-template-columns: 1.45fr 0.86fr 0.86fr 0.76fr 1.05fr;
    gap: 54px;
    align-items: start;
}

.ytk-footer-brand {
    min-width: 0;
}

.ytk-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    line-height: 0;
    text-decoration: none;
}

.ytk-footer-logo img,
.ytk-footer-logo svg {
    display: block;
    width: auto;
    height: 28px;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.ytk-footer-logo span {
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
}

.ytk-footer-brand p {
    max-width: 430px;
    margin: 0;
    color: rgba(255,255,255,0.62);
    font-size: 15px;
    line-height: 1.75;
    font-weight: 500;
}

.ytk-footer-socials {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ytk-footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background 0.18s ease;
}

.ytk-footer-socials a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.14);
}

.ytk-footer-socials img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    display: block;
}

.ytk-footer-col h3 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.2px;
    text-transform: none;
}

.ytk-footer-col a {
    width: fit-content;
    display: flex;
    margin-bottom: 13px;
    color: rgba(255,255,255,0.58);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    transition: color 0.18s ease, transform 0.18s ease;
}

.ytk-footer-col a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.ytk-footer-payments p {
    max-width: 310px;
    margin: 0 0 20px;
    color: rgba(255,255,255,0.62);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 500;
}

.ytk-footer-payment-box {
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}

.ytk-footer-payment-box .ytk-footer-payment {
    width: auto;
    max-width: none;
    height: 20px;
    object-fit: contain;
    display: block;
    opacity: 1;
}

.ytk-footer-payment-box .ytk-footer-payment--iyzico {
    height: 18px;
}

.ytk-footer-tursab {
    width: fit-content !important;
    display: inline-flex !important;
    margin: 18px 0 0 !important;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.ytk-footer-tursab:hover {
    transform: none !important;
    background: transparent;
}

.ytk-footer-tursab img {
    width: 145px;
    height: auto;
    display: block;
}

/* BOTTOM */

.ytk-footer-bottom {
    position: relative;
    z-index: 1;
    width: calc(100% - var(--ytk-layout-cut));
    max-width: var(--ytk-layout-max);
    min-height: 74px;
    margin: 0 auto;
    padding: 24px 0 34px;
    border-top: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-weight: 600;
}

.ytk-footer-bottom nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ytk-footer-bottom a {
    color: rgba(255,255,255,0.50);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.ytk-footer-bottom a:hover {
    color: #ffffff;
}

/* RESPONSIVE FOOTER */

@media (max-width: 1240px) {
    .ytk-footer-main {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 46px 40px;
    }

    .ytk-footer-payments {
        grid-column: span 2;
    }
}

@media (max-width: 920px) {
    .ytk-footer-main,
    .ytk-footer-bottom {
        width: calc(100% - var(--ytk-layout-cut));
    }

    .ytk-footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .ytk-footer-brand,
    .ytk-footer-payments {
        grid-column: span 2;
    }

    .ytk-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .ytk-footer-bottom nav {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .ytk-footer-main,
    .ytk-footer-bottom {
        width: calc(100% - var(--ytk-layout-cut));
    }

    .ytk-footer-main {
        padding-top: 58px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ytk-footer-brand,
    .ytk-footer-payments {
        grid-column: auto;
    }

    .ytk-footer-logo img,
    .ytk-footer-logo svg {
        height: 24px;
        max-width: 120px;
    }

    .ytk-footer-payment-box {
        padding: 0;
        gap: 7px;
    }

    .ytk-footer-payment-box .ytk-footer-payment {
        width: auto;
        height: 20px;
    }

    .ytk-footer-payment-box .ytk-footer-payment--iyzico {
        height: 18px;
    }
}

/* MOBILE FOOTER ACCORDIONS */
.ytk-footer-mobile-accordion__body {
    display: contents;
}

@media (max-width: 760px) {
    .ytk-footer-main > .ytk-footer-mobile-accordion {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .ytk-footer-main > .ytk-footer-mobile-accordion:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .ytk-footer-mobile-accordion > h3 {
        position: relative;
        min-height: 58px;
        margin: 0 !important;
        padding: 18px 42px 18px 0;
        display: flex;
        align-items: center;
        color: #fff;
        cursor: pointer;
        user-select: none;
    }

    .ytk-footer-mobile-accordion > h3::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 4px;
        width: 9px;
        height: 9px;
        border-right: 2px solid rgba(255, 255, 255, 0.9);
        border-bottom: 2px solid rgba(255, 255, 255, 0.9);
        transform: translateY(-68%) rotate(45deg);
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .ytk-footer-mobile-accordion.is-open > h3::after {
        transform: translateY(-30%) rotate(225deg);
    }

    .ytk-footer-mobile-accordion__body {
        display: block;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-5px);
        transition:
            max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 520ms;
    }

    .ytk-footer-mobile-accordion.is-open > .ytk-footer-mobile-accordion__body {
        max-height: 620px;
        padding-bottom: 20px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition:
            max-height 680ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 240ms ease 40ms,
            transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s;
    }
}


/* MOBILE FOOTER ACCORDION COMPACT SPACING */
@media (max-width: 760px) {
    .ytk-footer-main {
        gap: 0 !important;
        row-gap: 0 !important;
    }

    .ytk-footer-brand {
        margin-bottom: 16px;
    }

    .ytk-footer-mobile-accordion > h3 {
        min-height: 50px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .ytk-footer-mobile-accordion.is-open > .ytk-footer-mobile-accordion__body {
        padding-bottom: 12px;
    }
}
