/*
==============================================================================
LUVEX THEME - UV LED PAGE STYLES (FINAL LAYOUT FIX)
==============================================================================
*/

/* --- 1. Hero & Canvas Styles --- */
.uv-led-hero {
    position: relative; /* Anchor for all absolutely positioned children */
    height: 75vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    /* FIX: Force block display to override the global flex rule */
    display: block !important;
}

#integrated-controls-container,
#integrated-controls-container input {
    cursor: auto; /* Restore default cursor for usability on controls */
}


.uv-led-hero #uv-led-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Layer 1: Background */
    background-color: #0B1A3D;
}

.uv-led-hero .luvex-hero__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    z-index: 3; /* Layer 3: Text Content (Topmost) */
    text-align: center;
    pointer-events: none;
}

.uv-led-hero .luvex-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.uv-led-hero .luvex-hero__title,
.uv-led-hero .luvex-hero__subtitle,
.uv-led-hero .luvex-hero__description {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.uv-led-hero .luvex-hero__cta-container {
    pointer-events: auto;
    margin-top: 1.5rem;
}

/* --- 2. Integrated HUD Controls --- */
#integrated-controls-container {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    z-index: 2; /* Layer 2: Controls (Above Canvas, Below Text) */
    pointer-events: auto;
}

.hud-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(11, 26, 61, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(109, 213, 237, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hud-control-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hud-icon {
    font-size: 1.1rem;
    color: var(--luvex-bright-cyan);
    opacity: 0.8;
    width: 20px;
    text-align: center;
}

.hud-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #FFF;
    font-weight: 600;
    min-width: 55px;
    text-align: left;
}

.hud-control-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hud-control-group input[type="range"]:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hud-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--luvex-bright-cyan);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #0B1A3D;
    box-shadow: 0 0 10px rgba(109, 213, 237, 0.5);
    transition: transform 0.2s ease;
}

.hud-control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.hud-toggle input[type="checkbox"] {
    display: none;
}

.hud-toggle label {
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hud-toggle input[type="checkbox"]:checked + label .hud-icon {
    color: var(--luvex-bright-cyan);
    opacity: 1;
    text-shadow: 0 0 8px var(--luvex-bright-cyan);
}

.hud-toggle input[type="checkbox"]:not(:checked) + label .hud-icon {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

/* --- 3. Page-Specific Component Styles --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--luvex-gray-200);
}

.comparison-table th {
    background: var(--luvex-dark-blue);
    color: white;
    font-weight: 600;
}

.comparison-table th.highlight {
    background: var(--luvex-bright-cyan);
    color: var(--luvex-dark-blue);
}

.comparison-table td.highlight {
    font-weight: 600;
    color: var(--luvex-dark-blue);
}

/* --- 4. Responsive Design --- */
@media (max-width: 992px) {
    #integrated-controls-container {
        left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .uv-led-hero {
        height: 85vh;
    }
    
    #integrated-controls-container {
        top: auto;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }

    .hud-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
}

/*
==============================================================================
5. LED-PAGE-SPECIFIC HIGH-PERFORMANCE CSS CURSOR
==============================================================================
*/

/* Define the custom cursor images using self-contained SVGs */
:root {
    --cursor-led-default: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" fill="none" stroke="%236dd5ed" stroke-width="1"/><path d="M16 0V8M16 24V32M0 16H8M24 16H32" stroke="%236dd5ed" stroke-width="1"/></svg>');
    --cursor-led-pointer: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="10" fill="none" stroke="%236dd5ed" stroke-width="1.5"/><circle cx="20" cy="20" r="2" fill="%236dd5ed"/><path d="M20 0V12M20 28V40M0 20H12M28 20H40" stroke="%236dd5ed" stroke-width="1.5"/></svg>');
}

/* When the trigger class is on the body, apply the custom cursor */
.led-uv-cursor-active {
    cursor: var(--cursor-led-default) 16 16, auto;
}

/* For all interactive elements within the active areas, use the pointer version */
.led-uv-cursor-active a,
.led-uv-cursor-active button,
.led-uv-cursor-active [role="button"],
.led-uv-cursor-active a:active,
.led-uv-cursor-active button:active,
.led-uv-cursor-active [role="button"]:active {
    cursor: var(--cursor-led-pointer) 20 20, auto;
}

