/* BMJ TCG Suite — events, search & kiosk styles. Neutral palette, inherits theme fonts. */

/* ---------- Events ---------- */
.bmjts-events {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.bmjts-event-card {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 20px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.bmjts-event-type {
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .08em;
	color: #b00000;
}
.bmjts-event-title {
	margin: 0;
	font-size: 1.15em;
}
.bmjts-event-title a {
	text-decoration: none;
	color: inherit;
}
.bmjts-event-meta {
	margin: 0;
	color: #555;
	font-size: .92em;
}
.bmjts-btn {
	display: inline-block;
	margin-top: auto;
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	background: #111;
	color: #fff !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.bmjts-btn:hover {
	opacity: .85;
}
.bmjts-btn-disabled {
	background: #999;
	cursor: default;
}
.bmjts-rsvp-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}
.bmjts-rsvp-form input {
	padding: 9px 11px;
	border: 1px solid #ccc;
	border-radius: 6px;
}
.bmjts-rsvp-feedback {
	margin: 4px 0 0;
	font-size: .9em;
}
.bmjts-ok { color: #0a5c28; }
.bmjts-err { color: #8f1f1f; }

/* ---------- Instant search ---------- */
.bmjts-search-input {
	width: 100%;
	padding: 14px 16px;
	font-size: 1.05em;
	border: 2px solid #ccc;
	border-radius: 8px;
	box-sizing: border-box;
}
.bmjts-search-input:focus {
	border-color: #111;
	outline: none;
}
.bmjts-search-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	margin-top: 18px;
}
.bmjts-result {
	display: flex;
	gap: 12px;
	align-items: center;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 10px;
	text-decoration: none;
	color: inherit;
	background: #fff;
}
.bmjts-result:hover {
	border-color: #111;
}
.bmjts-result-out {
	opacity: .55;
}
.bmjts-result-img {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #f2f2f2;
}
.bmjts-result-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bmjts-result-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.bmjts-result-title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.bmjts-result-meta {
	color: #555;
	font-size: .88em;
}
.bmjts-search-empty {
	color: #666;
}

/* ---------- Kiosk mode ---------- */
.bmjts-kiosk {
	min-height: 90vh;
	padding: 4vh 4vw;
	box-sizing: border-box;
}
.bmjts-kiosk-title {
	font-size: 2em;
	margin: 0 0 4px;
}
.bmjts-kiosk-sub {
	color: #555;
	margin: 0 0 18px;
}
.bmjts-kiosk .bmjts-search-input {
	font-size: 1.4em;
	padding: 18px 20px;
}
.bmjts-kiosk .bmjts-result {
	padding: 14px;
}
.bmjts-kiosk .bmjts-result-title {
	font-size: 1.1em;
}

/* ---------- League & tournaments ---------- */
.bmjts-table {
	width: 100%;
	max-width: 780px;
	border-collapse: collapse;
	margin: 12px 0 24px;
}
.bmjts-table th,
.bmjts-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e5e5;
}
.bmjts-table thead th {
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #666;
}
.bmjts-ranking tbody tr:nth-child(1) td { font-weight: 700; }
.bmjts-t-meta { color: #555; }
.bmjts-t-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bmjts-t-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 14px 18px;
	text-decoration: none;
	color: inherit;
}
.bmjts-t-item:hover { border-color: #111; }
.bmjts-t-item span { color: #666; font-size: .9em; }
.bmjts-tournament .bmjts-btn { margin: 6px 0 14px; }

/* ---------- Store credit notice ---------- */
.bmjts-credit-notice .button {
	margin-left: 10px;
}
