/**
 * Responsive stylesheet for WeLovePDF2.com
 * 
 * This file contains responsive styles for different screen sizes.
 */

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Tool Grid */
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-grid.columns-2,
    .tool-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter Form */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: var(--border-radius-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .newsletter-button {
        border-radius: var(--border-radius-md);
        width: 100%;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: var(--spacing-sm);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Tool Grid */
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tool Grid */
    .tool-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* No specific styles needed */
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* No specific styles needed */
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 991.98px) {
    /* Header */
    .header-wrapper {
        position: relative;
    }
    
    /* Main Navigation */
    .main-navigation {
        display: none;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Mobile Navigation */
    .mobile-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        padding: var(--spacing-md);
    }
    
    .mobile-navigation.active {
        display: block;
    }
    
    .mobile-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav-item {
        margin-bottom: var(--spacing-sm);
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--spacing-sm) 0;
        color: var(--text-color);
        font-weight: 500;
    }
    
    .mobile-dropdown-menu {
        display: none;
        list-style: none;
        padding: 0;
        margin: var(--spacing-sm) 0 0 var(--spacing-md);
    }
    
    .mobile-dropdown-menu.active {
        display: block;
    }
    
    .mobile-dropdown-menu li {
        margin-bottom: var(--spacing-xs);
    }
    
    .mobile-dropdown-menu li a {
        display: block;
        padding: var(--spacing-xs) 0;
        color: var(--text-light);
        font-size: 0.9rem;
    }
    
    /* Mobile Nav Overlay */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-nav-overlay.active {
        display: block;
    }
}

/* ===== TOOL INTERFACE RESPONSIVE STYLES ===== */
@media (max-width: 767.98px) {
    /* Tool Interface */
    .tool-interface {
        flex-direction: column;
    }
    
    .tool-sidebar {
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }
    
    .tool-main {
        width: 100%;
    }
    
    /* File Upload Area */
    .file-upload-area {
        padding: var(--spacing-md);
    }
    
    /* Tool Options */
    .tool-options {
        flex-direction: column;
    }
    
    .option-group {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    /* Results Area */
    .results-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions .btn {
        margin-bottom: var(--spacing-sm);
    }
}

/* ===== AD RESPONSIVE STYLES ===== */
@media (max-width: 767.98px) {
    /* Header Ad */
    .header-ad-unit {
        width: 320px;
        height: 100px;
    }
    
    /* Footer Ad */
    .footer-ad-unit {
        width: 320px;
        height: 100px;
    }
    
    /* Tool Top Ad */
    .tool-top-ad-unit {
        width: 320px;
        height: 100px;
    }
    
    /* Tool Bottom Ad */
    .tool-bottom-ad-unit {
        width: 320px;
        height: 100px;
    }
    
    /* In Content Ad */
    .in-content-ad-unit {
        width: 300px;
        height: 250px;
    }
    
    /* Results Ad */
    .results-ad-unit {
        width: 300px;
        height: 250px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Header Ad */
    .header-ad-unit {
        width: 468px;
        height: 60px;
    }
    
    /* Footer Ad */
    .footer-ad-unit {
        width: 468px;
        height: 60px;
    }
    
    /* Tool Top Ad */
    .tool-top-ad-unit {
        width: 468px;
        height: 60px;
    }
    
    /* Tool Bottom Ad */
    .tool-bottom-ad-unit {
        width: 468px;
        height: 60px;
    }
}

/* ===== BACK TO TOP BUTTON RESPONSIVE STYLES ===== */
@media (max-width: 767.98px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}