/**
 * Mobile Compatibility (320px – 768px)
 * All rules are inside media queries. Desktop layout is unchanged.
 */

/* ---- Tables: smooth horizontal scroll on mobile ---- */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .table-responsive table {
        min-width: 600px;
    }
}

/* ---- Forms: stack vertically on mobile ---- */
@media (max-width: 768px) {
    .form-mobile-stack .row > [class^="col-"],
    .form-mobile-stack .form-group,
    .form-mobile-stack .mb-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-mobile-stack .row {
        flex-direction: column;
    }
}

/* ---- Buttons: touch targets ≥ 44px ---- */
@media (max-width: 768px) {
    .btn,
    button:not(.close):not(.btn-close),
    .icon-link,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 1rem;
    }
}

/* ---- Prevent horizontal scroll: contain width ---- */
@media (max-width: 768px) {
    .product-card,
    .gamecard,
    .ad-stat-card,
    .sd-stat-card,
    .sd-balance-card,
    .trust-card,
    .platform-card,
    .CartContainer,
    .ProductCard {
        max-width: 100%;
    }

    .page-wrapper,
    .hero-wrapper,
    .filter-sidebar,
    .cart-body .container {
        max-width: 100%;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* ---- Tighter spacing on small phones ---- */
@media (max-width: 576px) {
    .table-responsive table {
        min-width: 500px;
    }

    .page-wrapper {
        margin: 24px auto;
        padding: 0 12px;
    }
}

/* ---- Page wrapper and content padding (mobile only) ---- */
@media (max-width: 768px) {
    .page-wrapper {
        margin: 40px auto;
        padding: 0 16px;
    }

    .seo-block,
    .homepage-seo,
    .homepage-faq {
        padding: 30px 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .trust-premium-section {
        padding: 60px 0;
    }

    .trust-premium-section h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .platform-hero,
    .guide-hero {
        padding: 24px 20px;
    }

    .platform-hero h1,
    .guide-hero h1 {
        font-size: 28px;
    }

    .guide-content-block {
        padding: 24px 20px;
    }
}
