/**
 * Düzce Ahşap - Responsive CSS
 * Mobile First Yaklaşımı ile Responsive Tasarım
 */

/* ============================================
   TABLET - 768px ve altı
   ============================================ */
@media (max-width: 768px) {
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    h4 { font-size: 20px; }
    
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; }
    
    /* Spacing */
    .section-padding {
        padding: 40px 0;
    }
    
    /* Top Bar */
    .top-bar {
        display: none;
    }
    
    /* Header */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 80px 0 20px;
        overflow-y: auto;
        transition: left var(--transition-base);
        z-index: 1000;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--gray-lighter);
    }
    
    .nav-item a {
        padding: 15px 20px;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--gray-lighter);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }
    
    .nav-item.has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu li a {
        padding: 12px 20px 12px 40px;
    }
    
    .search-toggle {
        margin-left: auto;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-subtitle {
        font-size: 16px;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
    }
    
    .slider-control.prev {
        left: 10px;
    }
    
    .slider-control.next {
        right: 10px;
    }
    
    /* Welcome Section */
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .welcome-image {
        order: -1;
    }
    
    .welcome-features {
        flex-direction: column;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .feature-box {
        padding: var(--spacing-sm);
    }
    
    /* Statistics */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Products Carousel */
    .products-carousel {
        padding: 0 40px;
    }
    
    .product-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
    }
    
    /* References */
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    /* Certifications */
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Testimonials */
    .testimonials-carousel {
        padding: 0 40px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    /* FAQ */
    .faq-categories {
        flex-direction: column;
    }
    
    .faq-category-btn {
        width: 100%;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Floating Buttons */
    .whatsapp-float,
    .live-support-float {
        width: 50px;
        height: 50px;
    }
    
    .live-support-float {
        bottom: 80px;
    }
}

/* ============================================
   MOBILE - 480px ve altı
   ============================================ */
@media (max-width: 480px) {
    
    /* Typography */
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 14px; }
    
    /* Spacing */
    .section-padding {
        padding: 30px 0;
    }
    
    /* Header */
    .logo img {
        height: 40px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 350px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-subtitle {
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Statistics */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    /* Products */
    .products-carousel {
        padding: 0;
    }
    
    .product-card {
        flex: 0 0 100%;
    }
    
    .listing-layout {
        grid-template-columns: 1fr;
    }
    
    .listing-sidebar {
        order: 2;
    }
    
    .listing-content {
        order: 1;
    }
    
    .category-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .category-header-text h1 {
        font-size: 28px;
    }
    
    .carousel-control {
        display: none;
    }
    
    /* Certifications */
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonials-carousel {
        padding: 0;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 14px;
    }
    
    /* Search Modal */
    .search-modal-content {
        width: 95%;
    }
    
    .search-box input {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    /* Floating Buttons */
    .whatsapp-float,
    .live-support-float {
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-float {
        right: 15px;
        bottom: 15px;
    }
    
    .live-support-float {
        right: 15px;
        bottom: 70px;
    }
    
    .scroll-to-top {
        left: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   LARGE DESKTOP - 1440px ve üzeri
   ============================================ */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-slider {
        height: 700px;
    }
    
    .slide-title {
        font-size: 56px;
    }
    
    .slide-subtitle {
        font-size: 22px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-bar,
    .main-header,
    .hero-slider,
    .whatsapp-float,
    .live-support-float,
    .scroll-to-top,
    .main-footer,
    .cta-section,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@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;
    }
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --dark-color: #000000;
        --gray-medium: #666666;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Bu özellik gelecekte eklenebilir */
}

/* ============================================
   ORIENTATION SPECIFIC STYLES
   ============================================ */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-slider {
        height: 100vh;
    }
    
    .stats-section {
        padding: var(--spacing-lg) 0;
    }
}
