/* Zovi Web Tools - Responsive Stylesheet */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .stats {
        gap: var(--space-2xl);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--space-md);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    :root {
        --space-3xl: 3rem;
        --space-2xl: 2rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Header */
    .header-content {
        height: 60px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text-primary);
    }
    
    /* Hero */
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Stats */
    .stats {
        flex-direction: column;
        gap: var(--space-lg);
        padding: var(--space-lg) 0;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Category Filter */
    .category-filter {
        gap: var(--space-xs);
    }
    
    .category-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.875rem;
    }
    
    /* Tool Cards */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .tool-card {
        padding: var(--space-lg);
    }
    
    .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Tool Page */
    .tool-page {
        padding: var(--space-md) 0;
    }
    
    .tool-header h1 {
        font-size: 1.5rem;
    }
    
    .tool-card-large {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Drop Zone */
    .drop-zone {
        padding: var(--space-xl);
    }
    
    .drop-zone-icon {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-section h4 {
        margin-bottom: var(--space-sm);
    }
    
    /* Tables */
    .table-container {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: var(--space-sm);
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .tool-card {
        padding: var(--space-md);
    }
    
    .tool-card-large {
        padding: var(--space-md);
    }
    
    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }
    
    .category-btn {
        white-space: nowrap;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    z-index: 99;
    padding: var(--space-lg);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-menu-nav a {
    padding: var(--space-md);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

/* Touch Device Optimizations */
@media (hover: none) {
    .tool-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Reduced Motion */
@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;
    }
}

/* Dark Mode Support (for future) */
@media (prefers-color-scheme: dark) {
    /* Uncomment when dark mode is implemented */
    /*
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --bg-card: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --border-light: #334155;
        --border-medium: #475569;
    }
    */
}

/* Print Styles */
@media print {
    @page {
        margin: 1cm;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .tool-card-large {
        break-inside: avoid;
    }
    
    .result-area {
        break-inside: avoid;
    }
}
