/*
 * visualizer.css
 * Room Color Visualizer component styles for niclab.com
 * Used by visualizer.html (and formerly index.html)
 */

/* ── Zone buttons ── */
.zone-btn {
    padding: 6px 14px;
    border-radius: 99px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: white;
    color: #374151;
    transition: all 0.15s;
}
.zone-btn:hover { border-color: #1e3a5f; color: #1e3a5f; }
.zone-btn.active { background: #1e3a5f; color: white; border-color: #1e3a5f; }

/* ── Lighting toggle buttons ── */
.light-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.light-btn:hover { border-color: #d97706; color: #d97706; }
.light-btn.active { background: #d97706; color: white; border-color: #d97706; }

/* ── Paint finish buttons ── */
.finish-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.finish-btn:hover { border-color: #1e3a5f; color: #1e3a5f; }
.finish-btn.active { background: #1e3a5f; color: white; border-color: #1e3a5f; }

/* ── Color swatches ── */
.color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.12s, border-color 0.12s;
    flex-shrink: 0;
    display: inline-block;
}
.color-swatch:hover { transform: scale(1.18); }
.color-swatch.active {
    border-color: #1e3a5f !important;
    transform: scale(1.18);
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1e3a5f;
}

/* ── Palette groups ── */
.palette-group { margin-bottom: 18px; }
.palette-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}
.swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* ── Harmony suggestion chips ── */
.harmony-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    padding: 4px 12px 4px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.12s;
}
.harmony-chip:hover { border-color: #1e3a5f; }
.harmony-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    display: inline-block;
    flex-shrink: 0;
}

/* ── Zone selection summary chips ── */
.sel-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border-radius: 99px;
    padding: 3px 10px 3px 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.12s;
}
.sel-chip:hover { background: #e2e8f0; }
.sel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    flex-shrink: 0;
    display: inline-block;
}

/* ── Mobile fallback (visualizer.html only) ── */
.mobile-notice {
    display: none;
    background: #1e3a5f;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 1rem;
}
@media (max-width: 767px) {
    .visualizer-wrap { display: none; }
    .mobile-notice { display: block; }
    .legal-disclaimer { display: none; }
}

/* ── Tool canvas / palette grid ── */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
}
@media (max-width: 1100px) {
    .tool-grid { grid-template-columns: 1fr 300px; }
}

/* ── Page header ── */
.viz-page-header {
    background: #1e3a5f;
    color: white;
    padding: 3rem 0 2.5rem;
}
.viz-header-h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.viz-header-sub {
    font-size: 1.125rem;
    max-width: 42rem;
    color: rgba(255,255,255,0.75);
}

/* ── Tool card wrapper ── */
.viz-tool-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Toolbar ── */
.viz-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
}
.viz-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}
.viz-zone-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.viz-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 4px;
}
.viz-controls-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.viz-btn-reset {
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1.5px solid #ef4444;
    color: #ef4444;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.viz-btn-reset:hover { background: #ef4444; color: white; }
.viz-btn-export {
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1.5px solid #1e3a5f;
    color: #1e3a5f;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.viz-btn-export:hover { background: #1e3a5f; color: white; }

/* ── Canvas area ── */
.viz-canvas-wrap {
    position: relative;
    background: #0d1520;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 480px;
}
.viz-canvas-wrap canvas {
    display: block;
    width: 100%;
    border-radius: 8px;
}
.viz-zone-flash {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.72);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 99px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    letter-spacing: 0.06em;
}

/* ── Right panel ── */
.viz-panel {
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: white;
    max-height: 568px;
    overflow: hidden;
}
.viz-panel-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f0f4f8;
    flex-shrink: 0;
}
.viz-panel-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.viz-panel-zone {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
}
.viz-hex-row {
    display: flex;
    gap: 7px;
    align-items: center;
}
.viz-hex-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    background: #ffffff;
}
.viz-hex-input {
    flex: 1;
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: monospace;
    color: #374151;
    outline: none;
}
.viz-hex-apply {
    padding: 7px 14px;
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.viz-panel-hint {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 6px;
}
.viz-palette-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
}
.viz-panel-footer {
    border-top: 1px solid #f0f4f8;
    padding: 14px 22px;
    flex-shrink: 0;
}
.viz-harmony { margin-bottom: 12px; }
.viz-harmony-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.viz-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 7px;
}
.viz-section-note {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.viz-selections { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── Bottom grid ── */
.viz-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    min-width: 0;
}
@media (max-width: 767px) {
    .viz-bottom-grid { grid-template-columns: 1fr; }
}

/* ── How to use ── */
.viz-howto-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.viz-howto-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1rem;
}
.viz-howto-list { list-style: none; padding: 0; margin: 0; }
.viz-howto-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.65;
    align-items: flex-start;
}
.viz-step {
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}
.viz-step-navy  { background: #1e3a5f; }
.viz-step-amber { background: #d97706; }

/* ── CTA card ── */
.viz-cta-card {
    background: #1e3a5f;
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.viz-cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}
.viz-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.viz-cta-body {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
}
.viz-cta-btn {
    display: inline-block;
    background: #d97706;
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}
.viz-cta-btn:hover { background: #b45309; }

/* ── Disclaimer ── */
.viz-disclaimer {
    background: #fff8f0;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 2.5rem;
}
.viz-disclaimer-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.viz-disclaimer-icon {
    color: #d97706;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.viz-disclaimer-heading {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #92400e;
    margin-bottom: 8px;
}
.viz-disclaimer-body {
    font-size: 0.8rem;
    color: #78350f;
    line-height: 1.7;
    margin-bottom: 10px;
}
.viz-disclaimer-last {
    color: #92400e;
    margin-bottom: 0;
}
