/* ---------- Series grid ---------- */
.wts-series-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 20px 0;
}
.wts-series-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.wts-series-thumb img { width: 100%; border-radius: 6px; margin-bottom: 10px; }
.wts-series-card h3 { margin: 0 0 8px; }
.wts-series-excerpt { color: #555; font-size: 14px; }
.wts-series-meta { font-size: 13px; color: #777; margin-bottom: 10px; }
.wts-badge-free { background: #e6f7ec; color: #1a7f37; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.wts-badge-paid { background: #fff3e0; color: #b26a00; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

/* ---------- Buttons ---------- */
.wts-btn {
	display: inline-block;
	background: #2271b1;
	color: #fff !important;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
}
.wts-btn:hover { background: #135e96; }
.wts-btn-buy { background: #d9534f; }
.wts-btn-buy:hover { background: #b52b27; }
.wts-btn-secondary { background: #6c757d; }
.wts-btn-submit { background: #1a7f37; }
.wts-btn-small { padding: 4px 10px; font-size: 12px; }

/* ---------- Tests table ---------- */
.wts-test-list { width: 100%; border-collapse: collapse; margin: 15px 0; }
.wts-test-list th, .wts-test-list td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }
.wts-locked-notice { background: #fff8e1; border: 1px solid #ffe082; padding: 14px; border-radius: 6px; margin-bottom: 15px; }

/* ---------- Test engine ---------- */
#wts-app { max-width: 800px; margin: 0 auto; }
.wts-screen { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; }
.wts-instructions { background: #f7f7f7; padding: 12px; border-radius: 6px; margin: 15px 0; }

.wts-test-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.wts-timer { font-size: 22px; font-weight: 700; background: #222; color: #fff; padding: 6px 14px; border-radius: 6px; }
.wts-timer-danger { background: #d9534f; }

#wts-question-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.wts-palette-btn {
	width: 34px; height: 34px; border-radius: 4px; border: 1px solid #ccc;
	background: #f5f5f5; cursor: pointer; font-size: 13px;
}
.wts-palette-btn.wts-answered { background: #c8e6c9; border-color: #66bb6a; }
.wts-palette-btn.wts-marked { background: #fff9c4; border-color: #fdd835; }
.wts-palette-btn.wts-current { outline: 2px solid #2271b1; }

.wts-question-text { font-size: 17px; margin-bottom: 15px; line-height: 1.5; }
.wts-options { display: flex; flex-direction: column; gap: 10px; }
.wts-option { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e0e0e0; border-radius: 6px; cursor: pointer; }
.wts-option:hover { background: #f5f8ff; }

.wts-nav-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Result screen ---------- */
.wts-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 12px; margin-top: 15px; }
.wts-result-box { background: #f7f7f7; border-radius: 8px; padding: 16px; text-align: center; }
.wts-result-value { font-size: 24px; font-weight: 700; }
.wts-result-label { font-size: 13px; color: #666; margin-top: 4px; }

/* ---------- Dashboard / leaderboard ---------- */
.wts-owned-series { list-style: disc; padding-left: 20px; }
.wts-leaderboard { width: 100%; border-collapse: collapse; margin: 15px 0; }
.wts-leaderboard th, .wts-leaderboard td { padding: 8px 12px; border-bottom: 1px solid #eee; text-align: left; }
