/* ============================================================
   Champ-Select Cheat Sheet (feature_cheatsheet.py — workstream W2)
   The dense "30-second" card at the top of every matchup page.
   All classes prefixed fc-. Uses design tokens from css/main.css.
   ============================================================ */

.fc-card {
	position: relative;
	background: var(--color-surface-1);
	border: 1px solid var(--color-gold-700);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
	margin-bottom: var(--space-6);
	box-shadow: var(--shadow-2);
	overflow: hidden;
}

/* Gold accent strip across the top of the card */
.fc-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--color-gold), var(--color-gold-200), var(--color-gold));
}

.fc-title {
	font-family: var(--font-display);
	color: var(--color-gold-200);
	font-size: var(--font-size-xl);
	font-weight: 700;
	line-height: var(--line-tight);
	margin: 0 0 var(--space-4) 0;
}

.fc-title-glyph {
	color: var(--color-gold);
	font-size: 0.7em;
	margin-right: var(--space-2);
	vertical-align: 0.15em;
}

.fc-title-vs {
	color: var(--color-gold);
	font-weight: 600;
}

/* --- Cell grid ------------------------------------------------ */

.fc-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: var(--space-3);
}

.fc-cell {
	background: var(--color-surface-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-3);
	min-width: 0;
}

/* Wide cells: runes + core build span half a row; trade takes a full row */
.fc-cell--runes,
.fc-cell--core {
	grid-column: span 2;
}

.fc-cell--trade {
	grid-column: 1 / -1;
	border-left: 3px solid var(--color-hextech);
}

.fc-cell--core {
	border-left: 3px solid var(--color-gold);
}

.fc-cell--danger {
	border-left: 3px solid var(--color-danger);
}

/* --- Cell anatomy --------------------------------------------- */

.fc-label {
	font-size: var(--font-size-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-gold);
	margin-bottom: var(--space-1);
}

.fc-value {
	font-size: var(--font-size-sm);
	color: var(--color-text);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

/* Cells carrying a tooltip (danger description, first-back timing) */
.fc-value[title] {
	cursor: help;
	text-decoration: underline dotted var(--color-gold-700);
	text-underline-offset: 3px;
}

.fc-note {
	margin-top: var(--space-1);
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	line-height: 1.4;
}

/* Keystone rune leads the runes cell, bold and slightly larger */
.fc-keystone {
	font-size: var(--font-size-md);
	font-weight: 700;
	color: var(--color-gold-200);
}

.fc-runes-rest {
	color: var(--color-text);
}

/* Item names inside core build / first back (plain-text fallback
   when feature_icons.item_chip is unavailable) */
.fc-item {
	color: var(--color-gold-200);
	font-weight: 500;
}

.fc-arrow {
	color: var(--color-gold);
	font-weight: 700;
	margin: 0 var(--space-1);
}

/* Keep sibling-rendered item chips aligned with surrounding text */
.fc-value img {
	vertical-align: middle;
}

.fc-cell--danger .fc-value {
	font-weight: 600;
}

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

@media (max-width: 768px) {
	.fc-card {
		padding: var(--space-4);
	}

	.fc-title {
		font-size: var(--font-size-lg);
	}

	.fc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* runes/core keep span 2 = full row on the 2-col grid */
}

@media (max-width: 480px) {
	.fc-card {
		padding: var(--space-3);
	}

	.fc-grid {
		grid-template-columns: 1fr;
	}

	.fc-cell--runes,
	.fc-cell--core,
	.fc-cell--trade {
		grid-column: auto;
	}
}
