/* ============================================================
   Biray Çelik — Evrensel Mobil Uyumluluk CSS
   Tüm sayfalara <link href="assets/css/mobile-fix.css"> ile eklenir
   ============================================================ */

/* ---- Mobil Toggle (Hamburger) ---- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 10005 !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.mobile-toggle span,
.mobile-toggle div {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: #ffffff !important; /* Beyaz yapıldı */
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobil Menü Overlay ---- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B1620;
    z-index: 100001; /* Header'ın (99999) üstüne çıkması için yükseltildi */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.m-menu-links {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}
.m-menu-links li {
    margin: 22px 0;
}
.m-menu-link {
    color: white;
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Onest', sans-serif;
    transition: color 0.3s;
}
.m-menu-link:hover {
    color: #C5A059;
}
.m-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
}
.m-menu-close:hover {
    color: #C5A059;
    transform: rotate(90deg);
}

/* ---- Mobil Alt Aksiyon Barı ---- */
.mobile-actions-bar {
    display: none;
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 65px;
    background: rgba(11, 22, 32, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 18px;
    z-index: 10001;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px;
    gap: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.m-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s;
    gap: 4px;
    font-family: 'Onest', sans-serif;
    letter-spacing: 0.03em;
}
.m-action-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.btn-call { background: #132331; }
.btn-call:hover { background: #1e3a55; }
.btn-whatsapp { background: #25D366; color: white !important; }
.btn-whatsapp:hover { background: #1fbb55; }
.btn-offer { background: #C5A059; color: #0B1620 !important; font-weight: 800; }
.btn-offer:hover { background: #d4b068; }

/* ---- Responsive Breakpoints ---- */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 20px !important;
        max-width: 100% !important;
    }

    /* Navbar mobil */
    .navbar .container,
    .navbar > .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        grid-template-columns: none !important;
        position: relative !important;
        width: 100% !important;
    }

    /* Desktop nav'ı gizle, hamburger'ı göster */
    .nav-links,
    .nav-container,
    .nav-right-desktop,
    .nav-desktop,
    .header-top {
        display: none !important;
    }
    .mobile-toggle {
        display: flex !important;
    }

    /* Alt bar göster, yüzen butonları gizle */
    .mobile-actions-bar {
        display: grid !important;
    }
    .floating-contact {
        display: none !important;
    }

    /* Section padding küçült */
    .section-padding {
        padding: 60px 0 !important;
    }

    /* Grid tek kolona in */
    .about-split-grid,
    .values-grid,
    .cert-grid,
    .production-grid,
    .footer-grid,
    .contact-grid,
    .services-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Section başlıkları küçült */
    .section-title {
        font-size: clamp(28px, 8vw, 44px) !important;
    }

    /* Hero başlık */
    .hero-title {
        font-size: clamp(30px, 9vw, 48px) !important;
    }

    /* Page hero height */
    .page-hero,
    .services-hero,
    .projects-hero,
    .blog-hero,
    .contact-hero {
        min-height: 240px !important;
        height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    /* Main'e üst padding - header boşluğu */
    main {
        padding-top: 0;
    }

    /* Footer küçük ekran */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }

    /* Filter bar yatay scroll */
    .filter-section,
    .filter-section .container,
    #filter-wrap,
    .filter-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        padding-bottom: 12px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
    }
    .filter-section .container::-webkit-scrollbar,
    #filter-wrap::-webkit-scrollbar,
    .filter-container::-webkit-scrollbar,
    .filter-section::-webkit-scrollbar {
        display: none !important;
    }
    .filter-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 8px 18px !important;
        font-size: 11px !important;
    }

    /* Proje kartları mobil grid */
    .projects-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobil Hizmet/Proje Kartları Premium UI/UX */
    .s-card, .service-card, .proje-karti, .value-card {
        background: linear-gradient(145deg, #0e1e2d 0%, #070d13 100%) !important;
        border: 1px solid rgba(216, 178, 122, 0.25) !important;
        border-radius: 20px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05) !important;
        position: relative;
        overflow: hidden;
        padding: 35px 25px !important;
    }
    /* Arka plan ui/ux mesh efekti/ışıltısı */
    .s-card::before, .service-card::before, .proje-karti::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 180px;
        height: 180px;
        background: radial-gradient(circle, rgba(216, 178, 122, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
    .s-card::after, .service-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #132331, #C5A059);
    }
    
    /* Kart İçi Tipografi Koruması (Beyaz Temada Koyu kalmasın) */
    .s-title, .s-card h3, .proje-karti h3, .service-title {
        color: #F8FAFC !important;
        font-family: 'Onest', sans-serif !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em;
    }
    .s-desc, .s-card p, .proje-karti p {
        color: rgba(237, 239, 242, 0.8) !important;
    }
    .s-features li, .tech-label {
        color: rgba(237, 239, 242, 0.9) !important;
    }
    .s-features li svg {
        stroke: #C5A059 !important;
    }
    /* İkonlara hava katan drop shadow */
    .s-icon, .service-icon {
        filter: drop-shadow(0px 8px 12px rgba(11, 22, 32, 0.6)) drop-shadow(0 0 15px rgba(216, 178, 122, 0.25)) !important;
    }

    /* form */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Blog kartı */
    .blog-card .blog-img-box {
        height: 180px !important;
    }

    /* Cookie banner mobil */
    #cookie-banner {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    #cookie-banner div {
        max-width: 100% !important;
        font-size: 13px !important;
    }

    /* Logo küçük ekran */
    .logo-main {
        font-size: 24px !important;
    }
    .logo-sub {
        font-size: 9px !important;
    }

    /* Body alt padding - mobile bar için */
    body {
        padding-bottom: 90px;
    }

    /* Hakkımızda özel */
    .about-split-grid {
        grid-template-columns: 1fr !important;
    }
    .team-card {
        padding: 24px !important;
    }
    .cert-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    .ref-grid {
        grid-template-columns: 1fr !important;
    }

    /* İletişim */
    .contact-map {
        height: 280px !important;
    }

    /* Overlay scroll için */
    .cert-modal-dialog,
    .gallery-modal-dialog {
        flex-direction: column !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-title {
        font-size: clamp(24px, 10vw, 36px) !important;
    }
    .section-title {
        font-size: clamp(24px, 9vw, 36px) !important;
    }
    .btn {
        padding: 14px 24px !important;
        font-size: 12px !important;
    }
}
