/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

/* Fixed Content */
.fixed-content {
    padding: var(--size-2);
    background: var(--layer-surface-container);
    color: var(--on-surface);
    border-top: 1px solid var(--outline-variant);
    flex-shrink: 0;
}

/* Mobile Responsive - Under 768px */
@media (max-width: 767px) {
    /* Display */
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-flex {
        display: flex !important;
    }

    .mobile-hidden {
        display: none !important;
    }

    /* Grid */
    .grid-container,
    .container {
        display: block;
        padding: 1rem;
    }

    .grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--size-3);
    }

    /* Typography */
    .mobile-text-center {
        text-align: center;
    }

    .mobile-text-left {
        text-align: left;
    }

    .mobile-text-right {
        text-align: right;
    }
}

/* Desktop Responsive - 768px and up */
@media (min-width: 768px) {
    /* Display */
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }

    .desktop-flex {
        display: flex !important;
    }

    .desktop-grid {
        display: grid !important;
    }

    .desktop-hidden {
        display: none !important;
    }

    /* Typography */
    .desktop-text-center {
        text-align: center;
    }

    .desktop-text-left {
        text-align: left;
    }

    .desktop-text-right {
        text-align: right;
    }
}

/* Tablet Responsive - 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .tablet-only {
        display: block !important;
    }

    .tablet-hidden {
        display: none !important;
    }
}

/* Large Desktop - 1440px and up */
@media (min-width: 1440px) {
    .large-only {
        display: block !important;
    }

    .large-hidden {
        display: none !important;
    }
}

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

    .print-only {
        display: block !important;
    }

    .page-break-before {
        page-break-before: always;
    }

    .page-break-after {
        page-break-after: always;
    }

    .page-break-avoid {
        page-break-inside: avoid;
    }
}

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

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    .light-only {
        display: none !important;
    }

    .dark-only {
        display: block !important;
    }
}

@media (prefers-color-scheme: light) {
    .dark-only {
        display: none !important;
    }

    .light-only {
        display: block !important;
    }
}