/* =============================================================================
   HYPE Reviews — scoped to .hype-reviews
   Design tokens: HYPE Design System v3.2.0
   ============================================================================= */

.hype-reviews {
	font-family: 'Inter', -apple-system, sans-serif;
	color: #4a4a5a;
	padding-top: clamp(48px, 5.6vw, 80px);
	padding-bottom: clamp(48px, 5.6vw, 80px);
}

/* ── Rating overview ───────────────────────────────────────────────────────── */

.hr-overview {
	display: flex;
	gap: clamp(24px, 4vw, 48px);
	align-items: flex-start;
	background: #fff;
	border: 1px solid rgba(0,0,0,.06);
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0,0,0,.08);
	padding: clamp(20px, 2.5vw, 32px);
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.hr-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 100px;
}

.hr-score__num {
	font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
	font-size: 54px;
	font-weight: 700;
	line-height: 1;
	background: linear-gradient(135deg, #0B1D2E, #2A8BB5);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hr-score__stars {
	display: flex;
	gap: 3px;
}

.hr-score-star {
	font-size: 20px;
	line-height: 1;
}

.hr-score-star.hr-star--on  { color: #F7941D; }
.hr-score-star.hr-star--off { color: rgba(0,0,0,.15); }

.hr-score__count {
	font-size: 13px;
	color: #6a6a7a;
	text-align: center;
}

/* Histogram */

.hr-histogram {
	flex: 1;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}

.hr-histo-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
	border-radius: 6px;
	padding: 4px 6px;
	margin: -4px -6px;
	border: none;
	background: transparent;
	width: calc(100% + 12px);
	transition: background .18s ease;
	text-align: left;
}

.hr-histo-row:hover {
	background: rgba(59,181,232,.07);
}

.hr-histo-row[aria-pressed="true"] {
	background: rgba(59,181,232,.12);
}

.hr-histo-row[aria-pressed="true"] .hr-histo-fill {
	background: linear-gradient(135deg, #F7941D, #F15A24);
}

.hr-histo-row[aria-pressed="true"] .hr-histo-label,
.hr-histo-row[aria-pressed="true"] .hr-histo-count {
	color: #1A8FBA;
	font-weight: 700;
}

.hr-histo-label {
	width: 14px;
	text-align: right;
	font-weight: 500;
	color: #0B1D2E;
	flex-shrink: 0;
}

.hr-histo-star {
	font-size: 12px;
	color: #F7941D;
	flex-shrink: 0;
}

.hr-histo-track {
	flex: 1;
	height: 8px;
	background: rgba(0,0,0,.06);
	border-radius: 50px;
	overflow: hidden;
}

.hr-histo-fill {
	height: 100%;
	background: linear-gradient(135deg, #3BB5E8, #2A8BB5);
	border-radius: 50px;
	transition: width .5s ease;
}

.hr-histo-count {
	width: 28px;
	text-align: right;
	font-size: 12px;
	color: #6a6a7a;
	flex-shrink: 0;
}

/* ── Sort bar ──────────────────────────────────────────────────────────────── */

.hr-sort {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.hr-sort__label {
	font-size: 14px;
	font-weight: 600;
	color: #0B1D2E;
	white-space: nowrap;
}

.hr-sort__pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.hr-pill {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 16px;
	border-radius: 50px;
	border: 1.5px solid rgba(0,0,0,.12);
	background: transparent;
	font: 500 13px/1 'Inter', sans-serif;
	color: #4a4a5a;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}

.hr-pill:hover {
	border-color: #0B1D2E;
	color: #0B1D2E;
}

.hr-pill--active {
	background: #0B1D2E;
	border-color: #0B1D2E;
	color: #fff;
}

.hr-pill--active:hover {
	background: #122B42;
	border-color: #122B42;
}

/* ── Reviews grid ─────────────────────────────────────────────────────────── */

.hr-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(16px, 2vw, 24px);
	margin-bottom: 24px;
	transition: opacity .25s ease;
}

.hr-grid[data-loading="true"] {
	opacity: .5;
	pointer-events: none;
}

/* ── Review card ───────────────────────────────────────────────────────────── */

.hr-card {
	background: #fff;
	border: 1px solid rgba(0,0,0,.06);
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0,0,0,.08);
	padding: clamp(20px, 2.5vw, 28px);
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow .25s ease, transform .25s ease;
}

.hr-card:hover {
	box-shadow: 0 8px 32px rgba(0,0,0,.10);
	transform: translateY(-2px);
}

/* Card header: stars + date */

.hr-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.hr-card__stars {
	display: flex;
	gap: 2px;
}

.hr-star {
	font-size: 16px;
	line-height: 1;
}

.hr-star.hr-star--on  { color: #F7941D; }
.hr-star.hr-star--off { color: rgba(0,0,0,.15); }

.hr-card__date {
	font-size: 12px;
	color: #6a6a7a;
	white-space: nowrap;
	padding-top: 2px;
}

/* Card meta: avatar + name */

.hr-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hr-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3BB5E8, #2A8BB5);
	display: flex;
	align-items: center;
	justify-content: center;
	font: 700 15px/1 'Inter', sans-serif;
	color: #fff;
	flex-shrink: 0;
}

.hr-reviewer {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hr-reviewer__name {
	font-size: 14px;
	font-weight: 700;
	color: #0B1D2E;
	line-height: 1.2;
}

.hr-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #1a7a42;
	background: #e8f9ef;
	border-radius: 50px;
	padding: 2px 8px;
	width: fit-content;
	line-height: 1.5;
}

/* Card body */

.hr-card__title {
	font-size: 15px;
	font-weight: 700;
	color: #0B1D2E;
	line-height: 1.35;
}

.hr-card__text {
	font-size: 14px;
	color: #4a4a5a;
	line-height: 1.65;
}

.hr-card__text p { margin: 0 0 .5em; }
.hr-card__text p:last-child { margin-bottom: 0; }

/* ── Load more ──────────────────────────────────────────────────────────────── */

.hr-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

.hr-more-wrap[hidden] { display: none; }

.hr-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 32px;
	border-radius: 50px;
	border: 2px solid rgba(0,0,0,.15);
	background: transparent;
	font: 700 15px/1 'Inter', sans-serif;
	color: #0B1D2E;
	cursor: pointer;
	letter-spacing: .3px;
	transition: border-color .2s, background .2s, color .2s;
}

.hr-more-btn:hover {
	border-color: #0B1D2E;
	background: #0B1D2E;
	color: #fff;
}

.hr-more-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.hr-empty {
	color: #6a6a7a;
	font-size: 15px;
	padding: 32px 0;
	text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.hr-grid {
		grid-template-columns: 1fr;
	}

	.hr-overview {
		flex-direction: column;
		gap: 20px;
	}

	.hr-score {
		flex-direction: row;
		align-items: center;
		gap: 16px;
		min-width: unset;
	}

	.hr-score__stars,
	.hr-score__count {
		align-self: center;
	}

	.hr-histogram {
		width: 100%;
		min-width: unset;
	}

	.hr-sort {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.hr-form-row {
		grid-template-columns: 1fr;
	}

	.hr-form-submit {
		width: 100%;
		align-self: stretch;
	}
}

/* ── Review form ───────────────────────────────────────────────────────── */

.hr-form-section {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid rgba(0,0,0,.08);
}

.hr-form-heading {
	font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #0B1D2E;
	margin-bottom: 20px;
	margin-top: 0;
}

.hr-form-authed {
	font-size: 13px;
	color: #6a6a7a;
	margin-bottom: 16px;
}
.hr-form-authed a { color: #1A8FBA; text-decoration: none; }
.hr-form-authed a:hover { text-decoration: underline; }

.hr-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 640px;
}

.hr-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.hr-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hr-form-field label {
	font-size: 14px;
	font-weight: 600;
	color: #0B1D2E;
}

.hr-form-field input[type="text"],
.hr-form-field input[type="email"] {
	height: 48px;
	padding: 0 14px;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 12px;
	font: 400 15px/1 'Inter', sans-serif;
	color: #1a1a2e;
	background: #fff;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	width: 100%;
}

.hr-form-field textarea {
	padding: 12px 14px;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 12px;
	font: 400 15px/1.6 'Inter', sans-serif;
	color: #1a1a2e;
	background: #fff;
	outline: none;
	resize: vertical;
	transition: border-color .2s, box-shadow .2s;
	width: 100%;
}

.hr-form-field input:focus,
.hr-form-field textarea:focus {
	border-color: #3BB5E8;
	box-shadow: 0 0 0 3px rgba(59,181,232,.15);
}

.hr-star-picker {
	display: flex;
	gap: 4px;
}

.hr-star-btn {
	font-size: 30px;
	line-height: 1;
	background: none;
	border: none;
	padding: 2px 1px;
	cursor: pointer;
	color: rgba(0,0,0,.18);
	transition: color .12s, transform .12s;
}

.hr-star-btn:hover,
.hr-star-btn.hr-star-preview {
	color: #F7941D;
	transform: scale(1.18);
}

.hr-star-btn[aria-pressed="true"] {
	color: #F7941D;
}

.hr-req {
	color: #F15A24;
	margin-left: 2px;
}

.hr-form-err {
	font-size: 12px;
	color: #E03030;
}

.hr-form-err[hidden] { display: none; }

.hr-form-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: flex-start !important;
	width: auto !important;
	max-width: none !important;
	height: 52px;
	padding: 0 36px !important;
	border-radius: 50px !important;
	border: none !important;
	background: linear-gradient(135deg, #F7941D, #F15A24) !important;
	font: 700 16px/1 'Plus Jakarta Sans', sans-serif !important;
	color: #fff !important;
	cursor: pointer;
	letter-spacing: .3px;
	transition: opacity .2s, transform .2s, box-shadow .2s;
	box-shadow: 0 4px 16px rgba(247,148,29,.35);
}

.hr-form-submit:hover {
	opacity: .92;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(247,148,29,.45);
}

.hr-form-submit:active {
	transform: translateY(0);
}

.hr-form-notice {
	font-size: 14px;
	color: #4a4a5a;
	background: #f9f3eb;
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 24px;
}
.hr-form-notice a { color: #1A8FBA; }
