/* ============================================================
   Wheel of Life v2 — wol-style.css
   ============================================================ */

/* Load Tabler icons (outline only) */
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.10.0/dist/tabler-icons.min.css');

.wol-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    box-sizing: border-box;
}
.wol-wrap * { box-sizing: border-box; }

/* ── Graphical steps bar ── */
.wol-steps-bar {
    display: flex;
    align-items: stretch;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.wol-step-seg {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px 8px;
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    gap: 5px;
    transition: background 0.35s;
}
.wol-step-seg:last-child { border-right: none; }
.wol-seg-icon {
    font-size: 18px;
    color: #bbb;
    transition: color 0.3s;
}
.wol-seg-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #bbb;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s;
}
.wol-step-seg.wol-done .wol-seg-icon,
.wol-step-seg.wol-active .wol-seg-icon {
    color: #fff;
}
.wol-step-seg.wol-done .wol-seg-label,
.wol-step-seg.wol-active .wol-seg-label {
    color: rgba(255,255,255,0.88);
}
.wol-step-seg.wol-active {
    outline: 2px solid rgba(255,255,255,0.4);
    outline-offset: -2px;
    z-index: 1;
}


/* ── Live chart while answering ── */
.wol-live-chart-panel {
    width: 100%;
    max-width: 1100px;
    margin: -0.5rem auto 1.5rem;
    padding: 1rem 1rem 0.75rem;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.wol-live-chart-title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.5rem;
}
.wol-live-chart-wrap {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 520px;
    max-height: 760px;
}
.wol-live-chart-wrap canvas,
.wol-chart-wrap canvas {
    position: relative;
    z-index: 1;
}

/* ── Question heading ── */
.wol-q-heading {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 1.75rem;
    letter-spacing: 0.01em;
    text-align: center;
}

/* ── Number buttons ── */
.wol-num-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.wol-num-btn {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, transform 0.1s;
}
.wol-num-btn:hover {
    background: #f5f5f5;
    transform: scale(1.06);
}
.wol-num-btn.wol-selected {
    color: #fff;
    border-color: transparent;
    transform: scale(1.1);
}

/* ── Scale hint ── */
.wol-scale-hint {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 0.25rem;
    padding: 0 4px;
}

#wol-steps-bar-result, #wol-steps-bar {
  flex-wrap: wrap !important;
}

/* ── Back button ── */
.wol-back-row {
    display: flex;
    justify-content: center;
    margin-top: -10px;
	margin-bottom:40px;
}
.wol-back-btn {
    padding: 8px 22px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #14accc;
    color: #fff;
	font-weight:500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.wol-back-btn:disabled { opacity: 0.3; cursor: default; }
.wol-back-btn:not(:disabled):hover { background: #fff;
color:#000;}

/* ── Results ── */
.wol-result-sub {
    font-size: 14px;
    color: #888;
    margin-bottom: 1.5rem;
    text-align: center;
}
.wol-chart-wrap {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 520px;
    max-height: 760px;
    margin-bottom: 1.5rem;
}

/* ── Score cards ── */
.wol-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}
.wol-sc-card {
    border-radius: 8px;
    padding: 10px 12px;
}
.wol-sc-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 3px;
    opacity: 0.85;
}
.wol-sc-val {
    font-size: 22px;
    font-weight: 500;
}
.wol-sc-denom {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.6;
}

/* ── Popup overlay ── */
.wol-overlay {
    min-height: 460px;
    background: rgba(0,0,0,0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 2rem 1rem;
}

/* ── Modal ── */
.wol-modal {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 400px;
}
.wol-modal-center { text-align: center; }
.wol-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 1rem;
}
.wol-modal-center .wol-modal-icon { margin: 0 auto 1rem; }
.wol-icon-purple { background: #EEEDFE; color: #14accc; }
.wol-icon-green  { background: #E1F5EE; color: #0F6E56; font-size: 26px; }
.wol-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.wol-modal-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.wol-modal input[type="text"],
.wol-modal input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #1a1a1a;
    font-size: 15px;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.wol-modal input:focus {
    border-color: #7F77DD;
    box-shadow: 0 0 0 3px rgba(127,119,221,0.15);
}
.wol-err {
    font-size: 12px;
    color: #d33;
    margin: -6px 0 10px;
}
.wol-modal-cta {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #14accc;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}
.wol-modal-cta:hover { opacity: 0.88; }
.wol-modal-skip {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
}
.wol-modal-skip:hover { color: #666; text-decoration: underline; }

/* ── Action buttons (success modal) ── */
.wol-action-btn {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
}
.wol-action-btn:hover { background: #f5f5f5; }

/* ── Restart ── */
.wol-restart-wrap { text-align: center; }
.wol-restart-btn {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.wol-restart-btn:hover { background: #f5f5f5; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .wol-wrap {
        max-width: 100%;
        padding: 1rem 0.5rem;
    }
    .wol-live-chart-wrap,
    .wol-chart-wrap {
        height: 90vw;
        min-height: 340px;
        max-height: 90vh;
    }
    .wol-live-chart-panel {
        width: 100%;
        padding: 0.75rem 0.5rem 0.5rem;
    }
    .wol-num-btn { width: 44px; height: 44px; font-size: 15px; }
    .wol-q-heading { 
		font-size: 22px;
		font-weight: 500;
    margin-bottom: 10px;
	}
    .wol-modal { padding: 1.5rem 1.25rem; }
    .wol-seg-label { font-size: 8px; }
    .wol-seg-icon { font-size: 15px; }
}

/* ── User-requested visual refinements ── */
.wol-seg-icon {
  font-size: 30px;
}

.wol-seg-label {
  font-size: 14px;
}

.wol-step-seg {
  padding: 15px 14px 15px;
}

.wol-wrap {
  max-width: 1000px;
}

#wol-q-heading {
  font-family: "Inter", sans-serif;
}

.wol-num-btn {
  font-weight: 600;
}

.wol-sc-label {
  font-size: 14px;
  color: #fff !important;
}

.wol-sc-val {
  color: #fff !important;
}


/* Keep completed color/icon bar visible above final results */
.wol-result-steps-bar {
    margin-bottom: 1.25rem;
}
.wol-result-steps-bar .wol-step-seg {
    background: inherit;
}
