/* Strategic Thinking Flashcards — minimal, theme-neutral styling. */

.strf-fc {
	max-width: 820px;
	margin: 1.5em auto;
	font-family: inherit;
}

.strf-fc-controls,
.strf-fc-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.strf-fc-select,
.strf-fc-btn {
	font: inherit;
	font-size: 0.95em;
	padding: 6px 10px;
	border: 1px solid #bbb;
	border-radius: 6px;
	background: #fff;
	color: #222;
	cursor: pointer;
}

.strf-fc-btn:hover,
.strf-fc-btn:focus-visible {
	background: #f0f0f0;
	outline: 2px solid #4a6fa5;
	outline-offset: 1px;
}

.strf-fc-counter {
	min-width: 80px;
	text-align: center;
	color: #555;
}

/* Card with 3D flip */
.strf-fc-card {
	position: relative;
	width: 100%;
	min-height: 260px;
	margin: 0 auto 12px;
	perspective: 1200px;
	cursor: pointer;
	outline: none;
}

.strf-fc-card:focus-visible .strf-fc-inner {
	box-shadow: 0 0 0 3px #4a6fa5;
}

.strf-fc-inner {
	position: relative;
	width: 100%;
	min-height: 260px;
	transition: transform 0.4s ease;
	transform-style: preserve-3d;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.strf-fc-card.is-flipped .strf-fc-inner {
	transform: rotateY(180deg);
}

.strf-fc-face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 32px;
	box-sizing: border-box;
	border-radius: 12px;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	text-align: center;
	line-height: 1.45;
}

.strf-fc-front {
	background: #fff;
	color: #222;
	border: 1px solid #ddd;
}

.strf-fc-back {
	background: #1f3a5f;
	color: #fff;
	transform: rotateY(180deg);
}

.strf-fc-text {
	font-size: 1.15em;
}

.strf-fc-meta {
	position: absolute;
	top: 10px;
	left: 0;
	right: 0;
	font-size: 0.75em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.65;
}

.strf-fc-hint,
.strf-fc-empty,
.strf-fc-notice {
	text-align: center;
	font-size: 0.9em;
	color: #666;
}

/* Access/status notices: keep readable regardless of theme text color. */
p.strf-fc-notice {
	color: #333;
	opacity: 1;
	font-size: 1em;
}

p.strf-fc-notice a {
	color: #14606a;
	text-decoration: underline;
	font-weight: 600;
}

p.strf-fc-notice a:hover,
p.strf-fc-notice a:focus {
	color: #0d444b;
}

@media (max-width: 480px) {
	.strf-fc-face { padding: 36px 18px 20px; }
	.strf-fc-text { font-size: 1.05em; }
}

@media (prefers-reduced-motion: reduce) {
	.strf-fc-inner { transition: none; }
}
