/* ========================================
   FRONTEND RESPONSIVE STYLES
   ======================================== */

/* Base Typography Responsive */
@media (max-width: 1200px) {
    .display-1 {
        font-size: 3.5rem !important;
    }
    
    .display-2 {
        font-size: 3rem !important;
    }
}

@media (max-width: 992px) {
    /* Navbar Adjustments */
    .navbar-nav {
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .nav-item {
        text-align: center;
        margin: 0.25rem 0;
    }

    .navbar-brand img {
        height: 55px !important;
    }

    /* User dropdown in mobile */
    .nav-link.dropdown-toggle span {
        display: inline !important;
    }

    /* Buttons full width on mobile nav */
    .navbar-nav .btn {
        width: 100%;
        margin: 0.25rem 0;
    }

    /* Hero sections */
    .hero-content-wrapper {
        text-align: center !important;
        padding-bottom: 40px;
    }

    /* Cards grid */
    .row.g-4 {
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1, .h1 {
        font-size: 1.75rem !important;
    }

    h2, .h2 {
        font-size: 1.5rem !important;
    }

    h3, .h3 {
        font-size: 1.25rem !important;
    }

    h4, .h4 {
        font-size: 1.1rem !important;
    }

    .display-1 {
        font-size: 3rem !important;
    }

    .display-2 {
        font-size: 2.5rem !important;
    }

    .display-3 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    /* Spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Cards */
    .modern-card {
        padding: 1.5rem !important;
    }

    .card {
        margin-bottom: 1rem;
    }

    /* Navbar */
    .navbar-brand img {
        height: 50px !important;
    }

    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    /* Footer */
    .footer-logo img {
        height: 60px !important;
    }

    /* Buttons */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Tables */
    .table-responsive {
        font-size: 0.875rem;
    }

    /* Modal */
    .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    /* Typography */
    h1, .h1 {
        font-size: 1.5rem !important;
    }

    h2, .h2 {
        font-size: 1.3rem !important;
    }

    h3, .h3 {
        font-size: 1.15rem !important;
    }

    .display-1 {
        font-size: 2.5rem !important;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .display-3 {
        font-size: 1.75rem !important;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }

    /* Spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Cards */
    .modern-card {
        padding: 1.25rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    /* Navbar */
    .navbar-brand img {
        height: 45px !important;
    }

    /* Hide user name on very small screens */
    .nav-link.dropdown-toggle span {
        display: none !important;
    }

    /* Footer */
    .footer-logo img {
        height: 50px !important;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links ul {
        padding: 0;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }

    /* Badge */
    .badge {
        font-size: 0.7rem;
    }

    /* Stats/Numbers */
    .stat-value,
    .counter-value {
        font-size: 2rem !important;
    }
}

/* Landscape Mobile Phones */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-swiper {
        min-height: 350px !important;
    }

    .swiper-slide-content {
        min-height: 350px !important;
        padding-top: 60px !important;
    }

    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal,
    .alert {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    .nav-link,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Accessibility - 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 (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
