/* ==========================================================================
   DevXNeo Mobile Stylesheet - Responsive Breakpoints and Drawer Menu
   ========================================================================== */

@media (max-width: 991px) {
    /* Header Adaptations */
    .nav-desktop {
        display: none;
    }

    .header-right .discord-btn,
    .header-right .btn-signin,
    .header-right .btn-signup {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 20px;
        background: none;
        border: none;
        color: var(--text-primary);
        padding: 5px;
    }

    .logo-text {
        font-size: 20px;
    }

    /* Off-Canvas Navigation Drawer */
    .mobile-drawer {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.6);
        z-index: 10000;
        display: flex;
        flex-direction: column;
        padding: 80px 30px;
        transition: right var(--transition-speed) ease-in-out;
    }

    .mobile-drawer.active {
        right: 0;
    }

    .mobile-drawer-close {
        position: absolute;
        top: 20px;
        right: 20px;
        color: var(--text-secondary);
    }

    .mobile-drawer-close:hover {
        color: var(--accent);
    }

    .mobile-nav-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-nav-item {
        color: var(--text-secondary);
        font-size: 16px;
        font-weight: 500;
        padding: 12px 16px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all var(--transition-speed);
        width: 100%;
    }

    .mobile-nav-item:hover, 
    .mobile-nav-item.active {
        color: var(--text-primary);
        background-color: var(--bg-primary);
        border-left: 3px solid var(--accent);
    }

    .mobile-nav-links .divider {
        height: 1px;
        background-color: var(--border-color);
        margin: 15px 0;
    }

    .btn-drawer-auth {
        width: 100%;
        color: var(--text-primary);
        background-color: #3434e6;
        padding: 12px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 12px;
    }

    .btn-drawer-auth.outline {
        background-color: #007219;
    }

    .btn-drawer-auth:hover {
        opacity: 0.9;
    }

    /* Tab Layout Adaptations */
    .tab-panel {
        padding: 40px 5%;
    }

    /* Home Layout Adaptations */
    .hero-banner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-right {
        justify-content: center;
        width: 100%;
    }

    .code-terminal {
        max-width: 100%;
    }

    .patch-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Toolbox Adaptations */
    .utilities-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Adaptations */
    .contact-layout {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    /* Hero Banner Adaptations */
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions button,
    .hero-actions a {
        width: 100%;
        justify-content: center;
    }

    /* General Adaptations */
    .section-title {
        font-size: 18px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .pw-checkboxes {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-modal-card {
        padding: 25px 20px;
        max-width: 90%;
    }

    .auth-social-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
