/* Mobile First Approach */

/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .main-header {
        padding: var(--spacing-sm) 0;
    }

    .logo {
        max-width: 150px;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: var(--spacing-md);
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-link {
        display: block;
        padding: var(--spacing-sm);
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero-slider {
        height: 400px;
        margin-top: 60px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .social-links {
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .main-header {
        padding: var(--spacing-sm) 0;
    }

    .nav-list {
        gap: var(--spacing-md);
    }

    .hero-slider {
        height: 500px;
    }

    .slide-content {
        padding: var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and down) */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .hero-slider {
        height: 550px;
    }

    .slide-content {
        max-width: 80%;
    }
}

/* Extra large devices (large desktops, 1200px and down) */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        background-image: url('images/logo@2x.png');
        background-size: contain;
        background-repeat: no-repeat;
    }
}

/* Print styles */
@media print {
    .main-header,
    .hero-slider,
    .mobile-menu-btn,
    .cookie-banner {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: black;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content {
        padding: var(--spacing-sm);
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #121212;
        --secondary-color: #FFD700;
        --text-color: #FFFFFF;
        --text-secondary: #CCCCCC;
        --accent-color: #1A1A1A;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .nav-link::after {
        display: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* Submenu adjustments for mobile */
@media (max-width: 768px) {
    .submenu {
        position: static;
        display: none;
        width: 100%;
        background-color: var(--accent-color);
        padding: var(--spacing-sm);
    }

    .nav-list > li:hover .submenu {
        display: block;
    }

    .submenu-list {
        padding-left: var(--spacing-md);
    }
}

/* Form adjustments for mobile */
@media (max-width: 576px) {
    form {
        padding: var(--spacing-sm);
    }

    input, textarea {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    .btn-primary {
        width: 100%;
    }
}

/* Cookie banner adjustments */
@media (max-width: 576px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Hook Section Responsive */
@media screen and (max-width: 768px) {
    .hook-section {
        padding: 40px 0;
    }

    .hook-section .section-title {
        font-size: 2rem;
    }

    .hook-section .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Blog Promotion Section Responsive */
    .blog-promotion-section {
        padding: 30px 0;
    }

    .blog-promotion-section h2 {
        font-size: 2rem;
    }

    .blog-promotion-section p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .hook-section {
        padding: 30px 0;
    }

    .hook-section .section-title {
        font-size: 1.8rem;
    }

    .hook-section .section-subtitle {
        font-size: 1rem;
    }
    
    /* Blog Promotion Section Responsive */
    .blog-promotion-section {
        padding: 20px 0;
    }

    .blog-promotion-section h2 {
        font-size: 1.8rem;
    }

    .blog-promotion-section p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 992px) {
    /* Adjust grid for tablets */
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
}

@media screen and (max-width: 768px) {
    /* Stack cards on smaller tablets and phones */
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media screen and (max-width: 480px) {
    /* Further adjustments for small phones */
    .blog-posts-grid {
        padding: 0 var(--spacing-sm);
    }
} 