/**
 * Konya Web Tasarımcı - Duyarlı (Responsive) Tasarım Kuralları
 * 2026 Editorial + Industrial Architecture
 * Hedef Ekranlar: 1920px, 1440px, 1280px, 1024px, 768px, 480px, 375px
 */

/* ==========================================================================
   1. GENİŞ VE ORTA MASAÜSTÜ (1280px - 1024px)
   ========================================================================== */
@media (max-width: 1280px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr 1fr 280px;
        gap: 1.5rem;
    }

    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
        gap: 1.5rem;
    }

    .hero-grid {
        gap: 2.5rem;
    }

    .editorial-services-layout {
        gap: 2.5rem;
    }

    .guide-grid {
        gap: 2.5rem;
    }
}

/* ==========================================================================
   2. TABLET VE KÜÇÜK MASAÜSTÜ (1024px ve altı)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Desktop Navigasyonu Gizle, Hamburgeri Göster */
    .desktop-nav, .header-cta-btn, .header-phone-link {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero Grid Tek Kolon */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-desc {
        max-width: 100%;
    }

    /* Editorial About 1 Kolon */
    .editorial-about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Editorial Hizmetler 1 Kolon */
    .editorial-services-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-sticky-col {
        position: static;
    }

    /* Projeler Grid 2 Kolon */
    .editorial-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Rehber Bölümü Grid */
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .guide-toc-sidebar {
        display: none;
    }

    .guide-toc-mobile {
        display: block;
    }

    .guide-content-scroll {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    /* Pillar Page Layout & Reviews Tablet */
    .pillar-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pillar-toc-aside {
        display: none;
    }

    .mobile-toc {
        display: block;
    }

    .review-item-card {
        flex: 0 0 calc(50% - 0.65rem);
    }

    /* İletişim & Harita Grid 1 Kolon */
    .contact-map-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* İletişim Kartları & 12-Kolon Harita Tablet */
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .contact-office-map-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card-value,
    .contact-email-link {
        font-size: 1.05rem;
    }

    /* Bento Grid 2 Kolon */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Footer 3 Kolon */
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand-col {
        grid-column: span 3;
    }
}

/* ==========================================================================
   3. BÜYÜK MOBİL VE TABLET (768px ve altı)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .section-py {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .section-py-sm {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Projeler Grid Tek Kolon */
    .editorial-projects-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Blog Grid Tek Kolon */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Bento Tek Kolon */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    /* Süreç Timeline Dikey */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Hero Poster Padding */
    .hero-poster {
        padding: 1.5rem;
    }

    .poster-disciplines-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Footer Tek Kolon */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-brand-col {
        grid-column: span 1;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* Harita Yüksekliği & İletişim Kartları */
    .contact-map-col,
    .map-container,
    .contact-office-map,
    .contact-office-map iframe {
        min-height: 340px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .contact-card-value,
    .contact-email-link {
        font-size: 1rem;
    }

    /* Çerez Bildirimi */
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   4. AKILLI TELEFONLAR & MOBİL OPTİMİZASYONU (480px ve altı)
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .contact-info-card {
        padding: 1.1rem 0.95rem;
    }

    .contact-card-value,
    .contact-email-link {
        font-size: 0.95rem;
    }

    .contact-office-info {
        padding: 1.75rem 1.25rem;
    }

    .btn-lg {
        padding: 0.88rem 1.5rem;
        font-size: 0.95rem;
    }

    .service-item-main {
        gap: 1rem;
    }

    .service-item-title {
        font-size: 1.08rem;
    }

    .guide-chapter-title {
        font-size: 1.25rem;
    }

    .review-item-card {
        flex: 0 0 100%;
        min-width: 260px;
    }

    /* WhatsApp Butonu Mobilde Sabit Alt Çubuğa Entegre Olur */
    .whatsapp-floating-btn {
        display: none !important;
    }

    .scroll-top-btn {
        bottom: 5.5rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }

    /* Mobil Sabit Alt CTA Çubuğu */
    .mobile-sticky-bar {
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
        z-index: 998;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text-primary);
        padding: 6px 0;
        border-right: 1px solid var(--border-color);
    }

    .mobile-bar-item:last-child {
        border-right: none;
    }

    .mobile-bar-call {
        color: var(--text-primary);
    }

    .mobile-bar-wa {
        color: #25D366;
    }

    .mobile-bar-cta {
        background: var(--orange);
        color: #FFFFFF;
    }

    body {
        padding-bottom: 60px;
    }

    .cookie-banner {
        bottom: 60px;
    }
}

/* ==========================================================================
   5. MOBİL MENÜ ÇEKMECESİ (DRAWER)
   ========================================================================== */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-surface);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--border-color);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 1.5rem 1.25rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link, .mobile-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link.active {
    color: var(--orange);
}

.mobile-accordion-body {
    display: none;
    padding: 0.5rem 0 1rem 1rem;
    border-top: 1px dashed var(--border-color);
}

.mobile-accordion-body.open {
    display: block;
}

.mobile-sub-group {
    margin-bottom: 1rem;
}

.mobile-sub-title {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.mobile-sub-group a, .mobile-accordion-body > a {
    display: block;
    padding: 0.45rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.mobile-sub-group a:hover, .mobile-accordion-body > a:hover {
    color: var(--orange);
}

.mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Hamburger Aktif Hali (X) */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   6. YATAY TAŞMA & ERİŞİLEBİLİRLİK
   ========================================================================== */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
