/**
 * ═══════════════════════════════════════════════════════════════════════════
 * Layer 182: Enterprise Ad Decision Engine - Minimal Styling
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * Minimal CSS for ad decision engine UI elements (non-intrusive)
 */

/* ═══════════════════════════════════════════════════════════════════════════
   AD DEBUG PANEL (Development Only - Hidden in Production)
   ═══════════════════════════════════════════════════════════════════════════ */

.ad-decision-debug-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #4facfe;
    border-radius: 8px;
    padding: 15px;
    min-width: 280px;
    max-width: 350px;
    z-index: 9998;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    color: #00ff88;
    display: none;
    /* Hidden by default */
}

.ad-decision-debug-panel.active {
    display: block;
}

.ad-debug-header {
    font-size: 12px;
    font-weight: bold;
    color: #4facfe;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(79, 172, 254, 0.3);
}

.ad-debug-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-debug-label {
    color: #888;
}

.ad-debug-value {
    color: #00ff88;
    font-weight: 600;
}

.ad-debug-value.warning {
    color: #ffa500;
}

.ad-debug-value.error {
    color: #ff4444;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AD CONTEXT INDICATOR
   ═══════════════════════════════════════════════════════════════════════════ */

.ad-context-indicator {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 10px;
    color: #888;
    z-index: 9997;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-context-indicator.visible {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AD DECISION ENGINE STATUS (Production)
   ═══════════════════════════════════════════════════════════════════════════ */

.ad-engine-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    font-size: 11px;
    color: #00ff88;
}

.ad-engine-status::before {
    content: '●';
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
}

.ad-engine-status.master-enabled::before {
    color: #00ff88;
}

.ad-engine-status.master-disabled::before {
    color: #ffa500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UX PROTECTION LAYER STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.ad-ux-blocked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(50%);
}

.ad-frequency-capped {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ad-decision-debug-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .ad-context-indicator {
        bottom: 10px;
        right: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .ad-engine-status::before {
        animation: none;
    }
}

/* Ensure screen readers can access status */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}