/* ═══════════════════════════════════════════════════════
   GUIDE.CSS — Command Guide Panel (Top Right)
   ═══════════════════════════════════════════════════════ */

#guide-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 240px;
    background: var(--bg-panel);
    border: 1px solid var(--green-dark);
    border-radius: 6px;
    z-index: 60;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
    font-family: var(--font-mono);
    font-size: var(--guide-font-size);
    transition: all 0.3s ease;
    overflow: hidden;
}

#guide-panel:hover {
    border-color: var(--green-primary);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
}

.guide-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 255, 65, 0.05);
    border-bottom: 1px solid var(--green-dark);
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.guide-icon {
    font-size: 14px;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

.guide-title {
    flex: 1;
    color: var(--green-primary);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 0 5px var(--green-glow);
}

.guide-toggle {
    background: none;
    border: 1px solid var(--green-dark);
    color: var(--green-primary);
    font-size: 14px;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.guide-toggle:hover {
    background: var(--green-dark);
    color: var(--bg-primary);
}

.guide-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 14px;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
}

.guide-content.collapsed {
    max-height: 0;
    padding: 0 14px;
    opacity: 0;
    overflow: hidden;
}

.guide-section {
    margin-bottom: 12px;
}

.guide-section:last-child {
    margin-bottom: 4px;
}

.guide-category {
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid #1a1a1a;
    font-weight: 600;
}

.guide-cmd {
    padding: 3px 0;
    color: var(--green-dim);
    font-size: 11px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.guide-cmd:hover {
    color: var(--green-primary);
    padding-left: 4px;
    text-shadow: 0 0 5px var(--green-glow);
}

.guide-cmd code {
    color: var(--amber);
    background: rgba(255, 179, 0, 0.08);
    padding: 1px 5px;
    font-size: 11px;
    border-radius: 2px;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.guide-cmd:hover code {
    background: rgba(255, 179, 0, 0.15);
    color: var(--white-bright);
}

/* ═══════ RESPONSIVE (Keep positioned, just smaller) ═══════ */
@media (max-width: 768px) {
    #guide-panel {
        width: 160px;
        top: 8px;
        right: 8px;
        font-size: 9px;
        z-index: 60;
        transform: scale(0.85);
        transform-origin: top right;
    }

    .guide-content {
        max-height: 180px;
    }

    .guide-cmd {
        font-size: 9px;
    }

    .guide-cmd code {
        font-size: 9px;
    }

    .guide-title {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    #guide-panel {
        width: 140px;
        top: 6px;
        right: 6px;
        font-size: 8px;
        z-index: 60;
        transform: scale(0.75);
        transform-origin: top right;
    }

    .guide-content {
        max-height: 150px;
    }

    .guide-title {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .guide-cmd {
        font-size: 8px;
    }

    .guide-cmd code {
        font-size: 8px;
    }
}
