/* Responsive CSS Utilities for BluePrince Portal */

/* Responsive breakpoints */
:root {
    --mobile: 767px;
    --tablet: 768px;
    --desktop: 1024px;
    --large-desktop: 1440px;
}

/* Mobile-first responsive utilities */
.hidden-mobile {
    display: none;
}

.visible-mobile {
    display: block;
}

/* Tablet and up */
@media (min-width: 768px) {
    .hidden-tablet {
        display: none;
    }
    
    .visible-tablet {
        display: block;
    }
    
    .hidden-mobile {
        display: block;
    }
    
    .visible-mobile {
        display: none;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .hidden-desktop {
        display: none;
    }
    
    .visible-desktop {
        display: block;
    }
    
    .hidden-tablet {
        display: block;
    }
    
    .visible-tablet {
        display: none;
    }
}

/* Responsive text sizing */
.text-responsive-xs {
    font-size: 0.75rem;
}

.text-responsive-sm {
    font-size: 0.875rem;
}

.text-responsive-base {
    font-size: 1rem;
}

.text-responsive-lg {
    font-size: 1.125rem;
}

.text-responsive-xl {
    font-size: 1.25rem;
}

.text-responsive-2xl {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .text-responsive-xs {
        font-size: 0.875rem;
    }
    
    .text-responsive-sm {
        font-size: 1rem;
    }
    
    .text-responsive-base {
        font-size: 1.125rem;
    }
    
    .text-responsive-lg {
        font-size: 1.25rem;
    }
    
    .text-responsive-xl {
        font-size: 1.5rem;
    }
    
    .text-responsive-2xl {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .text-responsive-xs {
        font-size: 1rem;
    }
    
    .text-responsive-sm {
        font-size: 1.125rem;
    }
    
    .text-responsive-base {
        font-size: 1.25rem;
    }
    
    .text-responsive-lg {
        font-size: 1.5rem;
    }
    
    .text-responsive-xl {
        font-size: 1.75rem;
    }
    
    .text-responsive-2xl {
        font-size: 2rem;
    }
}

/* Responsive spacing */
.p-responsive-1 {
    padding: 0.5rem;
}

.p-responsive-2 {
    padding: 1rem;
}

.p-responsive-3 {
    padding: 1.5rem;
}

.p-responsive-4 {
    padding: 2rem;
}

@media (min-width: 768px) {
    .p-responsive-1 {
        padding: 0.75rem;
    }
    
    .p-responsive-2 {
        padding: 1.5rem;
    }
    
    .p-responsive-3 {
        padding: 2rem;
    }
    
    .p-responsive-4 {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .p-responsive-1 {
        padding: 1rem;
    }
    
    .p-responsive-2 {
        padding: 2rem;
    }
    
    .p-responsive-3 {
        padding: 3rem;
    }
    
    .p-responsive-4 {
        padding: 4rem;
    }
}

/* Responsive margins */
.m-responsive-1 {
    margin: 0.5rem;
}

.m-responsive-2 {
    margin: 1rem;
}

.m-responsive-3 {
    margin: 1.5rem;
}

.m-responsive-4 {
    margin: 2rem;
}

@media (min-width: 768px) {
    .m-responsive-1 {
        margin: 0.75rem;
    }
    
    .m-responsive-2 {
        margin: 1.5rem;
    }
    
    .m-responsive-3 {
        margin: 2rem;
    }
    
    .m-responsive-4 {
        margin: 3rem;
    }
}

@media (min-width: 1024px) {
    .m-responsive-1 {
        margin: 1rem;
    }
    
    .m-responsive-2 {
        margin: 2rem;
    }
    
    .m-responsive-3 {
        margin: 3rem;
    }
    
    .m-responsive-4 {
        margin: 4rem;
    }
}

/* Responsive grid utilities */
.grid-responsive-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.grid-responsive-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.grid-responsive-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.grid-responsive-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-responsive-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .grid-responsive-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .grid-responsive-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .grid-responsive-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .grid-responsive-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Responsive flex utilities */
.flex-responsive-column {
    display: flex;
    flex-direction: column;
}

.flex-responsive-row {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .flex-responsive-row {
        flex-direction: row;
    }
}

/* Touch-friendly improvements */
@media (max-width: 767px) {
    .touch-friendly {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
    }
    
    .touch-friendly-large {
        min-height: 48px;
        min-width: 48px;
        padding: 1rem 1.25rem;
    }
}

/* Container responsive max-widths */
.container-responsive {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container-responsive {
        max-width: 750px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        max-width: 1000px;
        padding: 0 2rem;
    }
}

@media (min-width: 1440px) {
    .container-responsive {
        max-width: 1200px;
        padding: 0 3rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .border-responsive {
        border-width: 2px;
    }
    
    .focus-responsive:focus {
        outline: 3px solid;
        outline-offset: 2px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
} 