/* Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .nav-search form {
        width: 180px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .site-header {
        position: relative;
    }
    
    .navbar {
        gap: 16px;
    }
    
    .desktop-nav-menu {
        display: none;
    }
    
    .site-header .mobile-nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 16px;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    
    .site-header .mobile-nav-menu.active {
        display: flex !important;
    }
    
    .site-header .mobile-nav-menu li {
        width: 100%;
    }
    
    .site-header .mobile-nav-menu li a {
        display: block;
        padding: 12px 16px;
    }
    
    .nav-search {
        display: none;
    }
    
    .nav-search.active {
        display: block;
        width: 100%;
    }
    
    .nav-search form {
        width: 100%;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Hero */
    .hero {
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9375rem;
    }
    
    .hero-search {
        padding: 0 16px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    /* Sections */
    .tools-section,
    .categories-section {
        padding: 32px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-card {
        padding: 16px;
    }
    
    /* Tools Grid */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-card {
        padding: 16px;
    }
    
    .tool-card .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .tool-card h3 {
        font-size: 1rem;
    }
    
    /* Tool Detail */
    .tool-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .tool-detail-header .tool-icon.lg {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
    }
    
    .tool-detail-header h1 {
        font-size: 1.5rem;
    }
    
    .tool-meta {
        justify-content: center;
    }
    
    .tool-detail-content {
        padding: 0 16px;
    }
    
    /* Category Header */
    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }
    
    .category-header .category-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    
    .category-header h1 {
        font-size: 1.5rem;
    }
    
    /* Static Page */
    .static-page {
        padding: 24px 16px;
    }
    
    /* Footer */
    .site-footer {
        padding: 48px 0 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* CTA */
    .cta-section {
        padding: 48px 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        margin: 16px 0;
    }
    
    .breadcrumb ol {
        font-size: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.875rem;
    }
    
    .brand span {
        display: none;
    }
    
    .brand i {
        font-size: 1.5rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}
