/* Responsive Utilities for Interview AI */

/* Container Max Widths */
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 768px; margin: 0 auto; padding: 0 1rem; }
.container-lg { max-width: 1024px; margin: 0 auto; padding: 0 1rem; }
.container-xl { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Responsive Text Sizes */
@media (max-width: 768px) {
    .text-responsive-lg {
        font-size: 1.75rem !important;
    }
    
    .text-responsive-xl {
        font-size: 2rem !important;
    }
    
    .text-responsive-2xl {
        font-size: 2.25rem !important;
    }
    
    .text-responsive-3xl {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .text-responsive-lg {
        font-size: 1.5rem !important;
    }
    
    .text-responsive-xl {
        font-size: 1.75rem !important;
    }
    
    .text-responsive-2xl {
        font-size: 2rem !important;
    }
    
    .text-responsive-3xl {
        font-size: 2.25rem !important;
    }
}

/* Display Utilities */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .show-mobile-flex {
        display: flex !important;
    }
    
    .show-mobile-grid {
        display: grid !important;
    }
}

/* Spacing Utilities - Mobile */
@media (max-width: 768px) {
    .p-mobile-sm { padding: 1rem !important; }
    .p-mobile-md { padding: 1.5rem !important; }
    .p-mobile-lg { padding: 2rem !important; }
    
    .px-mobile-sm { padding-left: 1rem !important; padding-right: 1rem !important; }
    .px-mobile-md { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    
    .py-mobile-sm { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-mobile-md { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    
    .m-mobile-sm { margin: 1rem !important; }
    .m-mobile-md { margin: 1.5rem !important; }
    
    .mx-mobile-auto { margin-left: auto !important; margin-right: auto !important; }
    
    .mt-mobile-sm { margin-top: 1rem !important; }
    .mt-mobile-md { margin-top: 1.5rem !important; }
    .mt-mobile-lg { margin-top: 2rem !important; }
    
    .mb-mobile-sm { margin-bottom: 1rem !important; }
    .mb-mobile-md { margin-bottom: 1.5rem !important; }
    .mb-mobile-lg { margin-bottom: 2rem !important; }
}

/* Flex Utilities - Mobile */
@media (max-width: 768px) {
    .flex-mobile-col {
        flex-direction: column !important;
    }
    
    .flex-mobile-row {
        flex-direction: row !important;
    }
    
    .flex-mobile-wrap {
        flex-wrap: wrap !important;
    }
    
    .gap-mobile-sm {
        gap: 0.5rem !important;
    }
    
    .gap-mobile-md {
        gap: 1rem !important;
    }
    
    .gap-mobile-lg {
        gap: 1.5rem !important;
    }
    
    .justify-mobile-center {
        justify-content: center !important;
    }
    
    .items-mobile-center {
        align-items: center !important;
    }
}

/* Grid Utilities - Mobile */
@media (max-width: 768px) {
    .grid-mobile-1 {
        grid-template-columns: 1fr !important;
    }
    
    .grid-mobile-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .gap-grid-mobile-sm {
        gap: 1rem !important;
    }
    
    .gap-grid-mobile-md {
        gap: 1.5rem !important;
    }
}

/* Width Utilities - Mobile */
@media (max-width: 768px) {
    .w-mobile-full {
        width: 100% !important;
    }
    
    .w-mobile-auto {
        width: auto !important;
    }
    
    .max-w-mobile-full {
        max-width: 100% !important;
    }
}

/* Text Alignment - Mobile */
@media (max-width: 768px) {
    .text-mobile-center {
        text-align: center !important;
    }
    
    .text-mobile-left {
        text-align: left !important;
    }
}

/* Overflow Utilities */
@media (max-width: 768px) {
    .overflow-mobile-auto {
        overflow: auto !important;
    }
    
    .overflow-x-mobile-auto {
        overflow-x: auto !important;
    }
    
    .overflow-y-mobile-auto {
        overflow-y: auto !important;
    }
}

/* Touch-friendly Utilities */
@media (max-width: 768px) {
    .touch-target {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .touch-padding {
        padding: 0.75rem 1rem !important;
    }
}

/* Responsive Images */
img.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Aspect Ratio Utilities */
.aspect-16-9 {
    position: relative;
    padding-bottom: 56.25%;
}

.aspect-16-9 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aspect-4-3 {
    position: relative;
    padding-bottom: 75%;
}

.aspect-4-3 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Safe Area Insets (for notched devices) */
@supports (padding: max(0px)) {
    .safe-area-padding {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .safe-area-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .hide-print {
        display: none !important;
    }
    
    .show-print {
        display: block !important;
    }
}
