/* HumiBid Scorer — v3.1 Louvre Design System */

.hbid-scorer {
	max-width: 1120px; margin: 0 auto; padding: 2rem 0 4rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	color: #18181b;
}

/* Step panels */
.hbid-scorer-title {
	font-size: 1.6rem; font-weight: 800; margin: 0 0 .4rem; letter-spacing: -.02em;
	text-align: center;
}
.hbid-scorer-sub {
	font-size: .95rem; color: #71717a; line-height: 1.6; text-align: center;
	margin: 0 auto 2.5rem; max-width: 560px;
}

.hbid-scorer-label {
	display: block; font-size: .82rem; font-weight: 600; color: #52525b; margin-bottom: .5rem;
}
.hbid-scorer-textarea {
	width: 100%; padding: 1rem 1.25rem; border: 1px solid #e4e4e7; border-radius: 12px;
	font-size: .95rem; line-height: 1.6; resize: vertical; box-sizing: border-box;
	background: #fff; transition: border-color .15s, box-shadow .15s;
	min-height: 120px;
}
.hbid-scorer-textarea:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.12); }

/* Buttons */
.hbid-scorer-btn {
	display: inline-block; padding: .75rem 1.5rem; border: none; border-radius: 12px;
	font-size: .92rem; font-weight: 700; cursor: pointer; transition: all .15s;
	text-decoration: none; text-align: center; line-height: 1.4;
}
.hbid-scorer-btn-primary {
	background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #fff;
	box-shadow: 0 2px 8px rgba(56,189,248,.25);
}
.hbid-scorer-btn-primary:hover { box-shadow: 0 4px 16px rgba(56,189,248,.35); transform: translateY(-1px); }
.hbid-scorer-btn-primary:disabled { background: #d4d4d8; color: #a1a1aa; box-shadow: none; cursor: not-allowed; transform: none; }
.hbid-scorer-btn-secondary {
	background: #f4f4f5; color: #18181b; border: 1px solid #e4e4e7;
}
.hbid-scorer-btn-secondary:hover { background: #e4e4e7; }

#hbid-btn-start { margin: 2rem 0 0; width: 100%; max-width: 400px; display: block; margin-left: auto; margin-right: auto; }

/* Examples */
.hbid-scorer-examples { text-align: center; margin: 2rem 0 .5rem; }
.hbid-scorer-examples-label { font-size: .8rem; color: #a1a1aa; margin-right: .5rem; }
.hbid-scorer-example-btn {
	font-size: .8rem; padding: 6px 14px; border: 1px solid #e4e4e7; border-radius: 999px;
	background: #fff; color: #52525b; cursor: pointer; transition: all .15s; margin: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.hbid-scorer-example-btn:hover { border-color: #38bdf8; color: #38bdf8; background: rgba(56,189,248,.04); transform: translateY(-1px); }

/* Skeleton loader */
.hbid-scorer-skeleton { max-width: 600px; margin: 1.5rem auto; }
.hbid-scorer-skel-line { height: 14px; background: linear-gradient(90deg, #e4e4e7 25%, #f4f4f5 50%, #e4e4e7 75%); background-size: 200% 100%; animation: hbid-shimmer 1.5s infinite; border-radius: 6px; margin-bottom: 10px; }
.hbid-scorer-skel-line.short { width: 60%; }
.hbid-scorer-skel-line.medium { width: 80%; }
@keyframes hbid-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Questions — Step 2 */
.hbid-scorer-q-heading {
	font-size: 1.1rem; font-weight: 700; color: #18181b; margin: 0 0 1.5rem;
	text-align: center;
}
.hbid-scorer-q {
	margin-bottom: 1rem; padding: 1.25rem 1.5rem;
	background: #fff; border: 1px solid #e4e4e7; border-radius: 14px;
	box-shadow: 0 1px 6px rgba(0,0,0,.03);
	transition: box-shadow .2s;
}
.hbid-scorer-q:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.hbid-scorer-q-label {
	font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	color: #38bdf8; margin-bottom: .35rem;
}
.hbid-scorer-q-text {
	font-size: .95rem; font-weight: 600; color: #18181b; margin-bottom: .85rem;
}
.hbid-scorer-q-options {
	display: flex; gap: .5rem; flex-wrap: wrap;
}
.hbid-scorer-option {
	display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem;
	border: 1px solid #e4e4e7; border-radius: 10px; cursor: pointer;
	transition: all .15s; font-size: .82rem; flex: 1; min-width: 100px; justify-content: center;
}
.hbid-scorer-option:hover { border-color: #38bdf8; background: rgba(56,189,248,.04); }
.hbid-scorer-option input[type="radio"] { accent-color: #38bdf8; }
.hbid-scorer-option:has(input:checked) {
	border-color: #38bdf8; background: rgba(56,189,248,.08); font-weight: 600;
}

#hbid-btn-calc { margin: 1.5rem 0 0; width: 100%; max-width: 400px; display: block; margin-left: auto; margin-right: auto; }

/* Result — Step 3 */
.hbid-scorer-result-header { text-align: center; margin-bottom: 2rem; }
.hbid-scorer-result-title {
	font-size: .82rem; font-weight: 600; color: #a1a1aa; text-transform: uppercase;
	letter-spacing: .06em; margin: 0 0 .5rem;
}
.hbid-scorer-result-score {
	font-size: 5rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: .5rem;
}
.hbid-scorer-result-bar {
	height: 8px; background: #f4f4f5; border-radius: 4px; overflow: hidden;
	max-width: 400px; margin: 0 auto;
}
.hbid-scorer-result-fill { height: 100%; border-radius: 4px; transition: width .8s ease; }

/* Verdict */
.hbid-scorer-verdict { text-align: center; margin-bottom: 2rem; }
.hbid-scorer-verdict-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: .5rem 1.5rem; border-radius: 999px;
	font-size: 1.2rem; font-weight: 800; letter-spacing: .02em; margin-bottom: .5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hbid-scorer-verdict-text {
	font-size: .92rem; color: #52525b; line-height: 1.6; margin: 0; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* Detail cards */
.hbid-scorer-details { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 2rem; }
.hbid-scorer-detail {
	display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem;
	border-radius: 12px; font-size: .88rem; line-height: 1.5; background: #fff;
	border: 1px solid #e4e4e7; box-shadow: 0 1px 4px rgba(0,0,0,.03);
	transition: box-shadow .15s;
}
.hbid-scorer-detail:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.hbid-scorer-detail-icon { font-weight: 700; font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Angle */
.hbid-scorer-angle {
	background: linear-gradient(135deg, rgba(20,184,166,.04), rgba(56,189,248,.04));
	border: 1px solid rgba(20,184,166,.12); border-radius: 14px;
	padding: 1.25rem 1.5rem; margin-bottom: 2rem;
	box-shadow: 0 1px 6px rgba(0,0,0,.02);
}
.hbid-scorer-angle h4 { font-size: .82rem; font-weight: 700; color: #18181b; margin: 0 0 .35rem; }
.hbid-scorer-angle p { font-size: .9rem; color: #52525b; line-height: 1.6; margin: 0; }

/* Dimension breakdown */
.hbid-scorer-dim-breakdown { margin-bottom: 2rem; }
.hbid-scorer-dim {
	display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem;
}
.hbid-scorer-dim-label {
	font-size: .78rem; font-weight: 600; width: 90px; text-align: right; flex-shrink: 0; color: #52525b;
}
.hbid-scorer-dim-bar {
	flex: 1; height: 8px; background: #f4f4f5; border-radius: 4px; overflow: hidden;
}
.hbid-scorer-dim-fill { height: 100%; border-radius: 4px; transition: width .8s ease; }
.hbid-scorer-dim-value { font-size: .78rem; font-weight: 700; width: 32px; text-align: right; }

#hbid-btn-another { width: 100%; max-width: 400px; display: block; margin: 0 auto 1rem; }

/* Trial info */
.hbid-scorer-trial { text-align: center; }
.hbid-scorer-trial p {
	font-size: .85rem; color: #a1a1aa; margin: 0;
}

/* Decision Brief — FPI */
.hbid-scorer-brief { margin: 2rem 0; }
.hbid-scorer-brief-title {
	font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	color: #a1a1aa; margin-bottom: 1rem; text-align: center;
}
.hbid-scorer-brief-fpi { display: grid; grid-template-columns: 1fr 1fr 1fr 100px; gap: 16px; align-items: end; }
.hbid-scorer-brief-fpi-item { text-align: center; background: #fff; border: 1px solid #e4e4e7; border-radius: 12px; padding: 14px 10px; box-shadow: 0 1px 4px rgba(0,0,0,.02); }
.hbid-scorer-brief-fpi-label {
	font-size: .85rem; font-weight: 800; display: block; margin-bottom: 6px;
	color: #38bdf8;
}
.hbid-scorer-brief-fpi-bar { height: 8px; background: #f4f4f5; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.hbid-scorer-brief-fpi-fill { height: 100%; border-radius: 4px; transition: width .8s ease; }
.hbid-scorer-brief-fpi-val { font-size: .7rem; font-weight: 700; }
.hbid-scorer-brief-fpi-total { text-align: center; background: linear-gradient(135deg, rgba(20,184,166,.06), rgba(56,189,248,.04)); border: 1px solid rgba(20,184,166,.12); border-radius: 12px; padding: 14px 8px; }
.hbid-scorer-brief-fpi-total-label { font-size: 1.1rem; font-weight: 800; color: #14b8a6; display: block; }
.hbid-scorer-brief-fpi-total-val { font-size: 1.6rem; font-weight: 900; color: #14b8a6; }

/* Pattern insight */
.hbid-scorer-pattern {
	margin-top: 1.5rem; padding: 1rem 1.25rem; background: #fff;
	border: 1px solid rgba(56,189,248,.12); border-radius: 12px;
	display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,.02);
}
.hbid-scorer-pattern-label { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.hbid-scorer-pattern-body { font-size: .85rem; color: #52525b; line-height: 1.6; }

/* Upgrade CTA */
.hbid-scorer-upgrade {
	text-align: center; padding: 2rem; background: #fff; border: 1px solid #e4e4e7;
	border-radius: 16px; margin-top: 2rem; box-shadow: 0 2px 16px rgba(0,0,0,.04);
}
.hbid-scorer-upgrade h4 {
	font-size: 1.1rem; font-weight: 700; margin: 0 0 .5rem; color: #18181b;
}
.hbid-scorer-upgrade p {
	font-size: .9rem; color: #71717a; line-height: 1.6; margin: 0 0 1.25rem;
}
.hbid-scorer-upgrade .hbid-scorer-btn-primary { background: linear-gradient(135deg, #14b8a6, #0d9488); }

/* Step transitions */
.hbid-scorer-step { animation: hbid-fade-in .35s ease; }
@keyframes hbid-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Share button */
#hbid-btn-share { width: 100%; max-width: 400px; display: block; margin: 0 auto .75rem; background: #fff; color: #38bdf8; border: 1px solid #38bdf8; }
#hbid-btn-share:hover { background: rgba(56,189,248,.04); }

@media (max-width: 768px) {
	.hbid-scorer { padding: 1.5rem 1rem 3rem; }
	.hbid-scorer-title { font-size: 1.3rem; }
	.hbid-scorer-result-score { font-size: 3.5rem; }
	.hbid-scorer-q-options { flex-direction: column; }
	.hbid-scorer-option { justify-content: flex-start; min-width: auto; }
	.hbid-scorer-details { grid-template-columns: 1fr; }
	.hbid-scorer-brief-fpi { grid-template-columns: 1fr 1fr 1fr 70px; gap: 8px; }
	.hbid-scorer-dim-label { width: 65px; font-size: .7rem; }
	.hbid-scorer-dim-value { width: 24px; font-size: .7rem; }
}

@media (max-width: 480px) {
	.hbid-scorer { padding: 1rem .5rem 2rem; }
	.hbid-scorer-title { font-size: 1.2rem; }
	.hbid-scorer-result-score { font-size: 3rem; }
	.hbid-scorer-brief-fpi { grid-template-columns: 1fr 1fr; }
	.hbid-scorer-upgrade { padding: 1.25rem; }
}
