/**
 * 病害虫診断チェッカー スタイル
 */

/* ========================================
   ステップフォーム
   ======================================== */
.btn-primary {
	display: inline-block;
	padding: 10px 28px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #5D8C3E 0%, #3A5A25 100%);
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
	opacity: 0.9;
	box-shadow: 0 2px 8px rgba(93, 140, 62, 0.3);
}

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ========================================
   候補カード一覧
   ======================================== */
.candidate-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.candidate-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-white);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.candidate-card:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* カードヘッダー */
.candidate-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.candidate-card__title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.candidate-card__name {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
}

/* タイプバッジ（害虫/病気） */
.type-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 12px;
	flex-shrink: 0;
}

.type-badge--pest {
	background: #efebe9;
	color: #5d4037;
	border: 1px solid #bcaaa4;
}

.type-badge--disease {
	background: #f3e5f5;
	color: #6a1b9a;
	border: 1px solid #ce93d8;
}

/* 緊急度バッジ */
.urgency-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 12px;
	flex-shrink: 0;
}

.urgency-badge--high {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

.urgency-badge--mid {
	background: #fff3e0;
	color: #e65100;
	border: 1px solid #ffcc80;
}

.urgency-badge--low {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

/* カードボディ */
.candidate-card__body {
	padding: 14px 16px;
}

.candidate-card__row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	line-height: 1.6;
}

.candidate-card__row:last-child {
	margin-bottom: 0;
}

.candidate-card__label {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text-secondary);
	min-width: 64px;
	padding-top: 1px;
}

.candidate-card__value {
	flex: 1;
	font-size: 13px;
	color: var(--color-text);
	min-width: 0;
}

/* 対処法・予防セクション */
.candidate-card__section {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--color-border);
}

.candidate-card__section-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 8px;
}

.candidate-card__section-title--treatment {
	color: #c62828;
}

.candidate-card__section-title--prevention {
	color: #2e7d32;
}

.candidate-card__section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 11px;
	flex-shrink: 0;
}

.candidate-card__section-icon--treatment {
	background: #ffebee;
	color: #c62828;
}

.candidate-card__section-icon--prevention {
	background: #e8f5e9;
	color: #2e7d32;
}

.candidate-card__section-text {
	font-size: 13px;
	color: var(--color-text);
	line-height: 1.7;
	padding-left: 26px;
}

/* 候補なしメッセージ */
.no-result-message {
	text-align: center;
	padding: 32px 16px;
	color: var(--color-text-secondary);
	font-size: 14px;
	line-height: 1.8;
}

.no-result-message__icon {
	font-size: 36px;
	margin-bottom: 12px;
}

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

	.candidate-card__title-wrap {
		flex-wrap: wrap;
	}

	.candidate-card__body {
		padding: 12px 14px;
	}

	.candidate-card__row {
		flex-direction: column;
		gap: 2px;
	}

	.candidate-card__label {
		min-width: auto;
	}

	.candidate-card__section-text {
		padding-left: 0;
	}

	.candidate-card__name {
		font-size: 15px;
	}
}
