/* Lighting Visualizer Styles */

:root {
    --lv-primary: #C9A84C;
    --lv-primary-dark: #a8893d;
    --lv-dark: #1a1a2e;
    --lv-text: #333;
    --lv-text-light: #666;
    --lv-bg: #f8f8f8;
    --lv-white: #fff;
    --lv-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --lv-radius: 12px;
}

/* Steps Indicator */
.lv-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: var(--lv-dark);
    color: var(--lv-white);
}

.lv-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lv-step.active { opacity: 1; }
.lv-step.completed { opacity: 0.8; }

.lv-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--lv-primary);
    color: var(--lv-dark);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lv-step-label { font-size: 14px; font-weight: 500; }
.lv-step-arrow { opacity: 0.4; font-size: 18px; }

/* Panels */
.lighting-visualizer { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

.lv-panel {
    max-width: 900px;
    margin: 24px auto;
    padding: 28px;
    background: var(--lv-white);
    border-radius: var(--lv-radius);
    box-shadow: var(--lv-shadow);
}

.lv-panel h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--lv-dark);
}

.lv-hint {
    color: var(--lv-text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Upload Zone */
.lv-upload-zone {
    border: 2px dashed #ccc;
    border-radius: var(--lv-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lv-upload-zone:hover, .lv-upload-zone.dragover {
    border-color: var(--lv-primary);
    background: rgba(201, 168, 76, 0.05);
}

.lv-upload-placeholder svg { color: #999; margin-bottom: 12px; }
.lv-upload-placeholder p { font-size: 16px; color: var(--lv-text); margin: 8px 0; }
.lv-upload-placeholder span { font-size: 12px; color: #999; display: block; }

#lv-preview {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.lv-upload-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* Product Grid */
.lv-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
}

.lv-product-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.lv-product-card:hover {
    border-color: var(--lv-primary);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.2);
}

.lv-product-card.selected {
    border-color: var(--lv-primary);
    background: rgba(201, 168, 76, 0.08);
}

.lv-product-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    margin-bottom: 8px;
}

.lv-product-card h4 {
    font-size: 12px;
    margin: 0 0 4px;
    line-height: 1.3;
    color: var(--lv-text);
}

.lv-product-card .price {
    color: var(--lv-primary-dark);
    font-weight: 600;
    font-size: 14px;
}

/* Canvas Container */
.lv-canvas-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--lv-shadow);
    user-select: none;
}

#lv-room-image {
    display: block;
    max-width: 100%;
}

#lv-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

/* Placed Light */
#lv-light-placed {
    position: absolute;
    cursor: move;
}

#lv-placed-light-img {
    width: 140px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

#lv-light-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,220,150,0.45) 0%, rgba(255,220,150,0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: lv-pulse 3s ease-in-out infinite;
}

@keyframes lv-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.lv-selected-product {
    margin-top: 20px;
    padding: 16px;
    background: var(--lv-bg);
    border-radius: 8px;
    text-align: center;
}

.lv-selected-product h3 { margin: 0 0 4px; font-size: 18px; color: var(--lv-dark); }
.lv-selected-product .price { color: var(--lv-primary-dark); font-weight: 600; font-size: 16px; }

/* Buttons */
.lv-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

.lv-btn:active { transform: scale(0.98); }

.lv-btn-primary { background: var(--lv-primary); color: var(--lv-dark); }
.lv-btn-primary:hover { background: var(--lv-primary-dark); }

.lv-btn-secondary { background: #eee; color: var(--lv-text); }
.lv-btn-secondary:hover { background: #ddd; }

.lv-btn-accent { background: var(--lv-dark); color: var(--lv-primary); }

.lv-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Privacy */
.lv-privacy {
    text-align: center;
    padding: 14px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* GDPR Cookie Banner - hide on visualizer page */
body.page-id-36 #moove_gdpr_cookie_info_bar,
body.page-id-36 #moove_gdpr_cookie_modal,
body.page-id-36 .moove-gdpr-cookie-notice {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .lv-panel { margin: 12px; padding: 16px; }
    .lv-product-grid { grid-template-columns: repeat(2, 1fr); }
    .lv-steps { flex-wrap: wrap; gap: 8px; padding: 14px; }
    .lv-step-label { display: none; }
    .lv-upload-zone { min-height: 200px; padding: 24px; }
}
