/* MOBILE-OPTIMIZED OVERRIDE 
   This file only activates on screens smaller than 768px.
   It creates a "Premium & Subtle" app-like experience for IndusHub.
*/

@media (max-width: 768px) {
    
    /* 1. GLOBAL MOBILE RESET */
    body {
        padding-bottom: 80px !important; /* Space for the bottom navigation */
        background-color: #fcfcfc !important;
        -webkit-font-smoothing: antialiased;
    }

    /* 2. ADDICTIVE INTERACTION (HAPTIC FEEL) */
    .btn, .buy-btn, .cta-glass, .icon-btn, .submit-btn {
        transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active, .buy-btn:active, .cta-glass:active, .icon-btn:active {
        transform: scale(0.96) !important; /* The "Haptic" click feel */
        opacity: 0.8;
    }

    /* 3. GRID & LAYOUT OVERRIDES */
    /* Forces columns to stack vertically on mobile */
    .deals-grid, .software-grid, .reels-wrap {
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
        padding: 15px !important;
    }

    /* 4. CARD ENHANCEMENTS */
    .deal-card, .card {
        border-radius: 20px !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    }

    /* 5. TYPOGRAPHY SCALING */
    h1 {
        font-size: 26px !important;
        line-height: 1.2 !important;
        padding: 0 10px;
    }

    .deal-title, .card h2 {
        font-size: 18px !important;
    }

    /* 6. FORM & INPUT OPTIMIZATION */
    /* Prevents iPhone from auto-zooming into text fields */
    input, select, textarea {
        font-size: 16px !important; 
        padding: 14px !important;
        border-radius: 12px !important;
    }

    /* 7. FULL-WIDTH MOBILE BUTTONS */
    .buy-btn, .submit-btn {
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        font-size: 16px !important;
    }

    /* 8. BOTTOM NAVIGATION BAR (The "App" look) */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 99999;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-item {
        text-decoration: none;
        color: #888;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: 0.2s;
    }

    .nav-item.active { color: #000; }
    .nav-item span { font-size: 22px; }
    .nav-item label { 
        font-size: 10px; 
        font-weight: 700; 
        text-transform: uppercase; 
        margin-top: 4px;
        letter-spacing: 0.5px;
    }

    /* 9. REELS PAGE OPTIMIZATION */
    /* Ensure reels take full height on mobile without borders */
    .reel-content {
        height: 100vh !important;
        width: 100vw !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .side-bar {
        right: 10px !important;
        bottom: 120px !important; /* Move up so bottom-nav doesn't block it */
    }
}

/* 10. DESKTOP ONLY HIDER */
@media (min-width: 769px) {
    .mobile-nav { display: none !important; }
}