/* NK Rəylər — hamısı .nk-rey altında, temaya sızmır. */

.nk-rey {
	--nk-rey-star: #f5a623;
	--nk-rey-star-off: #d7d7de;
	--nk-rey-line: #e6e6ee;
	--nk-rey-soft: #f6f6fa;
	--nk-rey-text: #1b1b28;
	--nk-rey-dim: #6a6a7d;
	--nk-rey-accent: #4a2fd0;
	--nk-rey-ok: #157a4a;
	--nk-rey-err: #c0392b;
	--nk-rey-radius: 14px;

	box-sizing: border-box;
	margin: 48px 0 0;
	padding: 0;
	color: var(--nk-rey-text);
	font-size: 16px;
	line-height: 1.6;
	max-width: 100%;
}

.nk-rey *,
.nk-rey *::before,
.nk-rey *::after {
	box-sizing: border-box;
}

.nk-rey-heading {
	margin: 0 0 24px;
	font-size: 1.6rem;
	line-height: 1.25;
	font-weight: 700;
}

/* ---- Xülasə ---- */

.nk-rey-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	padding: 24px;
	margin: 0 0 28px;
	background: var(--nk-rey-soft);
	border-radius: var(--nk-rey-radius);
}

.nk-rey-score {
	text-align: center;
	min-width: 120px;
	flex: 0 0 auto;
}

.nk-rey-score-num {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 6px;
}

.nk-rey-score-count {
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--nk-rey-dim);
}

.nk-rey-bars {
	flex: 1 1 260px;
	min-width: 220px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nk-rey-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
}

.nk-rey-bar-label {
	flex: 0 0 34px;
	color: var(--nk-rey-dim);
}

.nk-rey-bar {
	flex: 1 1 auto;
	height: 8px;
	border-radius: 99px;
	background: #e3e3ec;
	overflow: hidden;
}

.nk-rey-bar-fill {
	display: block;
	height: 100%;
	background: var(--nk-rey-star);
	border-radius: 99px;
}

.nk-rey-bar-num {
	flex: 0 0 28px;
	text-align: right;
	color: var(--nk-rey-dim);
}

/* ---- Ulduzlar ---- */

.nk-rey-stars {
	display: inline-flex;
	gap: 2px;
	line-height: 1;
}

.nk-rey-star {
	color: var(--nk-rey-star-off);
	font-size: 1.1em;
}

.nk-rey-star--on {
	color: var(--nk-rey-star);
}

/* ---- Forma ---- */

.nk-rey-form {
	padding: 24px;
	margin: 0 0 32px;
	border: 1px solid var(--nk-rey-line);
	border-radius: var(--nk-rey-radius);
	background: #fff;
}

.nk-rey-form-title {
	margin: 0 0 14px;
	font-weight: 600;
	font-size: 1.05rem;
}

.nk-rey-pick {
	display: inline-flex;
	gap: 4px;
	margin: 0 0 14px;
}

.nk-rey-pick-item {
	cursor: pointer;
	line-height: 1;
	padding: 2px;
}

.nk-rey-pick-item input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.nk-rey-pick-star {
	display: block;
	font-size: 2rem;
	color: var(--nk-rey-star-off);
	transition: color 0.12s ease, transform 0.12s ease;
}

.nk-rey-pick-item.is-on .nk-rey-pick-star {
	color: var(--nk-rey-star);
}

.nk-rey-pick-item:hover .nk-rey-pick-star {
	transform: scale(1.12);
}

.nk-rey-pick-item input:focus-visible + .nk-rey-pick-star {
	outline: 2px solid var(--nk-rey-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.nk-rey-text {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--nk-rey-line);
	border-radius: 10px;
	font: inherit;
	color: inherit;
	background: #fff;
	resize: vertical;
	min-height: 110px;
}

.nk-rey-text:focus {
	outline: none;
	border-color: var(--nk-rey-accent);
	box-shadow: 0 0 0 3px rgba(74, 47, 208, 0.12);
}

.nk-rey-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
}

.nk-rey-submit {
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 12px 26px;
	border-radius: 99px;
	background: var(--nk-rey-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	transition: opacity 0.15s ease;
}

.nk-rey-submit:hover {
	opacity: 0.9;
}

.nk-rey-submit:disabled {
	opacity: 0.55;
	cursor: default;
}

.nk-rey-msg {
	font-size: 0.9rem;
	color: var(--nk-rey-dim);
}

.nk-rey-msg.is-ok {
	color: var(--nk-rey-ok);
	font-weight: 600;
}

.nk-rey-msg.is-error {
	color: var(--nk-rey-err);
	font-weight: 600;
}

/* ---- Qeyd və boş hal ---- */

.nk-rey-note,
.nk-rey-empty {
	margin: 0 0 28px;
	padding: 16px 18px;
	border-radius: 10px;
	background: var(--nk-rey-soft);
	color: var(--nk-rey-dim);
	font-size: 0.95rem;
}

/* ---- Siyahı ---- */

.nk-rey-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nk-rey-item {
	padding: 20px 22px;
	border: 1px solid var(--nk-rey-line);
	border-radius: var(--nk-rey-radius);
	background: #fff;
}

.nk-rey-item-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.nk-rey-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 40px;
	background: var(--nk-rey-soft);
}

.nk-rey-avatar--letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--nk-rey-accent);
	background: #ece8fd;
	text-transform: uppercase;
}

.nk-rey-name {
	font-weight: 600;
	line-height: 1.3;
}

.nk-rey-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	color: var(--nk-rey-dim);
	margin-top: 2px;
}

.nk-rey-body {
	margin: 0;
	white-space: normal;
	overflow-wrap: break-word;
}

/* ---- Mobil ---- */

@media (max-width: 600px) {
	.nk-rey {
		margin-top: 32px;
	}

	.nk-rey-summary {
		gap: 20px;
		padding: 18px;
	}

	.nk-rey-score {
		min-width: 100%;
	}

	.nk-rey-score-num {
		font-size: 2.4rem;
	}

	.nk-rey-form,
	.nk-rey-item {
		padding: 16px;
	}

	.nk-rey-pick-star {
		font-size: 1.75rem;
	}

	.nk-rey-submit {
		width: 100%;
		text-align: center;
	}
}

/* =========================================================================
 * v1.3 — forma dizaynı
 * ====================================================================== */

.nk-rey-form {
	padding: 28px 30px;
	border: 1px solid #e3e0f7;
	border-radius: 18px;
	background: linear-gradient( 180deg, #f8f7ff 0%, #fff 60% );
	box-shadow: 0 8px 26px rgba( 30, 0, 200, .06 );
}

.nk-rey-form-title {
	margin: 0 0 20px;
	font-weight: 700;
	font-size: 1.18rem;
	letter-spacing: -.01em;
}

.nk-rey-field {
	margin: 0 0 18px;
}

.nk-rey-label {
	display: block;
	margin: 0 0 8px;
	font-weight: 600;
	font-size: .9rem;
	color: #45455c;
}

.nk-rey-input {
	display: block;
	width: 100%;
	max-width: 360px;
	padding: 12px 14px;
	border: 1px solid #d6d3ea;
	border-radius: 11px;
	font: inherit;
	font-size: .97rem;
	background: #fff;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.nk-rey-input:focus,
.nk-rey-text:focus {
	outline: 0;
	border-color: var( --nk-rey-accent, #1E00C8 );
	box-shadow: 0 0 0 3px rgba( 30, 0, 200, .12 );
}

.nk-rey-pick {
	align-items: center;
	gap: 2px;
	margin: 0;
}

.nk-rey-pick-star {
	font-size: 1.85rem;
}

.nk-rey-pick-label {
	margin-left: 10px;
	font-size: .88rem;
	font-weight: 600;
	color: var( --nk-rey-accent, #1E00C8 );
	min-height: 1em;
}

.nk-rey-text {
	margin: 0;
	border-radius: 12px;
	border-color: #d6d3ea;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.nk-rey-hint {
	display: block;
	margin-top: 7px;
	font-size: .8rem;
	color: #8a8aa0;
}

.nk-rey-count {
	float: right;
	font-variant-numeric: tabular-nums;
}

.nk-rey-actions {
	margin-top: 4px;
	gap: 14px;
	flex-wrap: wrap;
}

.nk-rey-submit {
	border-radius: 99px;
	padding: 13px 28px;
	font-weight: 700;
}

/* Botlar üçün gizli tələ — ekran oxuyucudan da gizlənir. */
.nk-rey-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nk-rey-empty {
	padding: 18px 20px;
	border: 1px dashed #ddd9f2;
	border-radius: 14px;
	background: #fbfaff;
	color: #70708a;
	margin: 0;
}

@media ( max-width: 600px ) {
	.nk-rey-form {
		padding: 20px 18px;
	}

	.nk-rey-submit {
		width: 100%;
	}

	.nk-rey-pick-star {
		font-size: 1.65rem;
	}
}

/* Gizli rəylər və «daha çox» düyməsi. */
.nk-rey-item--more {
	display: none;
}

.nk-rey-more {
	display: block;
	width: 100%;
	margin: 4px 0 0;
	padding: 13px 20px;
	border: 1px solid #d9d5f0;
	border-radius: 99px;
	background: #fff;
	color: var( --nk-rey-accent, #1E00C8 );
	font: 700 .93rem/1 inherit;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.nk-rey-more:hover {
	background: #f5f3ff;
	border-color: var( --nk-rey-accent, #1E00C8 );
}

/* Admin üçün silmə linki — yalnız giriş etmiş moderatora görünür. */
.nk-rey-del {
	margin-left: 10px;
	font-size: .78rem;
	font-weight: 600;
	color: #b32d2e;
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

.nk-rey-del:hover {
	color: #8c1f20;
}
