/* ========================================
   RESPONSIVE CSS - MOBİL OPTİMİZASYON
   Tüm cihazlar için uyumlu tasarım
======================================== */

/* ========================================
   LARGE DESKTOP (1400px+)
======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   DESKTOP (1200px - 1399px)
======================================== */
@media (max-width: 1399px) {
    .container {
        max-width: 1200px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   LAPTOP & TABLET (992px - 1199px)
======================================== */
@media (max-width: 1199px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .category-container {
        gap: 1rem;
    }
    
    .category-item {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   TABLET (768px - 991px)
======================================== */
@media (max-width: 991px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .category-container {
        gap: 0.8rem;
    }
    
    .category-item {
        width: 100px;
        height: 100px;
    }
    
    .category-image {
        width: 60px;
        height: 60px;
    }
    
    .category-title {
        font-size: 0.75rem;
    }
    
    .main-content {
        margin: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* ========================================
   MOBILE LARGE (576px - 767px)
======================================== */
@media (max-width: 767px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        display: none; /* Mobilde menü gizli */
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .category-menu-section {
        padding: 2rem 0;
    }
    
    .category-container {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .category-item {
        width: 90px;
        height: 90px;
    }
    
    .category-image {
        width: 50px;
        height: 50px;
    }
    
    .category-title {
        font-size: 0.7rem;
    }
    
    .main-content {
        margin: 1rem;
        border-radius: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .product-card {
        padding: 1.2rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ========================================
   MOBILE SMALL (320px - 575px)
======================================== */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .category-container {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .category-item {
        width: 80px;
        height: 80px;
    }
    
    .category-image {
        width: 45px;
        height: 45px;
    }
    
    .category-title {
        font-size: 0.65rem;
    }
    
    .products-grid {
        padding: 1rem;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   TOUCH DEVICE OPTİMİZASYONLARI
======================================== */
@media (hover: none) and (pointer: coarse) {
    .category-item:hover,
    .product-card:hover {
        transform: none;
    }
    
    .category-item:active {
        transform: scale(0.95);
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .product-button:active,
    .cta-button:active {
        transform: scale(0.95);
    }
}

/* ========================================
   LANDSCAPE MOBİL OPTİMİZASYON
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        margin-bottom: 1rem;
    }
    
    .category-menu-section {
        padding: 1rem 0;
    }
}

/* ========================================
   PRINT STİLLERİ
======================================== */
@media print {
    .header,
    .category-menu-section,
    .footer {
        display: none;
    }
    
    .main-content {
        margin: 0;
        box-shadow: none;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   ACCESSIBILITY İYİLEŞTİRMELERİ
======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   DARK MODE HAZIRLIĞI
======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #ffffff;
        --text-light: #cccccc;
        --border-color: #333333;
    }
}