/* === FEELING WHEEL PAGE === */

main { padding: 36px 0 64px; }

.page-header { text-align: left; margin-bottom: 24px; }
.page-header h1 { text-align: left; }
.page-header p {
  text-align: left;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* ── Wheel stage ── */
.wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 24px;
}

.wheel-svg-wrap {
  position: relative;
  width: 100%;
}

#wheelSvg {
  width: 100%;
  height: auto;
  display: block;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

#wheelSvg .slice {
  cursor: pointer;
  transition: opacity 0.2s, filter 0.2s;
  stroke: var(--surface);
  stroke-width: 1.5;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#wheelSvg .slice:hover {
  filter: brightness(0.92);
}

#wheelSvg .slice:focus { outline: none; }
#wheelSvg .slice:focus-visible {
  stroke: var(--text);
  stroke-width: 2;
}

#wheelSvg.has-selection .slice {
  opacity: 0.32;
}

#wheelSvg.has-selection .slice.in-path {
  opacity: 1;
  filter: brightness(0.92);
}

#wheelSvg .label {
  pointer-events: none;
  fill: var(--text);
  font-weight: 500;
}

#wheelSvg .label-base {
  font-size: 12px;
  font-weight: 600;
}

#wheelSvg .label-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#wheelSvg .label-outer {
  font-size: 9px;
}

@media (min-width: 700px) {
  #wheelSvg .label-base { font-size: 16px; }
  #wheelSvg .label-sub  { font-size: 13px; }
  #wheelSvg .label-outer { font-size: 11px; }
}

/* Tooltip */
.wheel-tooltip {
  position: absolute;
  background: var(--text);
  color: white;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 240px;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translate(-50%, calc(-100% - 12px));
}

.wheel-tooltip[hidden] { display: none; }

/* ── Mobile fallback ── */
.wheel-mobile {
  display: none;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.mobile-bases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-base-btn {
  padding: 14px 8px;
  border: 2px solid var(--emo-color, var(--border));
  border-radius: 14px;
  background: var(--emo-bg, var(--surface));
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
}

.mobile-base-btn:active { transform: scale(0.97); }

.mobile-base-btn.active {
  box-shadow: 0 0 0 3px var(--text);
}

.mobile-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.mobile-grid[hidden] { display: none; }

.mobile-grid-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mobile-grid-section + .mobile-grid-section {
  margin-top: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.mobile-grid-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-emotion-btn {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.mobile-emotion-btn:hover { border-color: var(--green-mid); }

.mobile-emotion-btn.selected {
  border-color: var(--text);
  background: var(--text);
  color: white;
}

@media (max-width: 768px) {
  .wheel-svg-wrap { display: none; }
  .wheel-mobile { display: flex; }
}

/* ── Selection card ── */
.selection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 8px 0 24px;
  min-height: 110px;
}

.selection-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 18px 0;
}

.selection-detail[hidden] { display: none; }

.selection-path {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sel-arrow { color: var(--border); }

.sel-base, .sel-sub, .sel-outer {
  display: inline-block;
}

.sel-outer { color: var(--text); }

.selection-word {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.selection-feel,
.selection-need {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.selection-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.cta-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-links .btn {
  padding: 9px 16px;
  font-size: 0.85rem;
  gap: 6px;
}

/* ── Wheel actions ── */
.wheel-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.wheel-actions .btn { padding: 10px 18px; font-size: 0.88rem; gap: 8px; }

/* ── Info section ── */
.info-section h2 { margin-top: 28px; }

.info-section a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.info-section a:hover { color: var(--green-mid); }

.info-section em { color: var(--text); }

/* List of emotions */
.emotion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 24px;
}

.emotion-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.emotion-group-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emotion-group-title .swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.emotion-group-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.emotion-group-sub .sub-name {
  font-weight: 600;
  color: var(--text);
}

/* ── Print styles ── */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  main { padding: 0; }
  .container { padding: 0; max-width: 100%; }
  .wheel-stage { margin: 0; page-break-inside: avoid; }
  .wheel-svg-wrap { display: block !important; max-width: 100%; }
  .wheel-mobile { display: none !important; }
  .selection-card { display: none; }
  #wheelSvg .slice { stroke: white; }
}
