/* =============================================
   FOOTER
   ============================================= */

.footer-wrap {
    position: relative;
    z-index: 10;
    margin-top: 2.5rem;
    isolation: isolate;
}

/* ---- İletişim kartı ---- */
.footer-contact {
    position: relative;
    z-index: 2;
    margin-bottom: -3.25rem;
}

.footer-contact__card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid rgba(53, 102, 223, 0.08);
    box-shadow:
        0 24px 48px rgba(11, 26, 51, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.footer-contact__title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.footer-contact__desc {
    max-width: 28rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #64748b;
}

.footer-contact__methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

.footer-contact__method {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef1f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-contact__method:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(53, 102, 223, 0.15);
}

.footer-contact__method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.125rem;
}

.footer-contact__method--blue .footer-contact__method-icon {
    background: color-mix(in srgb, #3566df 12%, #ffffff);
    color: #3566df;
}

.footer-contact__method--green .footer-contact__method-icon {
    background: color-mix(in srgb, #25d366 12%, #ffffff);
    color: #16a34a;
}

.footer-contact__method--coral .footer-contact__method-icon {
    background: color-mix(in srgb, #f87171 14%, #ffffff);
    color: #ef4444;
}

.footer-contact__method-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.footer-contact__method-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
}

.footer-contact__method-value {
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Ana footer ---- */
.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: 5.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(53, 102, 223, 0.35) 0%, transparent 55%),
        linear-gradient(165deg, #0a1628 0%, #122647 42%, #1a3566 100%);
    color: #ffffff;
}

.site-footer__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 80%, rgba(53, 102, 223, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(96, 165, 250, 0.12) 0%, transparent 35%);
}

.site-footer__container {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

/* ---- Sekmeler ---- */
.site-footer__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 1.75rem;
    scrollbar-width: none;
}

.site-footer__tabs::-webkit-scrollbar {
    display: none;
}

.site-footer__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 46px;
    padding: 0.625rem 1.125rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.site-footer__tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.site-footer__tab.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(147, 197, 253, 0.45);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 8px 24px rgba(0, 0, 0, 0.18);
}

.site-footer__tab-icon {
    font-size: 0.6875rem;
    opacity: 0.75;
}

.site-footer__tab-label--short {
    display: none;
}

/* ---- Link panelleri ---- */
.site-footer__panel {
    display: none;
    animation: footerPanelIn 0.35s ease;
}

.site-footer__panel.is-active {
    display: block;
}

@keyframes footerPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.site-footer__link-icon {
    flex-shrink: 0;
    font-size: 0.625rem;
    opacity: 0.55;
}

.site-footer__link:hover .site-footer__link-icon {
    opacity: 0.9;
    color: #93c5fd;
}

/* ---- Sosyal + hızlı iletişim ---- */
.site-footer__bottom-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__social,
.site-footer__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.site-footer__social-link,
.site-footer__quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.site-footer__social-link:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--brand-color) 18%, rgba(255, 255, 255, 0.08));
    border-color: color-mix(in srgb, var(--brand-color) 35%, rgba(255, 255, 255, 0.2));
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.site-footer__quick-link--blue:hover {
    background: rgba(53, 102, 223, 0.25);
    border-color: rgba(147, 197, 253, 0.4);
}

.site-footer__quick-link--green:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(74, 222, 128, 0.35);
}

.site-footer__quick-link--coral:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(252, 165, 165, 0.35);
}

/* ---- Alt bar ---- */
.site-footer__bar {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-top: 1px solid #eef1f6;
}

.site-footer__bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem 1.125rem;
}

.site-footer__copy {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
}

.site-footer__payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.site-footer__payment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 52px;
    height: 28px;
    padding-inline: 0.5rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #eef1f6;
}

.site-footer__payment svg {
    width: 48px;
    height: 24px;
}

.site-footer__payment--secure {
    padding-inline: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #16a34a;
}

.site-footer__payment--secure i {
    font-size: 0.8125rem;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
    .footer-contact__methods {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__bottom-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .footer-contact__card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 1.75rem 2rem;
    }

    .footer-contact {
        margin-bottom: -3.75rem;
    }

    .site-footer {
        padding-top: 6.25rem;
    }

    .site-footer__tabs {
        flex-wrap: wrap;
        overflow: visible;
    }

    .site-footer__links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.625rem 1.25rem;
    }

    .site-footer__bar-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .site-footer__copy {
        text-align: left;
    }
}

@media (min-width: 992px) {
    .footer-wrap {
        margin-top: 3.5rem;
    }

    .footer-contact__card {
        border-radius: 22px;
        padding: 2rem 2.25rem;
    }

    .site-footer__links {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .site-footer__tab {
        min-height: 50px;
        padding: 0.75rem 1.375rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575px) {
    .site-footer__tab-label {
        display: none;
    }

    .site-footer__tab-label--short {
        display: inline;
    }
}
