/* ========================================
   MOBILE RESPONSIVE CSS — v2.0
   Yurt Dışı Yaşam Forumu — Full Mobile
======================================== */

/* ─── MOBILE DRAWER ─── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active { display: block; opacity: 1; }

.mobile-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 88vw);
    height: 100dvh;
    background: rgba(4, 12, 28, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--glass-border);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { right: 0; }

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.mobile-close-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.mobile-close-btn:hover {
    background: rgba(197,160,89,0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.mobile-nav { flex: 1; padding: 0.75rem 0; display: flex; flex-direction: column; }
.mobile-nav-link {
    display: block;
    padding: 0.85rem 1.5rem;
    color: rgba(240,244,255,0.85);
    font-size: 0.97rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-link:active,
.mobile-nav-link:hover {
    background: rgba(197,160,89,0.07);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
}
.mobile-nav-sub { padding-left: 2.5rem; font-size: 0.9rem; color: var(--text-muted); }
.mobile-nav-section {
    padding: 0.6rem 1.5rem 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.5rem;
}
.mobile-nav-cta {
    margin: 1rem 1.5rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, rgba(197,160,89,0.2), rgba(197,160,89,0.08));
    border: 1px solid rgba(197,160,89,0.4) !important;
    border-radius: 12px;
    text-align: center;
    color: var(--accent-color) !important;
    font-weight: 700;
    border-left: 1px solid rgba(197,160,89,0.4) !important;
}
.mobile-drawer-footer {
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
    border-top: 1px solid var(--glass-border);
}
.mobile-social-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}
.mobile-social-btn.whatsapp {
    background: rgba(37,211,102,0.15);
    border: 1px solid rgba(37,211,102,0.35);
    color: #25D366;
}
.mobile-social-btn.telegram {
    background: rgba(0,136,204,0.15);
    border: 1px solid rgba(0,136,204,0.35);
    color: #0088cc;
}
.mobile-social-btn:active { transform: scale(0.97); }

/* ─── TOUCH DEVICES ─── */
@media (hover: none) and (pointer: coarse) {
    body { cursor: auto !important; }
    a, button, input, textarea, .glass-card { cursor: pointer !important; }
    .custom-cursor-dot,
    .custom-cursor-glow { display: none !important; }

    /* Disable heavy animations */
    .cinematic-img { animation: none !important; }
    .floating-item { animation: none !important; }
    .particle { display: none !important; }

    /* Remove hover lift on touch */
    .glass-card:hover { transform: none !important; }
    .contact-card:hover { transform: none !important; }
    .hero-badge:hover { transform: none !important; }

    /* Fast tap response */
    a, button { -webkit-tap-highlight-color: rgba(197,160,89,0.15); }
    .desktop-menu a::after { display: none; }
    .dropdown-menu { display: none !important; }
}

/* ════════════════════════════════════════
   TABLET — max 1024px
════════════════════════════════════════ */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .desktop-menu { gap: 1.5rem; }
    .section-header h2 { font-size: 2.6rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ════════════════════════════════════════
   TABLET/MOBILE BREAKPOINT — max 900px
════════════════════════════════════════ */
@media (max-width: 900px) {
    .desktop-menu { display: none !important; }
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px; height: 44px;
        background: rgba(197,160,89,0.1);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        color: var(--text-main);
    }
}

/* ════════════════════════════════════════
   MOBILE — max 768px
════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── CONTAINER ── */
    .container { padding: 0 1rem !important; }
    section > .container { padding-left: 1rem !important; padding-right: 1rem !important; }

    /* ── SECTIONS ── */
    section { padding: 4rem 0 !important; }
    .section-header { margin-bottom: 2.5rem !important; }
    .section-header h2 { font-size: 1.85rem !important; }
    .section-header p { font-size: 0.95rem !important; }

    /* ── HERO ── */
    .hero-full,
    .hero-section {
        height: auto !important;
        min-height: 100svh !important;
    }
    .hero-container {
        padding-top: 100px !important;
        padding-bottom: 2.5rem !important;
    }
    .hero-title {
        font-size: clamp(1.9rem, 6vw, 2.5rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.15 !important;
        margin-bottom: 1.2rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.8rem !important;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100% !important;
        text-align: center !important;
        font-size: 0.97rem !important;
        padding: 0.95rem 1.5rem !important;
    }
    .hero-badges {
        margin-top: 2rem !important;
        gap: 0.6rem !important;
        flex-wrap: wrap !important;
    }
    .hero-badge {
        font-size: 0.78rem !important;
        padding: 0.45rem 0.9rem !important;
    }
    .hero-pill { font-size: 0.72rem !important; }

    /* ── GRIDS ── */
    .team-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .audience-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    .why-poland-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .cities-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    /* Team card image height */
    .team-grid .glass-card img { height: 180px !important; }

    /* City card image */
    .city-img-wrap { height: 200px !important; }

    /* ── GLASS CARDS ── */
    .glass-card { padding: 1.5rem !important; border-radius: 14px !important; }

    /* ── TIMELINE ── */
    .timeline-item { padding-left: 60px !important; margin-bottom: 2.5rem !important; }
    .timeline-dot {
        left: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.82rem !important;
    }
    .timeline-line { left: 24px !important; }

    /* ── WHY US SECTION ── */
    .why-us-title {
        font-size: 2rem !important;
        max-width: 100% !important;
    }
    .why-us-subtitle {
        font-size: 1rem !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }
    .why-us-item { gap: 1rem !important; }
    .why-us-icon { width: 42px !important; height: 42px !important; flex-shrink: 0; }

    /* ── ABOUT PAGE ── */
    .about-title { font-size: 2.2rem !important; }
    .about-img { border-radius: 12px !important; }

    /* ── CONTACT PAGE ── */
    .contact-hero { padding-top: 100px !important; padding-bottom: 5rem !important; }
    .contact-h1 { font-size: clamp(1.9rem, 7vw, 2.6rem) !important; }
    .contact-card { padding: 1.75rem 1.25rem !important; }
    .contact-card-icon { width: 64px !important; height: 64px !important; font-size: 1.8rem !important; }
    .contact-address { margin-top: 3rem !important; padding: 2rem 1.25rem !important; }

    /* ── SERVICE PAGES ── */
    .service-hero-title { font-size: 2rem !important; }
    .service-hero-subtitle { font-size: 1rem !important; }
    .service-card-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

    /* ── UNIVERSITIES ── */
    .uni-card { padding: 1.5rem !important; }
    .uni-card h3 { font-size: 1.2rem !important; }

    /* ── FAQ ── */
    .faq-q { font-size: 1rem !important; }

    /* ── FOOTER ── */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 3rem 1.5rem !important;
    }
    .footer-cta { padding: 4rem 1.25rem !important; }
    .footer-cta h2 { font-size: 1.75rem !important; }
    .footer-cta p { font-size: 0.97rem !important; }

    /* ── AUDIO & SOCIALS ── */
    .audio-controller {
        bottom: 12px; left: 12px;
        padding: 0.45rem 0.85rem;
        font-size: 0.68rem;
        gap: 0.4rem;
    }
    .floating-socials { bottom: 12px; right: 12px; gap: 0.6rem; }
    .social-btn { width: 44px; height: 44px; }

    /* ── STAT NUMBERS ── */
    .stat-number { font-size: 2.8rem !important; }

    /* ── INLINE STYLE OVERRIDES (fallback) ── */
    section[style*="padding-top: 150px"],
    section[style*="padding-top:150px"] {
        padding-top: 100px !important;
        padding-bottom: 5rem !important;
    }
    section[style*="padding: 8rem"],
    section[style*="padding:8rem"] { padding: 4rem 0 !important; }
    section[style*="padding: 10rem"],
    section[style*="padding:10rem"] { padding: 5rem 0 !important; }
    section[style*="padding: 6rem"],
    section[style*="padding:6rem"] { padding: 3.5rem 0 !important; }
    section[style*="padding-top: 4rem"] { padding-top: 2.5rem !important; }

    /* inline hero h1 */
    .hero-section h1[style],
    section h1[style*="3.5rem"],
    section h1[style*="3.8rem"] {
        font-size: clamp(1.9rem, 6vw, 2.6rem) !important;
    }
    /* inline hero buttons stack */
    .hero-section div[style*="display:flex"][style*="gap:1rem"],
    .hero-section div[style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.8rem !important;
    }
    .hero-section .cta-button { width: 100% !important; text-align: center !important; }

    /* inline badge row */
    .hero-section div[style*="margin-top:5rem"],
    .hero-section div[style*="margin-top: 5rem"] {
        flex-wrap: wrap !important;
        gap: 0.6rem !important;
        margin-top: 2rem !important;
    }

    /* inline grids */
    div[style*="minmax(320px"], div[style*="minmax(300px"],
    div[style*="minmax(280px"], div[style*="minmax(250px"] {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    div[style*="minmax(200px"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* inline timeline */
    div[style*="padding-left:100px"],
    div[style*="padding-left: 100px"] {
        padding-left: 60px !important;
        margin-bottom: 2.5rem !important;
    }
    div[style*="padding-left:100px"] > div[style*="left:20px"],
    div[style*="padding-left: 100px"] > div[style*="left: 20px"] {
        left: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.82rem !important;
    }
    div[style*="left:35px"][style*="width:2px"],
    div[style*="left: 35px"][style*="width: 2px"] { left: 24px !important; }

    /* inline card image height */
    div[style*="height: 250px"],
    div[style*="height:250px"] { height: 200px !important; }
    div[style*="height: 300px"],
    div[style*="height:300px"] { height: 180px !important; }

    /* inline contact */
    div[style*="margin-top:6rem"],
    div[style*="margin-top: 6rem"] { margin-top: 3rem !important; }

    /* inline whyUs section */
    section[style*="padding:10rem 0"] { padding: 5rem 0 !important; }
    section[style*="padding:10rem 0"] .container h2 {
        font-size: 2rem !important;
        max-width: 100% !important;
    }
    section[style*="padding:10rem 0"] .container p {
        max-width: 100% !important;
        font-size: 1rem !important;
    }
}

/* ════════════════════════════════════════
   SMALL MOBILE — max 480px
════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(1.65rem, 7.5vw, 2rem) !important; }
    .section-header h2 { font-size: 1.6rem !important; }

    /* Single column everywhere */
    .team-grid { grid-template-columns: 1fr !important; }
    .audience-grid { grid-template-columns: 1fr !important; }
    div[style*="minmax(200px"] { grid-template-columns: 1fr !important; }
    div[style*="minmax(250px"] { grid-template-columns: 1fr !important; }

    /* Timeline compact */
    div[style*="padding-left:100px"],
    div[style*="padding-left: 100px"] { padding-left: 48px !important; }

    /* Footer CTA */
    .footer-cta h2 { font-size: 1.4rem !important; }
    .mobile-drawer { width: 92vw; }
    .logo-text { font-size: 1.5rem !important; }

    /* Audio icon only */
    .audio-controller span { display: none; }
    .audio-controller { padding: 0.55rem 0.65rem !important; border-radius: 50% !important; }

    /* Contact h1 */
    section h1[style*="3.8rem"] { font-size: 1.75rem !important; }
}

/* ════════════════════════════════════════
   LANDSCAPE MOBILE — max 900px + landscape
════════════════════════════════════════ */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-full, .hero-section {
        height: auto !important;
        min-height: 100svh !important;
        padding-top: 80px !important;
        padding-bottom: 3rem !important;
    }
    .hero-title { font-size: clamp(1.6rem, 5vw, 2.2rem) !important; }
    .mobile-drawer { height: 100dvh; }
    section { padding: 3.5rem 0 !important; }
}

/* ════════════════════════════════════════
   PWA / SAFE-AREA SUPPORT (iPhone notch)
════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-top)) {
    .glass-nav {
        padding-top: env(safe-area-inset-top);
        height: calc(76px + env(safe-area-inset-top));
    }
    .mobile-drawer {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        height: 100dvh;
    }
    .floating-socials {
        bottom: calc(32px + env(safe-area-inset-bottom));
    }
    .audio-controller {
        bottom: calc(32px + env(safe-area-inset-bottom));
    }
}
@media (max-width: 768px) {
    @supports (padding: env(safe-area-inset-top)) {
        .floating-socials { bottom: calc(12px + env(safe-area-inset-bottom)); }
        .audio-controller { bottom: calc(12px + env(safe-area-inset-bottom)); }
    }
}
