/* ================================================
   AURORA RESPONSIVE DESIGN - Mobile First
   ================================================ */

/* --- GLOBAL MOBILE IMPROVEMENTS --- */
@media (max-width: 991px) {

    /* Touch-Friendly minimum targets */
    a,
    button,
    .btn,
    .nav-link,
    .form-check-input {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Touch highlight */
    * {
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.15);
    }

    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    body {
        -webkit-text-size-adjust: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Disable hover lifts on mobile */
    .glass-card:hover,
    .product-card-new:hover,
    .feature-card:hover {
        transform: none !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* --- NAVBAR --- */
    .navbar-glass {
        padding: 0.5rem 0;
    }

    .navbar-brand img {
        height: 32px;
    }

    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-radius: var(--radius-md);
        justify-content: flex-start;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(255, 255, 255, 0.03);
    }

    .dropdown-menu {
        background: rgba(10, 18, 36, 0.95);
        border-color: rgba(255, 255, 255, 0.05);
        margin-left: 1rem;
        padding: 0.5rem;
    }

    .dropdown-item {
        color: var(--aurora-text-muted) !important;
        padding: 10px 16px;
        border-radius: 6px;
    }

    .dropdown-item:hover {
        background: rgba(16, 185, 129, 0.08) !important;
        color: var(--aurora-emerald) !important;
    }

    /* --- HERO SECTION --- */
    .hero-section {
        min-height: 80vh !important;
        padding: 100px 0 60px !important;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
        line-height: 1.2;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .floating-orb {
        display: none;
    }

    /* --- PRODUCT CARDS --- */
    .product-card-new .product-image {
        height: 180px !important;
    }

    .product-card-new .p-4 {
        padding: 1rem !important;
    }

    /* --- SECTION SPACING --- */
    .section-dark,
    .section-alt {
        padding: 3rem 0 !important;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* --- FEATURES GRID --- */
    .feature-card {
        padding: 1.5rem !important;
    }

    .feature-card .feature-icon {
        width: 56px !important;
        height: 56px !important;
    }

    /* --- CTA SECTION --- */
    .section-dark .display-5 {
        font-size: 1.75rem !important;
    }

    /* --- FOOTER --- */
    .footer-modern {
        text-align: center;
    }

    .footer-modern .d-flex.gap-2 {
        justify-content: center;
    }

    .footer-modern .col-lg-2,
    .footer-modern .col-lg-4 {
        text-align: center;
    }

    .footer-modern ul {
        padding-left: 0;
    }

    .footer-modern .d-flex.align-items-start {
        justify-content: center;
    }

    /* --- GLASS CARDS --- */
    .glass-card {
        margin-bottom: 1rem;
    }

    /* --- USER DASHBOARD --- */
    .col-md-3 .glass-card nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .col-md-3 .glass-card nav a {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
        font-size: 0.85rem;
    }

    .quick-action-btn {
        padding: 1.5rem !important;
    }
}

/* --- SMALL PHONES --- */
@media (max-width: 575px) {
    .hero-section {
        min-height: 70vh !important;
        padding: 90px 0 40px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .btn-aurora,
    .btn-aurora-outline {
        font-size: 0.9rem;
        padding: 12px 24px;
    }

    .product-card-new .product-image {
        height: 160px !important;
    }

    .glass-card {
        padding: 1rem !important;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Login/Register auth pages */
    .auth-left {
        min-height: 25vh !important;
        padding: 1.5rem !important;
    }

    .auth-right {
        padding: 1.5rem !important;
    }

    .auth-card {
        max-width: 100% !important;
    }

    /* Contact page */
    .glass-card .p-5 {
        padding: 1.5rem !important;
    }

    /* Stat items */
    .hero-stats>div {
        min-width: 80px;
    }

    /* Footer spacing */
    .footer-modern .container {
        padding: 2rem 1rem !important;
    }
}

/* --- TABLETS (Portrait) --- */
@media (min-width: 576px) and (max-width: 991px) {
    .hero-section {
        min-height: 70vh !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .product-card-new .product-image {
        height: 200px !important;
    }
}

/* --- TABLETS (Landscape) + Desktop --- */
@media (min-width: 992px) {

    /* Sticky sidebar for product page */
    .sticky-top {
        top: 100px;
    }
}

/* --- LARGE DESKTOPS --- */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4rem !important;
    }
}

/* --- ANIMATION / REDUCE MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .floating-orb,
    .hero-overlay::before,
    .hero-overlay::after {
        animation: none !important;
    }

    .glass-card,
    .product-card-new,
    .btn-aurora {
        transition: none !important;
    }
}

/* --- PRINT STYLES --- */
@media print {

    .navbar-glass,
    .footer-modern,
    .floating-orb,
    .hero-overlay,
    .hero-video-bg {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-section {
        min-height: auto !important;
        padding: 2rem 0 !important;
        background: none !important;
    }

    .glass-card {
        background: white !important;
        border: 1px solid #ddd !important;
        backdrop-filter: none !important;
    }

    a {
        color: black !important;
    }
}

/* --- DARK/LIGHT SCHEME HANDLING --- */
/* Always force dark since Aurora is dark-first */
@media (prefers-color-scheme: light) {
    :root {
        color-scheme: dark;
    }
}

/* --- ADMIN PANEL RESPONSIVE (Do NOT override) --- */
/* The admin panel uses its own Blazor layout and should not be affected by Aurora responsive styles.
   Admin-specific responsive rules are defined within the Blazor component stylesheets. */