/* GAMING NP - Mobile Responsive Styles */
/* Gaming Theme for Mobile Devices */

@media (max-width: 768px) {

    /* Mobile Navigation Bar - Dark Gaming */
    .navbar-nav {
        flex-direction: column;
    }

    .navbar-collapse {
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
        padding: 15px;
        z-index: 1000;
        border-top: 2px solid #DC143C;
        box-shadow: 0 4px 24px rgba(220, 20, 60, 0.3);
    }

    /* Mobile Sidebar - Gaming Dark */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 80%;
        max-width: 300px;
        background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
        z-index: 2000;
        overflow-y: auto;
        box-shadow: 5px 0 30px rgba(220, 20, 60, 0.4);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-right: 3px solid #DC143C;
    }

    .mobile-sidebar.show {
        transform: translateX(0);
    }

    .mobile-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #1A1A1A;
        border-bottom: 2px solid #DC143C;
    }

    .mobile-sidebar-logo {
        display: flex;
        align-items: center;
        color: #FFFFFF;
        text-decoration: none;
        text-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
    }

    .mobile-sidebar-logo i {
        font-size: 1.5rem;
        margin-right: 10px;
        color: #FF1744;
    }

    .mobile-sidebar-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #FFFFFF;
    }

    .mobile-sidebar-close {
        background: transparent;
        border: 2px solid #DC143C;
        color: #FFFFFF;
        font-size: 1.5rem;
        cursor: pointer;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-sidebar-close:hover {
        background: #DC143C;
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    }

    .mobile-sidebar-body {
        padding: 15px;
    }

    .mobile-sidebar-tabs {
        display: flex;
        margin-bottom: 15px;
        border-bottom: 2px solid #2A2A2A;
    }

    .mobile-sidebar-tab {
        flex: 1;
        text-align: center;
        padding: 12px;
        color: #B0B0B0;
        text-decoration: none;
        border-bottom: 3px solid transparent;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .mobile-sidebar-tab.active {
        color: #FFFFFF;
        border-bottom-color: #DC143C;
        text-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
    }

    .mobile-sidebar-categories {
        margin-top: 15px;
    }

    .mobile-sidebar-category {
        display: flex;
        align-items: center;
        padding: 12px;
        color: #F5F5F5;
        text-decoration: none;
        border-radius: 8px;
        margin-bottom: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .mobile-sidebar-category:hover {
        background: #2A2A2A;
        border-color: #DC143C;
        box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
        transform: translateX(5px);
    }

    .mobile-sidebar-category i {
        margin-right: 12px;
        width: 24px;
        text-align: center;
        color: #FF1744;
    }

    /* Mobile Jumbotron */
    .jumbotron {
        padding: 30px 20px !important;
        background: linear-gradient(145deg, #1A1A1A 0%, #0A0A0A 100%) !important;
        border: 2px solid #2A2A2A;
    }

    .jumbotron h1 {
        font-size: 1.75rem;
        color: #FFFFFF !important;
        text-shadow: 0 0 20px rgba(220, 20, 60, 0.4);
    }

    .jumbotron .lead {
        font-size: 1.1rem;
        color: #B0B0B0 !important;
    }

    /* Adjust categories to show 3 per row on small screens */
    @media (max-width: 575px) {
        .col-6.col-sm-4.col-md-3.col-lg-2.mb-4 {
            width: 33.333%;
            padding-left: 4px;
            padding-right: 4px;
            margin-bottom: 8px !important;
        }

        .game-info {
            padding: 6px;
            background: linear-gradient(145deg, #1A1A1A 0%, #0A0A0A 100%);
        }

        .game-title {
            font-size: 0.75rem;
            margin-bottom: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #FFFFFF;
        }

        .game-card {
            margin-bottom: 0;
            border: 1px solid #2A2A2A;
            background: linear-gradient(145deg, #1A1A1A 0%, #0A0A0A 100%);
        }

        .game-card:hover {
            border-color: #DC143C;
            box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
        }

        .game-image-wrapper {
            padding-top: 80%;
        }
    }

    @media (min-width: 576px) and (max-width: 767px) {
        .col-6.col-sm-4.col-md-3.col-lg-2.mb-4 {
            width: 33.333%;
            padding-left: 6px;
            padding-right: 6px;
            margin-bottom: 12px !important;
        }

        .game-info {
            padding: 10px;
            background: linear-gradient(145deg, #1A1A1A 0%, #0A0A0A 100%);
        }
    }

    /* Adjust main content */
    main {
        padding-bottom: 20px;
    }

    /* Footer - Mobile Gaming */
    footer {
        padding-bottom: 20px !important;
        background: #0A0A0A !important;
    }

    /* Product Cards for Mobile */
    .product-card {
        margin-bottom: 20px;
        background: linear-gradient(145deg, #1A1A1A 0%, #0A0A0A 100%);
        border: 2px solid #2A2A2A;
    }

    .product-card:hover {
        border-color: #DC143C;
        box-shadow: 0 8px 32px rgba(220, 20, 60, 0.3);
    }

    /* Category Card Styling for Mobile */
    .card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
        height: 100%;
        background: linear-gradient(145deg, #1A1A1A 0%, #0A0A0A 100%);
        border: 2px solid #2A2A2A;
    }

    .card:hover {
        border-color: #DC143C;
        box-shadow: 0 8px 32px rgba(220, 20, 60, 0.4);
    }

    .card-body {
        padding: 15px 10px;
        color: #F5F5F5;
    }

    .card-title {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 6px;
        color: #FFFFFF;
    }

    .card-text {
        font-size: 0.85rem;
        color: #B0B0B0;
    }

    .card .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Mobile Overlay - Dark */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 10, 10, 0.85);
        z-index: 1500;
        display: none;
        backdrop-filter: blur(4px);
    }

    .mobile-overlay.show {
        display: block;
    }

    .mobile-notification-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #DC143C 0%, #FF1744 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 4px 20px rgba(220, 20, 60, 0.5);
        z-index: 1000;
        border: 2px solid #DC143C;
        transition: all 0.3s ease;
    }
    .mobile-notification-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 30px rgba(220, 20, 60, 0.7);
    }
    .mobile-notification-btn i {
        color: #FFFFFF !important;
    }

    /* Admin Order Details Mobile View */
    .admin-order-details .table {
        font-size: 0.85rem;
        background: #1A1A1A;
        color: #F5F5F5;
    }

    .admin-order-details .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Special mobile overrides for very small screens */
@media (max-width: 375px) {
    .col-6.col-sm-4.col-md-3.col-lg-2.mb-4 {
        padding-left: 3px;
        padding-right: 3px;
    }

    .game-info {
        padding: 6px;
    }

    .game-title {
        font-size: 0.7rem;
        color: #FFFFFF;
    }

    .game-vendor {
        font-size: 0.65rem;
        color: #B0B0B0;
    }
}

/* Mobile Search Bar - Gaming Dark */
@media (max-width: 768px) {
    .mobile-search-bar {
        background: #1A1A1A;
        border: 2px solid #DC143C;
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
    }

    .mobile-search-bar input {
        background: #0A0A0A;
        color: #FFFFFF;
        border: 1px solid #2A2A2A;
    }

    .mobile-search-bar input::placeholder {
        color: #707070;
    }
}
