/* ════════════════════════════════════════
   FOOTER  —  mobile-first, desktop override
   ════════════════════════════════════════ */

.main-footer {
    background: var(--bg-color);
    padding: 0.5rem 0 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    width: 100%;
    box-sizing: border-box;
}

/* Logo desenli zemin açıkken footer şeffaf kalır, desen içinden görünür. */
body.bg-logo-on .main-footer {
    background: linear-gradient(rgba(255, 255, 255, 0.016), rgba(255, 255, 255, 0));
}

.footer-container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ── Header ── */
.footer-header {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 10px 0 12px;
    align-items: center;
}

.footer-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-header-right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ── Logo ── */
.footer-logo-link {
    display: inline-flex;
    flex-shrink: 0;
}

.footer-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ── Dil seçici ── */
.footer-lang {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.footer-lang .lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    padding: 8px 16px;
    min-height: 42px;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-lang .lang-switch__flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

.footer-lang .lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--surface-700);
    border-radius: 8px;
    width: 140px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-lang.active .lang-dropdown {
    display: flex;
}

.footer-lang .lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.footer-lang .lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.footer-lang .lang-dropdown a.is-active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent, #f59e0b);
}

/* ── Takip ── */
.footer-follow {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
}

.follow-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.social-icons-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .social-icon-box çip stili brand_icons.css'te */

/* ── İndirme butonları ── */
.download-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.download-btn {
    position: relative;
    overflow: visible;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    padding: 9px 14px 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.download-btn:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.download-soon-badge {
    position: absolute;
    top: -0.55rem;
    right: -0.35rem;
    z-index: 2;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-red, #ef4444) 0%, #f59e0b 100%);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    opacity: 0;
    transform: translateY(4px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.download-btn:hover .download-soon-badge,
.download-btn:focus-visible .download-soon-badge {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.download-btn i {
    font-size: 1.45rem;
    flex-shrink: 0;
}

.btn-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-info span:first-child {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.btn-info span:last-child {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

/* ── Ayraç ── */
.footer-divider {
    display: none;
}

/* ── Link grid ── */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    padding: 18px 0 16px;
    width: 100%;
    border: none;
}

.footer-col {
    text-align: left;
}

.footer-col h4 {
    color: var(--brand-red);
    font-size: 11px;
    font-weight: 800;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 1px 0;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* ── Yasal uyarı ── */
.footer-disclaimer {
    padding: 14px 0 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.disclaimer-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
}

.disclaimer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    filter: grayscale(1) opacity(0.6);
}

.disclaimer-icons img {
    height: 24px;
    width: auto;
}

.disclaimer-icons .ph {
    font-size: 2rem;
    color: var(--text-light);
}

/* ── Alt satır ── */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.copyright {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.powered-by-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.powered-by-link:hover {
    opacity: 0.8;
}

.powered-by-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.powered-by-logo {
    height: 22px;
    width: auto;
    display: block;
}

/* ════════════════════════
   MASAÜSTÜ  ≥ 1025px
   ════════════════════════ */
@media (min-width: 1025px) {
    .footer-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
    }

    .footer-header-right {
        align-items: flex-end;
    }

    .footer-logo {
        height: 52px;
    }

    .download-buttons {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .download-btn {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 24px;
    }
}

/* ════════════════════════
   MOBİL  ≤ 1024px
   ════════════════════════ */
@media (max-width: 1024px) {
    .main-footer {
        padding: 1rem 0 calc(var(--mobile-nav-height, 64px) + 1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-container {
        max-width: 390px;
        padding: 0 12px;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-lang .lang-current {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 12px;
        box-sizing: border-box;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}