/* Mobile Responsive CSS for Midasbuy */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* Responsive containers */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow */
.hero-username,
.hero-player-id,
.user-name,
.user-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    order: -1;
}

/* Header adjustments for mobile */
.header-content {
    position: relative;
    max-width: 100%;
}

.header-right {
    flex-wrap: wrap;
    max-width: 100%;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #1a2238;
    z-index: 10000;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px 0;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    margin-bottom: 20px;
}

.mobile-menu-header h3 {
    color: #00d4ff;
    font-size: 20px;
    margin: 0;
}

.mobile-menu-content {
    margin-top: 20px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 10px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    transition: all 0.3s;
    border-radius: 5px;
}

.mobile-menu-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding-left: 15px;
}

.mobile-menu-item i {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .products-section {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .filter-group h3 {
        font-size: 14px;
    }
    
    .filter-option {
        font-size: 13px;
    }
    
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .slider-section {
        margin-bottom: 20px;
    }
    
    .slider-container {
        border-radius: 10px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .logo img {
        height: 30px;
    }
    
    .mobile-menu-btn {
        display: block;
        order: -1;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .language-selector {
        display: none;
    }
    
    .game-info {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    
    .game-icon {
        width: 60px;
        height: 60px;
    }
    
    .game-icon img {
        width: 100%;
        height: 100%;
    }
    
    .game-title {
        font-size: 20px;
    }
    
    .game-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-user-info {
        width: 100%;
        margin-top: 15px;
    }
    
    .badge-official,
    .btn-subscribe {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .btn-player-id {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .player-id-section {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .badge-popular {
        font-size: 14px;
        padding: 10px 20px;
        letter-spacing: 1px;
    }
    
    .badge-popular::before,
    .badge-popular::after {
        font-size: 14px;
    }
    
    .product-card {
        padding: 15px 10px;
        min-height: 250px;
    }
    
    .uc-amount {
        font-size: 22px;
    }
    
    .uc-bonus {
        font-size: 18px;
    }
    
    .price-main {
        font-size: 16px;
    }
    
    .hero-user-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
        gap: 10px;
    }
    
    .hero-user-details {
        width: 350px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .hero-avatar {
        width: 80px;
        height: 80px;
        border: 3px solid #00d4ff;
    }
    
    .hero-username {
        font-size: 18px;
        line-height: 1.2;
        word-break: break-word;
        max-width: 100%;
    }
    
    .hero-player-id {
        font-size: 12px;
    }
    
    .hero-stats {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        width: 70%;
    }
    
    .hero-stat {
        font-size: 11px;
        padding: 6px 10px;
        flex: 0 1 auto;
        white-space: nowrap;
    }
    
    .user-info {
        display: none !important;
    }
    
    .user-balance {
        font-size: 14px;
    }
    
    .notification-btn span,
    .signin-btn span,
    .add-balance-btn span,
    .logout-btn span {
        display: none;
    }
    
    .notification-btn,
    .signin-btn,
    .add-balance-btn,
    .logout-btn {
        padding: 8px;
    }
    
    .notification-btn i,
    .signin-btn i,
    .add-balance-btn i,
    .profile-link i,
    .simple-login-link i,
    .logout-btn i {
        font-size: 18px;
    }
    
    .slider-container {
        height: 200px;
    }
    
    .slide {
        min-height: 200px;
        height: 200px;
        min-width: 100%;
        width: 100%;
    }
    
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .slider-arrow i {
        font-size: 14px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 25px;
    }
    
    .tabs-navigation {
        gap: 5px;
        padding: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        font-size: 11px;
        padding: 10px 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .tab-btn i {
        font-size: 12px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .hero-section {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .logo img {
        height: 25px;
    }
    
    .mobile-menu-btn {
        font-size: 20px;
        padding: 5px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .badge-popular {
        font-size: 12px;
        padding: 8px 16px;
        letter-spacing: 0.5px;
    }
    
    .badge-popular::before,
    .badge-popular::after {
        font-size: 12px;
    }
    
    .product-card {
        padding: 12px 8px;
        min-height: 220px;
    }
    
    .product-icon .uc-icon {
        width: 60px;
        height: 60px;
    }
    
    .game-title {
        font-size: 18px;
    }
    
    .game-icon {
        width: 50px;
        height: 50px;
    }
    
    .uc-amount {
        font-size: 20px;
    }
    
    .uc-bonus {
        font-size: 16px;
    }
    
    .price-main {
        font-size: 15px;
    }
    
    .order-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    .hero-user-card {
        padding: 12px;
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
        gap: 8px;
    }
    
    .hero-avatar {
        width: 70px;
        height: 70px;
        border: 2px solid #00d4ff;
    }
    
    .hero-username {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .hero-player-id {
        font-size: 11px;
    }
    
    .hero-stats {
        gap: 6px;
    }
    
    .hero-stat {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .hero-stat i {
        font-size: 10px;
    }
    
    .btn-player-id {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .tab-btn {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .tab-btn i {
        font-size: 11px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .modal-form input {
        padding: 10px 10px 10px 35px;
        font-size: 14px;
    }
    
    .btn-modal-login {
        padding: 12px;
        font-size: 13px;
    }
    
    .uc-info {
        gap: 5px;
    }
    
    .uc-small-icon {
        width: 14px;
        height: 14px;
    }
    
    .bonus-percent {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .price-label {
        font-size: 11px;
    }
    
    .old-price {
        font-size: 11px;
    }
    
    .discount-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .product-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .notification-btn,
    .signin-btn,
    .add-balance-btn,
    .logout-btn,
    .profile-link,
    .simple-login-link {
        padding: 6px;
    }
    
    .notification-btn i,
    .signin-btn i,
    .add-balance-btn i,
    .profile-link i,
    .simple-login-link i,
    .logout-btn i {
        font-size: 16px;
    }
    
    .user-balance {
        display: none;
    }
    
    .slider-container {
        height: 180px;
    }
    
    .slide {
        min-height: 180px;
        height: 180px;
        min-width: 100%;
        width: 100%;
    }
    
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
    }
    
    .slider-arrow.prev {
        left: 5px;
    }
    
    .slider-arrow.next {
        right: 5px;
    }
    
    .slider-arrow i {
        font-size: 12px;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    .windows-watermark {
        font-size: 10px;
        bottom: 10px;
        right: 10px;
    }
    
    .filter-header {
        font-size: 12px;
    }
    
    .sidebar {
        padding: 12px;
    }
    
    .filter-group h3 {
        font-size: 13px;
    }
    
    .filter-option {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .filter-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}
