/**
 * 毛糸必要量計算ツール - 専用スタイル
 * （共通スタイルは knitting-common.css を参照）
 */

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

.input-section:last-of-type {
	border-bottom: none;
}

.input-header {
	margin-bottom: 14px;
}

.input-label {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: #4A0072;
}

/* ========================================
   パーツ別内訳セクション
   ======================================== */
.detail-section {
	padding: 20px;
	border-top: 1px solid var(--color-border);
}

.parts-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 16px;
}

.parts-table-wrap .data-table {
	min-width: 360px;
}

/* ========================================
   統計情報
   ======================================== */
.stats-section {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1px;
	background: var(--color-border);
	border-top: 1px solid var(--color-border);
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 12px;
	background: var(--color-white);
	text-align: center;
}

.stat-label {
	font-size: 12px;
	color: var(--color-text-secondary);
}

.stat-value {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: #7B1FA2;
	line-height: 1;
}

.stat-unit {
	font-size: 12px;
	color: var(--color-text-muted);
}

/* ========================================
   アクションボタン
   ======================================== */
.action-section {
	padding: 16px 20px;
	border-top: 1px solid var(--color-border);
	display: flex;
	justify-content: center;
	gap: 12px;
}

.btn-secondary {
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #7B1FA2;
	background: var(--color-white);
	border: 1px solid #7B1FA2;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
}

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

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 600px) {
	.input-section {
		padding: 16px;
	}

	.detail-section {
		padding: 16px;
	}

	.action-section {
		padding: 14px 16px;
	}

	.stats-section {
		grid-template-columns: repeat(2, 1fr);
	}
}
