/**
 * Debug CSS - Only loaded in DEV mode
 * Shows layout helpers and debug indicators
 */

/* Debug indicator */
body::before {
    content: "🔧 DEV MODE";
    position: fixed;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    color: white;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    font-family: monospace;
    z-index: 99999;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Layout grid overlay (toggle with Shift+G) */
body.debug-grid::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 99998;
    background: 
        repeating-linear-gradient(
            to right,
            rgba(0, 243, 255, 0.03),
            rgba(0, 243, 255, 0.03) 1px,
            transparent 1px,
            transparent 100px
        );
}

/* Highlight overflowing elements */
body.debug-overflow * {
    outline: 1px solid rgba(255, 0, 0, 0.2);
}

body.debug-overflow *:hover {
    outline: 2px solid rgba(255, 0, 0, 0.6);
}

/* Show element dimensions on hover */
body.debug-dimensions *:hover::after {
    content: attr(class);
    position: absolute;
    top: -20px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #00f3ff;
    padding: 2px 6px;
    font-size: 10px;
    font-family: monospace;
    border-radius: 2px;
    white-space: nowrap;
    z-index: 99997;
}

/* Debug toolbar (bottom) */
#debug-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(3, 3, 4, 0.95);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    padding: 8px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #94a3b8;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

#debug-toolbar button {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-family: inherit;
    transition: all 0.2s;
}

#debug-toolbar button:hover {
    background: rgba(0, 243, 255, 0.2);
}

#debug-toolbar button.active {
    background: rgba(0, 243, 255, 0.3);
}

#debug-toolbar .debug-info {
    display: flex;
    gap: 20px;
}

#debug-toolbar .debug-metric {
    display: flex;
    align-items: center;
    gap: 4px;
}

#debug-toolbar .debug-metric-label {
    color: #475569;
}

#debug-toolbar .debug-metric-value {
    color: #00f3ff;
}
