/**
 * Footer – sayfa altı, marka, linkler ve disclaimer
 * Sitenin arka planı ile birleşik, tema mavisi vurgular.
 */

/* Footer arka planı – yumuşak geçiş, üstte ince tema çizgisi */
.site-footer {
    position: relative;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    color: var(--text-300);
    border-top: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 12%,
        rgba(15, 15, 15, 0.35) 30%,
        rgba(15, 15, 15, 0.88) 55%,
        var(--bg-100) 100%
    );
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--brand-rgb), 0.25) 20%,
        rgba(var(--brand-rgb), 0.4) 50%,
        rgba(var(--brand-rgb), 0.25) 80%,
        transparent 100%
    );
    opacity: 0.9;
}

body.dark .site-footer {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 15%,
        rgba(15, 15, 15, 0.45) 35%,
        rgba(15, 15, 15, 0.92) 60%,
        var(--bg-100) 100%
    );
}

/* İçerik alanı */
.footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px clamp(24px, 5vw, 48px) 56px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-sizing: border-box;
    background: none !important;
}

/* Marka satırı – logo + tagline */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo-img {
    display: block;
    height: 20px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.footer-tagline {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-300);
    margin: 0;
    max-width: 320px;
    line-height: 1.5;
}

/* Link sütunları – grid */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-col h4 {
    color: var(--text-100);
    margin: 0 0 4px 0;
    font-size: 13px;
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(var(--brand-rgb), 0.35);
    width: fit-content;
}

.footer-col a {
    color: var(--text-300);
    text-decoration: none;
    font-size: 14px;
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--brand);
}

/* Çerez Ayarları – Hukuk sütununda link gibi, hafif ayrım */
.footer-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--text-300);
    font-size: 14px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.5;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    width: 100%;
    justify-content: flex-start;
}
.footer-link-btn:hover {
    color: var(--brand);
}
.footer-link-btn:focus-visible {
    outline: 2px solid rgba(var(--brand-rgb), 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}
/* Çerez Ayarları butonu – linklerle aynı hizada, üstte çizgi yok */
.site-footer .footer-col .footer-link-btn {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Tam genişlik sütun (disclaimer kutusu) – flex içinde tam genişlik alması için */
.footer-col-full {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
}

/* Disclaimer – kutu içinde, okunaklı, tam genişlik */
.footer-col-full.footer-disclaimer {
    display: block;
    margin-top: 0;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border-left: 3px solid rgba(var(--brand-rgb), 0.4);
}

body:not(.dark) .footer-col-full.footer-disclaimer {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    border-left-color: rgba(var(--brand-rgb), 0.35);
}

.footer-tmdb-logo {
    display: block;
    width: auto;
    height: 20px;
    max-width: 120px;
    margin-top: 16px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: auto;
    object-fit: contain;
    object-position: left top;
}
.footer-col-full.footer-disclaimer small {
    white-space: normal;
    text-align: justify;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    overflow-wrap: break-word;
    word-spacing: 0.02em;
}
.footer-col-full small {
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-300);
    display: block;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        padding: 36px 20px 44px;
        gap: 32px;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-logo-img {
        height: 18px;
        max-width: 90px;
    }
    .footer-col-full.footer-disclaimer {
        padding: 16px 18px;
    }
}

/* Açık tema: footer geçişi */
body:not(.dark) .site-footer {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 18%,
        rgba(244, 244, 244, 0.5) 40%,
        rgba(244, 244, 244, 0.95) 68%,
        var(--bg-100) 100%
    );
}

body:not(.dark) .site-footer::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--brand-rgb), 0.2) 20%,
        rgba(var(--brand-rgb), 0.35) 50%,
        rgba(var(--brand-rgb), 0.2) 80%,
        transparent 100%
    );
}
