/* assets/css/responsive.css */

/* --- TABLET (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
    .wrapper.dashboard-layout {
        flex-direction: column !important;
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        padding: 15px 20px !important;
        box-shadow: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .sidebar.collapsed .nav-menu,
    .sidebar.collapsed .sidebar-cta,
    .sidebar.collapsed .sidebar-footer {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .stats-grid,
    .resource-grid,
    .modern-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* --- MOBILE (max-width: 768px) --- */
@media screen and (max-width: 768px) {

    /* --- GLOBAL RESETS --- */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    /* Force all main containers to be fluid */
    .wrapper,
    .main-content,
    .public-container,
    .hero-container,
    .footer-container,
    .shop-wrapper,
    .container,
    .section-header {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* --- TYPOGRAPHY RESIZING --- */
    h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 20px !important;
    }

    p {
        font-size: 16px !important;
    }

    /* --- NAVIGATION --- */
    .main-nav {
        padding: 0 15px !important;
        height: 70px !important;
        width: 100% !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        position: fixed;
        /* Fixed better than absolute for mobile menu */
        top: 70px;
        left: 0;
        width: 100% !important;
        background: #0f172a;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 9999;
        height: auto;
        border-radius: 0 0 20px 20px;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-actions .btn-nav-login,
    .nav-actions .btn-nav-signup {
        display: none !important;
    }

    .mobile-toggle {
        display: block !important;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }

    /* --- COMPONENTS & GRIDS --- */

    /* Force 1 Column on EVERYTHING */
    .stats-grid,
    .resource-grid,
    .how-grid,
    .bento-grid-v2,
    .pricing-grid-v2,
    .tool-grid-v2,
    .shop-grid,
    .related-products-grid,
    .footer-grid,
    .product-detail-container {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 30px !important;
    }

    /* Cards */
    .bento-card.dark {
        grid-column: span 1 !important;
    }

    .stat-card,
    .resource-card,
    .product-card,
    .tool-card-v2,
    .price-card-v2,
    .auth-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Product Detail Fixes */
    .product-detail-container>div:first-child {
        position: static !important;
    }

    /* Shop Filters */
    .shop-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px !important;
        order: -1;
    }

    .shop-wrapper {
        flex-direction: column !important;
        display: flex !important;
    }

    /* Forms */
    input,
    select,
    textarea {
        max-width: 100% !important;
    }

    /* Landing Page Specifics */
    .hero-v2 {
        padding: 100px 0 50px !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    .ticker-v2 {
        padding: 20px 0 !important;
    }

    /* Footer */
    footer {
        padding: 50px 0 !important;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column !important;
    }

    /* Auth Pages */
    .auth-container {
        padding: 20px !important;
        align-items: flex-start !important;
        /* Allow scrolling on small screens if keyboard opens */
        padding-top: 100px !important;
    }
}