/**
 * Debug Panel Styles
 * Development toolbar outside the game area
 */

.debug-panel {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Position below the game wrapper */
    margin-top: 8px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid #444;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    color: #ddd;
    z-index: 10000;
    min-width: 600px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    /* Position at bottom of viewport */
    position: fixed;
    bottom: 0;
    transform: translateX(-50%);
}

.debug-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(to bottom, #3a3a4a, #2a2a3a);
    border-bottom: 1px solid #444;
    border-radius: 4px 4px 0 0;
}

.debug-panel-title {
    font-weight: bold;
    color: #ffcc00;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.debug-panel-toggle {
    background: none;
    border: 1px solid #555;
    color: #aaa;
    width: 20px;
    height: 16px;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    border-radius: 2px;
}

.debug-panel-toggle:hover {
    background: #444;
    color: #fff;
}

.debug-panel-content {
    display: flex;
    gap: 16px;
    padding: 8px 12px;
    align-items: flex-start;
}

.debug-panel.collapsed .debug-panel-content {
    display: none;
}

.debug-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.debug-section-title {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.debug-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.debug-panel .debug-btn {
    padding: 4px 8px;
    font-size: 10px;
    background: #c0c0c0;
    border: 1px solid #808080;
    color: #000;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    font-weight: 500;
}

.debug-panel .debug-btn:hover {
    background: #d0d0d0;
    border-color: #606060;
    color: #000;
}

.debug-panel .debug-btn:active {
    background: #a0a0a0;
    transform: translateY(1px);
}

.debug-panel .debug-btn-danger {
    background: #ff6666;
    border-color: #cc0000;
    color: #000;
}

.debug-panel .debug-btn-danger:hover {
    background: #ff8888;
    border-color: #ee0000;
    color: #000;
}

.debug-panel .debug-btn-warning {
    background: #ffcc66;
    border-color: #cc9900;
    color: #000;
}

.debug-panel .debug-btn-warning:hover {
    background: #ffdd88;
    border-color: #ddaa00;
    color: #000;
}

.debug-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 10px;
    color: #88ff88;
    background: #1a1a2a;
    padding: 4px 8px;
    border-radius: 3px;
    min-width: 150px;
}

.debug-info span {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .debug-panel {
        min-width: auto;
        width: 95%;
        font-size: 10px;
    }

    .debug-panel-content {
        flex-wrap: wrap;
        gap: 8px;
    }
}
