/**
 * 樹種選びチェッカー - 専用スタイル
 */

/* ========================================
   入力セクション
   ======================================== */
.input-section {
	border-bottom: 1px solid var(--color-border);
}

/* ========================================
   結果カードセクション
   ======================================== */
.species-result-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ========================================
   樹種カード
   ======================================== */
.species-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-white);
	transition: border-color 0.2s;
}

.species-card:first-child {
	border-color: #5D8C3E;
	box-shadow: 0 2px 8px rgba(93, 140, 62, 0.15);
}

.species-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.species-card:first-child .species-card-header {
	background: linear-gradient(135deg, rgba(93, 140, 62, 0.08) 0%, rgba(58, 90, 37, 0.05) 100%);
}

.species-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-white);
	background: #999;
	flex-shrink: 0;
}

.species-card:first-child .species-rank {
	background: linear-gradient(135deg, #5D8C3E 0%, #3A5A25 100%);
}

.species-card:nth-child(2) .species-rank {
	background: #6d9b4e;
}

.species-card:nth-child(3) .species-rank {
	background: #7daa5e;
}

.species-card-title {
	flex: 1;
	min-width: 0;
}

.species-name {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.3;
}

.species-name-sub {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.species-category-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 500;
	border-radius: 10px;
	line-height: 1.4;
}

.species-category-badge--conifer {
	background: #e8f5e9;
	color: #2e7d32;
}

.species-category-badge--deciduous {
	background: #fff3e0;
	color: #e65100;
}

.species-category-badge--flowering {
	background: #fce4ec;
	color: #c62828;
}

.species-category-badge--fruiting {
	background: #fff8e1;
	color: #f57f17;
}

.species-match-score {
	font-size: 13px;
	font-weight: 700;
	color: #3A5A25;
	white-space: nowrap;
}

/* ========================================
   初心者マーク
   ======================================== */
.beginner-mark {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	color: #1565c0;
	background: #e3f2fd;
	border-radius: 10px;
	line-height: 1.4;
}

.beginner-mark-icon {
	font-size: 12px;
}

/* ========================================
   難易度スター
   ======================================== */
.difficulty-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--color-text-secondary);
}

.difficulty-stars-label {
	margin-right: 2px;
}

.star {
	font-size: 14px;
	color: #ddd;
	line-height: 1;
}

.star--filled {
	color: #f9a825;
}

/* ========================================
   カード本文
   ======================================== */
.species-card-body {
	padding: 14px 16px;
}

.species-desc {
	font-size: 14px;
	color: var(--color-text);
	line-height: 1.7;
	margin-bottom: 12px;
}

/* ========================================
   特徴バッジ
   ======================================== */
.species-features {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.feature-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	border-radius: 12px;
	line-height: 1.3;
}

.feature-badge--green {
	background: #e8f5e9;
	color: #2e7d32;
}

.feature-badge--flower {
	background: #fce4ec;
	color: #c62828;
}

.feature-badge--fruit {
	background: #fff8e1;
	color: #f57f17;
}

.feature-badge--autumn {
	background: #fff3e0;
	color: #e65100;
}

.feature-badge--trunk {
	background: #efebe9;
	color: #4e342e;
}

.feature-badge-icon {
	font-size: 13px;
}

/* ========================================
   メリット・デメリット
   ======================================== */
.species-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.species-pros,
.species-cons {
	padding: 10px 12px;
	border-radius: var(--radius);
	font-size: 13px;
	line-height: 1.6;
}

.species-pros {
	background: #f1f8e9;
	border: 1px solid #c5e1a5;
}

.species-cons {
	background: #fff3e0;
	border: 1px solid #ffcc80;
}

.pros-cons-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 4px;
}

.species-pros .pros-cons-label {
	color: #33691e;
}

.species-cons .pros-cons-label {
	color: #e65100;
}

.pros-cons-text {
	color: var(--color-text);
}

/* ========================================
   アクションボタン
   ======================================== */
.action-section {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 12px 20px;
}

.btn-secondary {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #3A5A25;
	background: var(--color-white);
	border: 1px solid #3A5A25;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.btn-secondary:hover {
	background: #f1f8e9;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 600px) {
	.species-pros-cons {
		grid-template-columns: 1fr;
	}

	.species-name {
		font-size: 16px;
	}

	.species-card-header {
		padding: 12px 14px;
	}

	.species-card-body {
		padding: 12px 14px;
	}

	.species-match-score {
		font-size: 12px;
	}
}
