/**
 * Koza Muhallebicisi - Responsive Stil Kuralları (responsive.css)
 * 
 * Masaüstü (1920px, 1440px, 1200px), Tablet (1024px, 768px) ve
 * Mobil (430px, 390px, 375px) cihazlar için kusursuz uyum katmanı.
 */

/* --------------------------------------------------------------------------
   1. GENİŞ EKRANLAR & LAPTOP (1200px - 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
        gap: 32px;
    }

    .hero-content {
        max-width: 520px;
    }

    .about-grid {
        gap: 36px;
    }
}

/* --------------------------------------------------------------------------
   2. TABLET EKRANLARI (1024px - 769px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .header-container {
        height: 78px;
    }

    /* Mobil / Tablet Menü Tetikleyici */
    .nav-toggle {
        display: flex;
    }

    /* Mobil Drawer Menü */
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--color-background);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
        gap: 24px;
        z-index: 1002;
        transition: right 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        overflow-y: auto;
    }

    .primary-nav.is-open {
        right: 0;
    }

    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-drawer-title {
        font-family: var(--font-heading);
        font-size: 1.3rem;
        color: var(--color-primary);
        font-weight: 700;
    }

    .nav-drawer-close {
        background: none;
        border: none;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        color: var(--color-primary);
        padding: 4px;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .header-action {
        width: 100%;
        margin-top: 10px;
    }

    .header-action .btn-order {
        width: 100%;
        padding: 13px;
    }

    /* Menü Arka Plan Perdesi */
    .nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
    }

    .nav-backdrop.is-active {
        opacity: 1;
        visibility: visible;
    }

    /* 4'lü Özellik Şeridi (2x2 Grid) */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card:not(:last-child)::after {
        display: none;
    }

    /* Kategori Kartları (2 Kolon) */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Hakkımızda Bölümü (Dikey Yığın) */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-card {
        border-radius: var(--border-radius-lg);
    }

    .about-content-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .about-text-wrap {
        max-width: 100%;
    }

    .bursa-heritage-badge {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        max-width: 100%;
        text-align: left;
    }

    /* Hızlı İletişim Bandı (2x2) */
    .quick-contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Footer (2 Kolon) */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

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

/* --------------------------------------------------------------------------
   3. MOBİL CİHAZLAR (768px ve altı)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    /* Hero Alanı */
    .hero-section {
        min-height: 580px;
    }

    .hero-slides-wrapper {
        height: 580px;
    }

    .hero-slide {
        background-position: center;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        padding-top: 50px;
        padding-bottom: 70px;
    }

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

    .hero-eyebrow {
        font-size: 0.75rem;
        letter-spacing: 3.5px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: clamp(34px, 8.5vw, 44px);
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-decorative-quote {
        display: none; /* Küçük ekranda temiz alan için gizlenir */
    }

    .hero-controls-container {
        bottom: 20px;
        justify-content: center;
    }

    /* Bölüm Başlıkları ve "Tüm Ürünler" Konumlandırması */
    .section-header-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 32px;
    }

    .section-header-action {
        position: static;
        transform: none;
    }

    /* 4'lü Özellikler */
    .features-strip-section {
        padding: 24px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 8px 12px;
    }

    /* Kategori Kartları */
    .categories-showcase-section {
        padding: 60px 0;
    }

    /* Hakkımızda */
    .about-story-section {
        padding: 60px 0;
    }

    .about-img {
        height: 280px;
    }

    .about-quote-overlay {
        bottom: 18px;
        left: 18px;
    }

    .script-quote {
        font-size: 1.8rem;
    }

    /* Banner */
    .special-occasions-banner {
        padding: 60px 0;
    }

    .banner-title {
        font-size: 1.85rem;
    }

    .banner-subtitle {
        font-size: 0.95rem;
    }

    /* Hızlı İletişim Bandı */
    .quick-contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-contact-item {
        background-color: #FAF6F0;
        padding: 14px 16px;
    }

    /* Footer */
    .footer-top {
        padding: 50px 20px 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   4. KÜÇÜK MOBİL CİHAZLAR (430px, 390px, 375px ve altı)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-container {
        height: 72px;
    }

    .logo-title {
        font-size: 1.25rem;
    }

    .logo-subtitle {
        font-size: 0.55rem;
    }

    .site-header-logo-img {
        height: 44px;
        max-height: 44px;
    }

    .hero-section {
        min-height: 540px;
    }

    .hero-slides-wrapper {
        height: 540px;
    }

    .btn-hero,
    .btn-primary,
    .btn-banner {
        width: 100%;
        padding: 13px 20px;
    }

    .newsletter-input-group {
        flex-direction: column;
        border-radius: var(--border-radius);
        padding: 6px;
        gap: 8px;
    }

    .newsletter-input-group input {
        width: 100%;
        padding: 10px 12px;
    }

    .btn-newsletter {
        width: 100%;
        padding: 11px;
    }

    .category-title {
        font-size: 1.15rem;
    }

    /* Ürün Izgarası Tek Kolon */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-title {
        font-size: 2rem;
    }

    .thumb-item-btn {
        width: 70px;
        height: 56px;
    }
}

/* Kategori ve Ürün Detayı İçin Tablet & Laptop Ek Kuralları */
@media screen and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .catalog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-pill {
        flex-shrink: 0;
    }
}

@media screen and (max-width: 768px) {
    .product-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-cta-branch,
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .product-story-card {
        padding: 24px 18px;
    }

    .product-highlights-box {
        gap: 10px;
    }

    .highlight-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* --------------------------------------------------------------------------
   5. HAKKIMIZDA SAYFASI RESPONSIVE UYARLAMALARI
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .bursa-heritage-card {
        padding: 40px 32px;
        gap: 30px;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    .bursa-heritage-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 28px;
    }

    .bursa-heritage-art {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(84, 42, 18, 0.1);
    }

    .bursa-heritage-illustration {
        max-width: 100px;
        margin-bottom: 0;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-card,
    .vision-card {
        padding: 30px 24px;
    }

    .production-img-wrap {
        height: 260px;
    }

    .about-quote-banner {
        padding: 60px 0;
    }

    .manifesto-quote {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    .about-cta-section {
        padding: 60px 0;
    }

    .cta-actions-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .cta-actions-group .btn {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .about-intro-section {
        padding: 50px 0 35px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .value-card {
        padding: 24px 18px;
    }

    .bursa-heritage-card {
        padding: 24px 18px;
    }

    .heritage-title {
        font-size: 1.5rem;
    }

    .bursa-heritage-art {
        flex-direction: column;
    }

    .philosophy-col {
        padding: 28px 20px;
    }

    .production-freshness-section {
        padding: 50px 0;
    }
}

/* --------------------------------------------------------------------------
   6. BLOG LİSTELEME VE DETAY RESPONSIVE UYARLAMALARI
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .featured-post-grid {
        grid-template-columns: 1fr;
    }

    .featured-post-image-wrap {
        min-height: 280px;
        height: 280px;
    }

    .featured-post-content {
        padding: 32px 28px;
    }

    .blog-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .blog-filter-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .blog-filter-list .filter-pill {
        flex-shrink: 0;
    }

    .blog-search-wrap {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-post-image-wrap {
        min-height: 220px;
        height: 220px;
    }

    .featured-post-content {
        padding: 24px 20px;
    }

    .featured-title {
        font-size: 1.45rem;
    }

    .featured-summary {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .blog-card-body {
        padding: 20px 18px;
    }

    .article-main-title {
        font-size: clamp(24px, 6.5vw, 34px);
    }

    .article-meta-bar {
        font-size: 0.88rem;
        gap: 8px;
        margin-bottom: 24px;
    }

    .article-cover-wrap {
        border-radius: 14px;
    }

    .article-lead-text {
        font-size: 1.1rem;
        line-height: 1.65;
        padding-bottom: 18px;
        margin-bottom: 24px;
    }

    .article-body-content {
        font-size: 1.02rem;
        line-height: 1.8;
    }

    .article-body-content h2 {
        font-size: 1.55rem;
    }

    .article-body-content h3 {
        font-size: 1.25rem;
    }

    .article-body-content blockquote {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    .blog-share-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 14px;
    }

    .share-buttons-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .share-btn {
        justify-content: center;
        padding: 10px 14px;
    }

    .copy-toast {
        bottom: -48px;
        right: 50%;
        transform: translateX(50%) translateY(6px);
        white-space: nowrap;
    }

    .copy-toast.is-visible {
        transform: translateX(50%) translateY(0);
    }
}

@media screen and (max-width: 480px) {
    .share-buttons-group {
        grid-template-columns: 1fr;
    }

    .featured-action .btn-featured {
        width: 100%;
        justify-content: center;
    }

    .article-content-container {
        margin: 24px auto 45px;
    }
}

/* --------------------------------------------------------------------------
   7. İLETİŞİM SAYFASI VE FLOATING WHATSAPP RESPONSIVE UYARLAMALARI
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 36px 30px;
    }
}

@media screen and (max-width: 768px) {
    .contact-main-section {
        padding: 60px 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 28px 20px;
    }

    .form-row-two {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-title,
    .form-title {
        font-size: 1.6rem;
    }

    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .btn-directions {
        width: 100%;
        justify-content: center;
    }

    .map-card-wrapper {
        padding: 20px 16px;
    }

    .google-map-iframe {
        height: 320px;
    }

    .floating-whatsapp-wrap {
        bottom: 20px;
        right: 20px;
    }

    .floating-whatsapp-btn {
        width: 52px;
        height: 52px;
    }

    .floating-whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .contact-main-section {
        padding: 45px 0;
    }

    .contact-alert {
        flex-direction: column;
        gap: 10px;
        padding: 18px 16px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .info-item {
        gap: 12px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .btn-submit-contact {
        height: 50px;
        font-size: 0.98rem;
    }
}
