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

.main-footer {
    background: var(--bg-color);
    padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(var(--primary, 245, 158, 11), 0.2);
    color: var(--text-gray);
    width: 100%;
    box-sizing: border-box;
}

.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;
    margin-bottom: 1rem;
    align-items: center;
}

.footer-header-left {
    display: flex;
    gap: 0.75rem;
}

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

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

.footer-logo {
    height: 30px;
    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: 0.3rem;
    background: var(--surface-700, #181818);
    padding: 0.45rem 0.6rem;
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-on-dark, #f1f5f9);
    white-space: nowrap;
    border: 1px solid var(--surface-600);
}

.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: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.social-icons-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-icon-box {
    width: 32px;
    height: 32px;
    background: var(--surface-800);
    border: 1px solid var(--surface-700);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-icon-box svg {
    transition: filter 0.2s ease, transform 0.2s ease;
}

.social-icon-box img {
    display: block;
    width: 16px;
    height: 16px;
}

.social-icon-box:hover {
    background: var(--surface-800);
}

.social-icon-box.telegram:hover {
    border-color: #229ED9;
    box-shadow: 0 0 10px rgba(34, 158, 217, 0.35);
}

.social-icon-box.kick:hover {
    border-color: #53fc18;
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.35);
}

.social-icon-box.instagram:hover {
    border-color: #E4405F;
    box-shadow: 0 0 10px rgba(228, 64, 95, 0.35);
}

.social-icon-box.youtube:hover {
    border-color: var(--brand-red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.35);
}

.social-icon-box.discord:hover {
    border-color: #5865F2;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.35);
}

.social-icon-box.twitter:hover {
    border-color: #1d9bf0;
    box-shadow: 0 0 10px rgba(29, 155, 240, 0.35);
}

.social-icon-box:hover svg {
    filter: brightness(1.25);
    transform: scale(1.1);
}

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

.download-btn {
    position: relative;
    overflow: visible;
    background: transparent;
    border: 1px solid rgba(var(--primary, 245, 158, 11), 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.download-btn:hover {
    border-color: var(--brand-red);
    color: var(--text-light);
}

.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.2rem;
    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: 0.58rem;
    color: var(--text-gray);
}

.btn-info span:last-child {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-on-dark, #f1f5f9);
}

/* ── Ayraç ── */
.footer-divider {
    border: none;
    height: 0;
    margin: 1rem 0;
    border-top: 1px solid rgba(var(--primary, 245, 158, 11), 0.2);
}

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

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

.footer-col h4 {
    color: var(--brand-red);
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: bold;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

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

.disclaimer-text {
    font-size: 0.72rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0;
    color: var(--text-gray);
}

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

.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;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
}

.copyright {
    font-size: 0.72rem;
    color: var(--text-gray, #4b5563);
}

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

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

.powered-by-text {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-gray, #4b5563);
    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: flex-start;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

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

    .footer-logo {
        height: 32px;
    }

    .download-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.65rem;
    }

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

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ════════════════════════
   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: 26px;
    }

    .footer-lang .lang-current {
        height: 32px;
        padding: 0 0.4rem;
        font-size: 0.63rem;
        box-sizing: border-box;
    }

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

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

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