/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}
.mobile-menu-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.mobile-menu-btn svg {
    width: 22px;
    height: 22px;
}

/* Mobile Config Button - Hidden on desktop */
.mobile-config-btn {
    display: none;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1400px) {
    .config-panel {
        width: 250px;
    }
    :root {
        --config-width: 250px;
    }
}

@media (max-width: 1200px) {
    .config-panel {
        display: none;
    }
    .main {
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    /* Show hamburger menu */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Show mobile config button */
    .mobile-config-btn {
        display: flex;
    }

    /* Sidebar becomes slide-out drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        padding-top: calc(var(--header-height) + 16px);
        z-index: 1001;
        transition: left 0.3s ease;
        display: block;
    }
    .sidebar.mobile-open {
        left: 0;
    }

    .main {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 24px 20px;
    }

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

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

    .setup-options.three-col {
        grid-template-columns: 1fr;
    }

    .setup-note-card {
        display: none;
    }

    .page-title {
        font-size: 24px;
    }

    /* Smaller step titles */
    .step-title {
        font-size: 15px;
    }

    .step-text {
        font-size: 13px;
    }

    /* Image frames - fit screen */
    .image-frame {
        margin: 12px 0;
    }
    .image-frame img {
        max-width: 100%;
        height: auto;
    }

    /* Callout adjustments */
    .callout {
        padding: 12px;
    }
    .callout-title {
        font-size: 13px;
    }
    .callout-body {
        font-size: 12px;
    }

    /* Accordion adjustments */
    .accordion-title {
        font-size: 13px;
    }
    .accordion-body {
        font-size: 12px;
        padding: 12px;
    }

    /* Flow box adjustments */
    .flow-box {
        padding: 12px;
    }

    /* Steps adjustments */
    .step {
        padding-left: 36px;
    }
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    /* Button adjustments */
    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    /* Header buttons on mobile */
    .header-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Terminal/PowerShell adjustments */
    .terminal-window,
    .powershell-window {
        font-size: 11px;
    }

    /* VPN cards */
    .vpn-card {
        padding: 16px;
    }

    /* Checklist cards */
    .checklist-card {
        padding: 12px;
    }
    .checklist-card-row {
        flex-direction: column;
        gap: 12px;
    }

    /* Next step card */
    .next-step-card {
        padding: 14px;
    }

    /* Method tabs */
    .method-tabs {
        flex-direction: column;
        gap: 8px;
    }
    .method-tab {
        width: 100%;
    }

    /* Video embeds */
    .video-embed {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
    }
    .video-embed iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Difficulty badge */
    .difficulty-badge {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Tables - make scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .content-wrapper {
        padding: 20px 16px;
    }

    .header {
        padding: 0 12px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-description {
        font-size: 13px;
    }

    /* Hide logo text on very small screens */
    .logo-text {
        display: none;
    }

    /* Smaller header buttons */
    .header-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
    .header-btn.anticheat-btn {
        padding: 6px 10px;
    }

    /* Step adjustments */
    .step {
        padding-left: 32px;
    }
    .step-number {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    .step-title {
        font-size: 14px;
    }
    .step-text {
        font-size: 12px;
    }

    /* Callout adjustments */
    .callout {
        padding: 10px;
        gap: 10px;
    }
    .callout-icon {
        font-size: 16px;
        min-width: 20px;
    }
    .callout-title {
        font-size: 12px;
    }
    .callout-body {
        font-size: 11px;
        line-height: 1.5;
    }

    /* Accordion */
    .accordion-header {
        padding: 12px;
    }
    .accordion-icon {
        font-size: 14px;
    }
    .accordion-title {
        font-size: 12px;
    }

    /* Buttons */
    .btn {
        padding: 8px 14px;
        font-size: 11px;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Flow box */
    .flow-box {
        padding: 10px;
    }
    .flow-box .step-text {
        font-size: 11px;
    }

    /* Tags */
    .tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    /* Checklist */
    .checklist-card-title {
        font-size: 13px;
    }
    .checklist-card-desc {
        font-size: 11px;
    }
    .checklist-card-icon {
        font-size: 16px;
    }

    /* VPN grid */
    .vpn-card {
        padding: 14px;
    }
    .vpn-name {
        font-size: 14px;
    }
    .vpn-features {
        font-size: 11px;
    }

    /* Sidebar when open */
    .sidebar {
        width: 260px;
        left: -260px;
    }
    .nav-item {
        padding: 10px;
        font-size: 12px;
    }
    .nav-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    /* Terminal */
    .terminal-window,
    .powershell-window {
        font-size: 10px;
        padding: 10px;
    }
    .terminal-line,
    .ps-line {
        padding: 3px 0;
    }

    /* Setup overlay mobile */
    .setup-content {
        padding: 20px;
        margin: 10px;
        max-height: 90vh;
    }
    .setup-title {
        font-size: 18px;
    }
    .setup-subtitle {
        font-size: 12px;
    }
    .setup-option {
        padding: 14px;
    }
    .setup-option-label {
        font-size: 13px;
    }
    .setup-option-desc {
        font-size: 11px;
    }

    /* Method recommendation */
    .method-recommendation {
        padding: 10px;
        font-size: 12px;
    }

    /* Next step card */
    .next-step-card {
        padding: 12px;
    }
    .next-step-title {
        font-size: 14px;
    }
    .next-step-label {
        font-size: 10px;
    }

    /* Support modal */
    .ai-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Intel RAID modal */
    .intel-raid-modal-content {
        margin: 10px;
        padding: 16px;
    }
    .intel-raid-options {
        flex-direction: column;
    }
    .intel-raid-option-btn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .content-wrapper {
        padding: 16px 12px;
    }

    .page-title {
        font-size: 18px;
    }

    .step-title {
        font-size: 13px;
    }

    .callout-title {
        font-size: 11px;
    }
    .callout-body {
        font-size: 10px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 10px;
    }

    /* Header - minimal */
    .header-btn {
        padding: 5px 6px;
        font-size: 9px;
    }
}
