/* Mobile Responsive Styles for SchoolBundleSupply */
/* Base mobile-first approach */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1e293b;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Removed duplicate mobile-menu-toggle active styles - using site.css styles instead */

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-content {
    padding: 2rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 1rem;
}

.mobile-nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    color: #1e293b;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:active {
    background: #f1f5f9;
    color: #667eea;
}

.mobile-nav-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .bundles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation */
    .nav-wrapper,
    .nav-buttons {
        display: none !important;
    }
    
    /* Adjust body padding for fixed header */
    body {
        padding-top: 70px;
    }
    
    /* Header adjustments */
    .header {
        min-height: 70px;
    }
    
    .nav-container {
        padding: 1rem;
        min-height: 70px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 2rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Categories mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    /* Bundles mobile */
    .bundles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .bundle-card {
        max-width: 100%;
    }
    
    /* Stats mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* Contact form mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Modal adjustments for mobile */
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .login-form {
        padding: 1.5rem;
    }
    
    /* School modal mobile */
    .schools-list {
        max-height: 50vh;
    }
    
    .school-option {
        padding: 1rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Section titles mobile */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Form elements mobile */
    .form-input,
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-cta {
        padding: 0.875rem 1.75rem;
    }
    
    /* Toast notifications mobile */
    .toast-container {
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .toast {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    /* Modal full screen on very small devices */
    .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .close-btn {
        top: 10px;
        right: 10px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .schools-list {
        max-height: 40vh;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-menu a,
    .mobile-nav-menu a,
    .btn,
    .school-option,
    .category-card,
    .bundle-card {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .category-card:hover,
    .bundle-card:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .modal-content {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .hero-buttons,
    .btn,
    .modal {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .container {
        max-width: 100%;
    }
}