/**
 * Dev-Menu Styling
 * Nur geladen im Dev-Mode (localhost, port 5000, ?dev=true)
 */

.dev-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dev-menu-content {
    background: #1a1a1a;
    border: 2px solid #00ff00;
    border-radius: 12px;
    padding: 2em;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.dev-menu-content h2 {
    margin: 0 0 0.5em 0;
    font-size: 1.8em;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.dev-menu-subtitle {
    text-align: center;
    color: #88ff88;
    margin: 0 0 1.5em 0;
    font-size: 0.9em;
}

.dev-menu-content h3 {
    margin: 1.5em 0 0.5em 0;
    font-size: 1.2em;
    color: #ffff00;
    border-bottom: 1px solid #444;
    padding-bottom: 0.3em;
}

.dev-menu-category {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 1em;
}

.dev-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75em 1em;
    background: #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.dev-menu-item:hover {
    background: #3a3a3a;
    border-color: #00ff00;
    transform: translateX(4px);
}

.showblock-name {
    font-size: 1em;
    color: #00ff00;
}

.loop-btn {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 0.4em 1.2em;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.85em;
    transition: all 0.2s;
}

.loop-btn:hover {
    background: #00cc00;
    transform: scale(1.05);
}

.loop-btn:active {
    transform: scale(0.95);
}

.dev-menu-controls {
    display: flex;
    gap: 0.5em;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 2px solid #444;
}

.dev-btn {
    flex: 1;
    padding: 0.8em 1em;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.2s;
}

.dev-btn-primary {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
}

.dev-btn-primary:hover {
    background: #00cc00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.dev-btn-secondary {
    background: transparent;
    color: #00ff00;
    border-color: #00ff00;
}

.dev-btn-secondary:hover {
    background: #00ff0020;
    transform: translateY(-2px);
}

.dev-btn:active {
    transform: translateY(0) !important;
}

/* Scrollbar Styling */
.dev-menu-content::-webkit-scrollbar {
    width: 10px;
}

.dev-menu-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.dev-menu-content::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
}

.dev-menu-content::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dev-menu-content {
        max-width: 90vw;
        padding: 1.5em;
    }

    .dev-menu-controls {
        flex-direction: column;
    }

    .dev-btn {
        width: 100%;
    }
}
