/* Download.chat — reviews & ratings (modern futuristic forum). */

.dc-reviews { margin-top: 44px; }
.dc-reviews__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* Aggregate badge */
.dc-reviews__agg {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 16px; border-radius: var(--dc-radius-lg);
	background: linear-gradient(160deg, rgba(42,19,100,.4), rgba(18,10,36,.6));
	border: 1px solid var(--dc-border);
}
.dc-reviews__avg { font-size: 1.7rem; font-weight: 800; background: var(--dc-accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.dc-reviews__count { color: var(--dc-muted); font-size: .82rem; }

/* Stars (display) */
.dc-stars { display: inline-flex; gap: 1px; }
.dc-star { color: rgba(184,166,255,.28); font-size: 1rem; line-height: 1; }
.dc-star.is-on { color: #ffcb5c; text-shadow: 0 0 10px rgba(255,203,92,.4); }
.dc-reviews__agg-stars .dc-star { font-size: 1.05rem; }

/* Review list */
.dc-reviews__list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dc-reviews__list .children { list-style: none; margin: 12px 0 0 24px; padding-left: 16px; border-left: 2px solid var(--dc-border); display: flex; flex-direction: column; gap: 12px; }
.dc-reviews__empty { color: var(--dc-muted); background: var(--dc-surface); border: 1px solid var(--dc-border); border-radius: var(--dc-radius); padding: 16px 18px; margin-bottom: 24px; }

.dc-review__inner {
	background: linear-gradient(165deg, rgba(27,16,54,.55), rgba(12,7,26,.6));
	border: 1px solid var(--dc-border); border-radius: var(--dc-radius-lg);
	padding: 16px 18px; transition: border-color .15s ease;
}
.dc-review__inner:hover { border-color: rgba(184,166,255,.3); }
.dc-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dc-review__avatar {
	flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--dc-accent-gradient); color: #0a0616; font-weight: 700;
}
.dc-review__meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.dc-review__author { font-weight: 600; }
.dc-review__date { color: var(--dc-muted); font-size: .76rem; }
.dc-review__rating { flex: 0 0 auto; }
.dc-review__body { color: var(--dc-text); line-height: 1.6; }
.dc-review__body p { margin: 0 0 8px; }
.dc-review__pending { color: #ffcb5c; font-size: .82rem; margin: 0 0 8px; }
.dc-review__reply { margin-top: 8px; }
.dc-review__reply a { color: var(--dc-lavender); font-size: .82rem; }

/* Review form */
.dc-review-form {
	background: linear-gradient(165deg, rgba(42,19,100,.32), rgba(18,10,36,.55));
	border: 1px solid var(--dc-border); border-radius: var(--dc-radius-lg);
	padding: 22px 22px 18px;
	box-shadow: var(--dc-shadow-glow);
}
.dc-review-form .comment-reply-title, #reply-title { font-size: 1.15rem; margin: 0 0 14px; font-weight: 700; }
.dc-review-form__note { color: var(--dc-muted); font-size: .82rem; margin: 0 0 14px; }
.dc-review-form__rating { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dc-review-form__label { color: var(--dc-muted); font-size: .85rem; }

/* Interactive star picker (CSS-only, reversed radios) */
.dc-rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.dc-rate__input { position: absolute; opacity: 0; width: 0; height: 0; }
.dc-rate__star { font-size: 1.7rem; line-height: 1; color: rgba(184,166,255,.28); cursor: pointer; transition: color .12s ease, transform .12s ease; }
.dc-rate__star:hover, .dc-rate__star:hover ~ .dc-rate__star,
.dc-rate__input:checked ~ .dc-rate__star { color: #ffcb5c; }
.dc-rate__star:hover { transform: scale(1.12); }
.dc-rate__input:focus-visible + .dc-rate__star { outline: 2px solid var(--dc-lavender); border-radius: 4px; }

.dc-review-form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.dc-review-form__field label, .comment-form-comment label { color: var(--dc-muted); font-size: .82rem; }
.dc-review-form input[type="text"],
.dc-review-form input[type="email"],
.dc-review-form textarea {
	width: 100%; box-sizing: border-box;
	background: rgba(7,4,15,.6); border: 1px solid var(--dc-border);
	border-radius: var(--dc-radius); color: var(--dc-text); font: inherit;
	padding: 11px 13px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.dc-review-form input:focus, .dc-review-form textarea:focus {
	border-color: var(--dc-lavender); box-shadow: 0 0 0 3px rgba(184,166,255,.14);
}
.dc-review-form__text { resize: vertical; min-height: 90px; margin-bottom: 14px; }
.dc-review-form .comment-form-author, .dc-review-form .comment-form-email { display: inline-flex; flex-direction: column; gap: 6px; }
@media (min-width: 560px) {
	.dc-review-form .comment-form-author, .dc-review-form .comment-form-email { width: calc(50% - 7px); }
	.dc-review-form .comment-form-author { margin-right: 14px; }
}
.dc-review-form__submit { margin-top: 4px; cursor: pointer; border: 0; }

/* Load more */
.dc-reviews__more { text-align: center; margin: 4px 0 26px; }
.dc-reviews__more-btn {
	cursor: pointer;
	background: var(--dc-surface-2);
	color: var(--dc-lavender);
	border: 1px solid rgba(184, 166, 255, 0.35);
	border-radius: var(--dc-radius-pill);
	padding: 10px 24px;
	font-weight: 600;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.dc-reviews__more-btn:hover {
	background: var(--dc-accent-gradient);
	color: #0a0616;
	border-color: transparent;
	transform: translateY(-1px);
	box-shadow: 0 10px 28px -10px rgba(109, 59, 245, 0.6);
}
.dc-reviews__more-btn.is-loading { opacity: .7; pointer-events: none; }
.dc-reviews__more-btn.is-loading::after {
	content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px;
	border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
	vertical-align: -2px; animation: dc-rev-spin .7s linear infinite;
}
@keyframes dc-rev-spin { to { transform: rotate(360deg); } }
