/* Responsive Styles for Mobile Devices */

/* Tablet and Below (768px) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 600px;
        overflow-y: auto;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--primary-color);
        margin-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .nav-menu > li > a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    /* Tool Grid */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Content with Sidebar */
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Tool Interface */
    .tool-interface {
        padding: 1.5rem;
    }

    .tool-header h1 {
        font-size: 1.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

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

    .logo .tagline {
        font-size: 0.75rem;
    }

    .tool-interface {
        padding: 1rem;
    }

    .tool-header h1 {
        font-size: 1.25rem;
    }

    .category-header h2 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .ad-container,
    .ad-placeholder,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .main-content {
        padding: 0;
    }
}
