/* ============================================
   YA-MAN Kaspi Reviews — Frontend Styles
   ============================================ */

.ykr-reviews-block {
	max-width: 800px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Summary Block ---------- */

.ykr-summary {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 28px 32px;
	margin-bottom: 32px;
}

.ykr-summary-header {
	margin-bottom: 20px;
}

.ykr-summary-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff3e6;
	color: #e65100;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	letter-spacing: 0.01em;
}

.ykr-summary-badge svg {
	flex-shrink: 0;
}

.ykr-summary-body {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.ykr-summary-score {
	text-align: center;
	flex-shrink: 0;
	min-width: 120px;
}

.ykr-score-number {
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	color: #1a1a1a;
}

.ykr-score-stars {
	margin: 8px 0 4px;
	font-size: 20px;
}

.ykr-score-count {
	font-size: 14px;
	color: #888;
}

/* Stars */
.ykr-star {
	display: inline;
	line-height: 1;
}

.ykr-star-full {
	color: #FFB400;
}

.ykr-star-half {
	color: #FFB400;
	opacity: 0.55;
}

.ykr-star-empty {
	color: #ddd;
}

/* Bars */
.ykr-summary-bars {
	flex: 1;
}

.ykr-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.ykr-bar-label {
	font-size: 13px;
	color: #666;
	min-width: 36px;
	text-align: right;
	white-space: nowrap;
}

.ykr-bar-track {
	flex: 1;
	height: 8px;
	background: #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}

.ykr-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #FFB400, #FF8F00);
	border-radius: 4px;
	transition: width 0.4s ease;
	min-width: 0;
}

.ykr-bar-count {
	font-size: 13px;
	color: #999;
	min-width: 24px;
}

/* ---------- Reviews List ---------- */

.ykr-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ykr-review-item {
	padding: 24px 0;
	border-bottom: 1px solid #eee;
}

.ykr-review-item:first-child {
	padding-top: 0;
}

.ykr-review-item:last-child {
	border-bottom: none;
}

/* Header */
.ykr-review-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.ykr-review-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #292929;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 600;
	flex-shrink: 0;
}

.ykr-review-meta {
	flex: 1;
}

.ykr-review-author {
	font-weight: 600;
	font-size: 15px;
	color: #1a1a1a;
	line-height: 1.3;
}

.ykr-review-date {
	font-size: 13px;
	color: #999;
	margin-top: 1px;
}

.ykr-review-rating {
	font-size: 16px;
	white-space: nowrap;
}

/* Body */
.ykr-review-body {
	font-size: 15px;
	line-height: 1.65;
	color: #333;
}

/* Photos */
.ykr-review-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.ykr-photo-link {
	display: block;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #eee;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ykr-photo-link:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ykr-photo-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
	.ykr-summary {
		padding: 20px 16px;
	}

	.ykr-summary-body {
		flex-direction: column;
		gap: 20px;
		align-items: stretch;
	}

	.ykr-summary-score {
		display: flex;
		align-items: center;
		gap: 12px;
		text-align: left;
		min-width: auto;
	}

	.ykr-score-number {
		font-size: 36px;
	}

	.ykr-review-header {
		flex-wrap: wrap;
	}

	.ykr-review-rating {
		width: 100%;
		margin-left: 52px;
		margin-top: -4px;
	}

	.ykr-photo-link {
		width: 64px;
		height: 64px;
	}
}
