/* arkacep organizasyon - Kapsamlı Mobil Uyumluluk Katmanı */
/* Bu dosya tüm bileşenler için ekstra mobil optimizasyonları içerir */

/* ===================================================================
   MOBİL NAV İÇİ CTA BUTONU
   =================================================================== */

/* Masaüstünde gizle */
.nav-mobile-cta {
    display: none !important;
}

/* Mobilde göster ve Hamburger Menü Gelişmiş Etkileşimi */
@media (max-width: 992px) {
    .nav-mobile-cta {
        display: block !important;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-cta-btn {
        width: 100%;
        padding: 0.85rem 1.5rem !important;
        font-size: 0.95rem !important;
        text-align: center;
        justify-content: center;
    }

    /* Hamburger Menü Dokunma Alanı (44x44px WCAG Dokunma Hedefi) */
    .menu-toggle {
        width: 44px !important;
        height: 44px !important;
        padding: 13px 10px !important;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    /* Mobil Menü Konsepti (Tam Ekran Overlay) - Header.css'de tanımlanmıştır */
    /* Bu kurallar header.css'deki @media (max-width: 992px) tarafından yönetilmektedir */
    
    /* Mobil Menü Linkleri (Dikey Akış & 44px Touch Targets) */
    .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem !important;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px !important; /* WCAG standardı minimum dokunma yüksekliği */
        padding: 0.7rem 1rem !important;
        font-size: 1rem !important;
        color: var(--color-text-secondary) !important;
        border-radius: var(--border-radius-sm);
        transition: background-color 0.3s ease, color 0.3s ease !important;
    }
    
    .nav-link:hover, .nav-link:active {
        background: rgba(212, 175, 55, 0.08) !important;
        color: var(--color-gold) !important;
    }
    
    .nav-link::after {
        display: none !important;
    }
}

/* ===================================================================
   GENEL MOBİL İYİLEŞTİRMELER
   =================================================================== */

/* Dokunmatik cihazlar için dokunma vurgulamalarını temizle */
@media (hover: none) {
    .glass-panel:hover {
        border-color: var(--glass-border);
        box-shadow: var(--glass-shadow);
    }
    
    /* Dokunmatik cihazlarda hover overlay'i varsayılan olarak göster */
    .portfolio-hover-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(15, 10, 5, 0.75) 0%, transparent 55%) !important;
    }
}

/* ===================================================================
   TABLET BREAKPOINT (max-width: 768px)
   =================================================================== */
@media (max-width: 768px) {
    
    /* --- HEADER --- */
    .main-header {
        top: 0.75rem;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        transform: none !important;
        padding: 0.65rem 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-dot {
        font-size: 1.8rem;
    }
    
    .logo-sub {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }
    
    /* Mobil header'da CTA butonunu gizle, hamburger menüde WhatsApp zaten var */
    .btn-header {
        display: none !important;
    }
    
    /* Tablet menü konumlandırması */
    .nav-menu {
        left: auto !important;
        right: 0 !important;
    }
    
    /* --- HERO SECTION --- */
    .hero-section {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-tagline {
        font-size: 0.68rem;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
    }
    
    .hero-title {
        font-family: var(--font-body);
        font-weight: 800;
        font-size: 1.9rem;
        line-height: 1.2;
        letter-spacing: -0.6px;
    }
    
    .hero-desc {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.85rem;
        align-items: stretch; /* Tam hizalama için stretch */
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: none; /* Mobilde tam genişlik */
        justify-content: center;
    }
    

    
    /* --- HİZMETLERİMİZ PORTALLAR --- */
    /* Konsolide edilerek aşağıdaki kaydırılabilir ultra kompakt slider altına taşındı */
    
    /* --- SİHİRLİ CEP ÇEKMECESİ --- */
    .drawer-layout {
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .drawer-heading {
        font-size: 1.4rem;
    }
    
    .drawer-text {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }
    
    .drawer-triggers {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    
    .drawer-btn {
        padding: 0.7rem 1rem;
        font-size: 0.88rem;
        flex: 1 1 calc(50% - 0.3rem);
        min-width: 0;
        text-align: center;
    }
    
    .drawer-btn:hover, .drawer-btn.active {
        transform: none;
    }
    
    .drawer-3d-screen {
        height: 220px;
        transform: none;
        border-width: 4px;
    }
    
    /* --- PORTFOLYO MASONRY --- */
    .portfolio-item {
        height: 260px;
    }
    
    .portfolio-hover-overlay {
        padding: 1.25rem;
    }
    
    .portfolio-hover-overlay h4 {
        font-size: 1.05rem;
    }
    
    .portfolio-hover-overlay span {
        font-size: 0.75rem;
    }
    
    /* --- SÜREÇ AKIŞI --- */
    .process-flow {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-top: 2rem;
    }
    
    .process-step-card {
        padding: 2rem 1.25rem 1.75rem 1.25rem;
        min-height: auto;
        height: auto;
    }
    
    .process-step-card h3 {
        font-size: 1.15rem;
    }
    
    .process-step-card p {
        font-size: 0.9rem;
        line-height: 1.55;
    }
    
    .step-badge {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin: 0 auto 1rem auto;
    }
    
    /* --- SSS / FAQ --- */
    .faq-trigger {
        padding: 1.15rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-content p {
        padding: 0 1.25rem 1.15rem 1.25rem;
        font-size: 0.92rem;
    }
    
    /* --- FOOTER --- */
    .main-footer {
        padding: 4rem 0 2rem 0;
    }
    
    .footer-container {
        gap: 3rem;
    }
    
    .footer-top {
        gap: 3rem;
    }
    
    .footer-about {
        font-size: 0.92rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title-wrap {
        margin-bottom: 1.75rem;
    }
    
    .section-title {
        font-size: 1.55rem;
    }
    
    .section-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
    
    .section-title-wrap p {
        font-size: 0.85rem;
    }
    
    /* --- ÇEREZ BANNERI ve WHATSAPP ÇAKIŞMASI --- */
    .cookie-banner {
        z-index: 998; /* Çerez banner'ı WhatsApp'ın altında kalmamalı */
    }
    
    .whatsapp-float {
        z-index: 997;
    }
    
    /* --- HİZMETLERİMİZ BÖLÜMÜ YENİ SEKMELİ VİTRİN DÜZENİNE GEÇİRİLDİ (addons.css altındaki responsive kuralları devralır) --- */
}

/* ===================================================================
   KÜÇÜK MOBİL BREAKPOINT (max-width: 576px)
   =================================================================== */
@media (max-width: 576px) {
    
    /* --- HEADER --- */
    .main-header {
        top: 0.5rem;
        left: 0.5rem !important;
        right: 0.5rem !important;
        width: auto !important;
        transform: none !important;
        padding: 0.6rem 0.85rem;
        border-radius: var(--border-radius-lg);
    }
    
    .logo {
        font-size: 1.35rem;
    }
    
    .logo-dot {
        font-size: 1.6rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 1px;
        margin-left: 3px;
    }
    
    .nav-menu {
        left: auto !important;
        right: 0 !important;
        padding: 0 !important; /* Dikeyde ortalanmış düzeni korur */
    }
    
    .nav-list {
        gap: 1.15rem;
    }
    
    .nav-link {
        font-size: 1.05rem;
    }
    
    /* --- HERO SECTION --- */
    .hero-section {
        padding-top: 4.5rem;
        padding-bottom: 1.5rem;
    }
    
    .hero-container {
        gap: 1.75rem;
    }
    
    .hero-tagline {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
    
    .hero-title {
        font-size: 1.65rem;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        line-height: 1.55;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.92rem;
        width: 100%;
        max-width: none; /* Mobilde tam genişlik */
    }

    /* Mobilde Çerez Banner'ı Açıkken WhatsApp'ı Yukarı Kaydır */
    .cookie-banner.show ~ .whatsapp-float {
        bottom: 15rem !important; /* Çerez banner'ının üzerine binmesini engelle */
    }
    

    
    .card-info {
        padding: 0.6rem;
    }
    
    .card-tag {
        font-size: 0.6rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    /* --- HİZMETLERİMİZ PORTALLAR --- */
    /* max-width: 768px altındaki konsolide kurallar geçerlidir */
    
    /* --- SİHİRLİ CEP ÇEKMECESİ --- */
    .drawer-layout {
        padding: 1.25rem;
        gap: 1.5rem;
    }
    
    .drawer-heading {
        font-size: 1.5rem;
    }
    
    .drawer-text {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .drawer-triggers {
        gap: 0.5rem;
    }
    
    .drawer-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .drawer-3d-screen {
        height: 190px;
        border-width: 3px;
    }
    
    /* --- PORTFOLYO MASONRY --- */
    .portfolio-item {
        height: 240px;
    }
    
    .portfolio-hover-overlay {
        padding: 1rem;
    }
    
    .portfolio-hover-overlay h4 {
        font-size: 1rem;
    }
    
    /* --- SÜREÇ AKIŞI --- */
    .process-flow {
        gap: 1.5rem;
        padding-top: 1rem;
    }
    
    .process-step-card {
        padding: 1.75rem 1rem 1.5rem 1rem;
        min-height: auto;
        height: auto;
    }
    
    .process-step-card h3 {
        font-size: 1.1rem;
    }
    
    .process-step-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .step-badge {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
        margin: 0 auto 0.85rem auto;
    }
    
    /* --- SSS / FAQ --- */
    .faq-trigger {
        padding: 1rem;
        font-size: 0.92rem;
        gap: 0.75rem;
    }
    
    .faq-icon {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .faq-content p {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.88rem;
    }
    
    /* --- FOOTER --- */
    .main-footer {
        padding: 3rem 0 1.5rem 0;
    }
    
    .footer-container {
        gap: 2rem;
    }
    
    .footer-top {
        gap: 2rem;
    }
    
    .footer-about {
        font-size: 0.88rem;
    }
    
    .links-column h4 {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }
    
    .links-column a {
        font-size: 0.88rem;
    }
    
    .footer-address {
        font-size: 0.88rem;
    }
    
    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 0.82rem;
    }
    
    .footer-legal {
        gap: 1.25rem;
        flex-wrap: wrap;
    }
    
    .footer-legal a {
        font-size: 0.82rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title-wrap {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1px;
        margin-bottom: 0.4rem;
    }
    
    .section-title-wrap p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* --- ÇEREZ BANNERI --- */
    .cookie-banner {
        bottom: 0.75rem;
        left: 0.75rem;
        width: calc(100% - 1.5rem);
        padding: 0.85rem;
        gap: 0.75rem;
    }
    
    .cookie-content p {
        font-size: 0.8rem;
    }
    
    .btn-cookie {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* --- YASAL MODAL --- */
    .legal-modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 1.75rem 1.25rem;
        border-radius: var(--border-radius-md);
    }
    
    .legal-modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.6rem;
    }
    
    .legal-modal-body {
        padding-right: 0.5rem;
        font-size: 0.88rem;
    }
    
    .legal-modal-body h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .legal-modal-body h4 {
        font-size: 1rem;
        margin-top: 1.15rem;
        margin-bottom: 0.5rem;
    }
    
    /* --- WHATSAPP FLOAT MOBİL YÜKSEKLİĞİ --- */
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===================================================================
   ULTRA KÜÇÜK MOBİL BREAKPOINT (max-width: 420px)
   =================================================================== */
@media (max-width: 420px) {
    
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-family: var(--font-body);
        font-weight: 800;
        font-size: 1.45rem;
        line-height: 1.2;
    }
    
    .hero-tagline {
        font-size: 0.68rem;
    }
    
    .hero-desc {
        font-size: 0.88rem;
    }
    

    
    .card-info {
        padding: 0.4rem;
    }
    
    .card-tag {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
    
    .card-title {
        font-size: 0.78rem;
    }
    
    /* Portal alanı mobilde konsolide edilmiştir */
    
    /* Drawer */
    .drawer-heading {
        font-size: 1.35rem;
    }
    
    .drawer-btn {
        font-size: 0.75rem;
        padding: 0.55rem 0.6rem;
    }
    
    .drawer-3d-screen {
        height: 165px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.25rem;
    }
    
    /* FAQ trigger */
    .faq-trigger {
        font-size: 0.85rem;
        padding: 0.85rem;
    }
    
    /* Footer */
    .logo.footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-socials a {
        width: 38px;
        height: 38px;
    }
}

/* ===================================================================
   YATAY ORYANTASYONDAKİ TELEFONLAR (Landscape)
   =================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-buttons .btn {
        width: auto;
        max-width: none;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    

    
    .section {
        padding: 3rem 0;
    }
}

/* ===================================================================
   PERFORMANS: MOBİLDE AĞIR ANİMASYONLARI HAFIFLET
   =================================================================== */
@media (max-width: 768px) {
    /* 3D dönüşleri basitleştir */
    .portal-content {
        transform: none !important;
    }
    
    .portal-icon,
    .portal-title,
    .portal-desc,
    .portal-link {
        transform: none !important;
    }
    
    /* Süreç kartları 3D'yi kaldır */
    .process-step-card h3,
    .process-step-card p {
        transform: none !important;
    }
    
    .step-badge {
        transform: none !important; /* Badge artık relative, translateX gerekmiyor */
    }
    
    /* Hover/tilt: Dokunma cihazlarında basitleştir */
    .process-step-card:hover {
        transform: translateY(-5px) !important;
    }
    
    /* Ambient video'yu mobilde gizle (performans kazancı) */
    .ambient-video-wrapper {
        display: none;
    }
    
    /* Arka plan canvas'ında şeffaflığı artır */
    #ambient-canvas {
        opacity: 0.5;
    }
}

/* ===================================================================
   İOS-SPESİFİK DÜZELTMELER
   =================================================================== */

/* iOS Safari'de safe-area padding desteği ve çakışma yönetimi */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .main-footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
    
    .whatsapp-float {
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    
    .cookie-banner {
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    @media (max-width: 576px) {
        .cookie-banner.show ~ .whatsapp-float {
            bottom: calc(15rem + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* ===================================================================
   DOKUNMATIK CİHAZ SCROLL OPTİMİZASYONU
   =================================================================== */
@media (pointer: coarse) {
    /* Tüm butonlara minimum dokunma alanı (44px Apple WCAG standartı) */
    .btn,
    .faq-trigger,
    .drawer-btn,
    .nav-link,
    .portal-link,
    .footer-legal a,
    .links-column a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    

    
    /* Drawer 3D screen'de hover etkisi devre dışı */
    .drawer-3d-screen:hover {
        transform: none !important;
    }
}

/* ===================================================================
   SAYFA İÇİ AKIŞTA HORIZONTAL SCROLL BLOKLAMA (BÜTÜNSEL BLOKAJ)
   =================================================================== */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100%;
}

/* Tüm ana bileşenlerde yatay taşmayı engelle */
main,
section,
header,
footer,
div,
.ambient-video-wrapper,
#ambient-canvas,
.about-section,
.hero-section,
.video-portals-section,
.portfolio-section,
.process-section,
.faq-section {
    overflow-x: hidden !important;
}

/* 3D ve video arka planlarının yatay taşma yapmasını engelle */
#ambient-canvas,
.ambient-video-wrapper {
    width: 100% !important;
    height: 100% !important;
}

/* ===================================================================
   BİZ KİMİZ (#biz-kimiz) BÖLÜMÜ MOBİL KUSURSUZLAŞTIRMA
   =================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .about-info-side {
        padding: 2rem !important;
    }
    .about-image-frame {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: var(--border-radius-md) !important;
    }
    .about-img {
        border-radius: calc(var(--border-radius-md) - 6px) !important;
    }
    .about-img-overlay {
        border-radius: calc(var(--border-radius-md) - 6px) !important;
    }
}

@media (max-width: 576px) {
    .about-info-side {
        padding: 1.25rem 1rem !important;
    }
    .about-lead {
        font-size: 1rem !important;
        line-height: 1.45 !important;
        margin: 0.85rem 0 !important;
    }
    .about-desc {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.25rem !important;
    }
    .about-cities-tags {
        margin-top: 1rem !important;
        gap: 0.5rem !important;
    }
    .city-tag {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.75rem !important;
    }
    .about-image-frame {
        aspect-ratio: 16 / 9 !important; /* Proportional landscape photography ratio */
    }
}
