/**
 * 品評会スコアシミュレーター - 専用スタイル
 * （共通スタイルは koi-common.css を参照）
 */

/* ========================================
   評価カテゴリ
   ======================================== */
.rating-category {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--color-border);
}

.rating-category:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.rating-category-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rating-category-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #C62828 0%, #8E0000 100%);
	flex-shrink: 0;
}

/* ========================================
   評価項目
   ======================================== */
.rating-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rating-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.rating-item-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text);
	flex: 1;
	min-width: 0;
}

/* ========================================
   ラジオボタングループ
   ======================================== */
.rating-radios {
	display: flex;
	gap: 4px;
	flex-shrink: 0;
}

.rating-radio {
	cursor: pointer;
	margin: 0;
}

.rating-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.rating-radio span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-secondary);
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: 50%;
	transition: all 0.2s;
}

.rating-radio input[type="radio"]:checked + span {
	color: #fff;
	background: #C62828;
	border-color: #C62828;
}

.rating-radio:hover span {
	border-color: #C62828;
}

/* ========================================
   スコアバーチャート
   ======================================== */
.score-bars {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.score-bar-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.score-bar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.score-bar-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text);
}

.score-bar-value {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: #C62828;
}

.score-bar-track {
	width: 100%;
	height: 16px;
	background: var(--color-bg);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--color-border);
}

.score-bar-fill {
	height: 100%;
	border-radius: 8px;
	background: linear-gradient(90deg, #C62828 0%, #8E0000 100%);
	transition: width 0.4s ease;
}

/* ========================================
   ランクバッジ追加色
   ======================================== */
.judgment-badge--champion {
	background: linear-gradient(135deg, #FFD700, #FFA000);
	color: #5d4037;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.judgment-badge--top {
	background: #fff;
	color: #C62828;
}

.judgment-badge--selected {
	background: rgba(255, 255, 255, 0.85);
	color: #1565c0;
}

.judgment-badge--more {
	background: rgba(255, 255, 255, 0.7);
	color: var(--color-text-secondary);
}

/* ========================================
   改善アドバイス
   ======================================== */
.advice-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.advice-item {
	padding: 10px 14px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-left: 4px solid #C62828;
	border-radius: var(--radius);
}

.advice-item-title {
	font-size: 13px;
	font-weight: 700;
	color: #C62828;
	margin-bottom: 4px;
}

.advice-item-text {
	font-size: 12px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 600px) {
	.rating-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.rating-radios {
		align-self: flex-end;
	}

	.rating-radio span {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
}
