/* Base, theme-independent styles for Gameslingua Core components.
   The gameslingua theme extends/overrides these with the full brand look. */

.glc-categories-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
@media (max-width: 782px) {
	.glc-categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.glc-category-card {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px 12px;
	border-radius: 14px;
	font-weight: 700;
	text-decoration: none;
	background: var(--glc-color-2, #CDC1FF);
	color: #2b2140;
}

.glc-games-grid {
	display: grid;
	grid-template-columns: repeat(var(--glc-columns, 6), 1fr);
	gap: 16px;
	margin: 20px 0;
}
@media (max-width: 1024px) {
	.glc-games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
	.glc-games-grid { grid-template-columns: repeat(2, 1fr); }
}
.glc-game-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--glc-color-3, #FFF6E3);
	border-radius: 12px;
	overflow: hidden;
}
.glc-game-thumb img { width: 100%; height: auto; display: block; }
.glc-game-title { font-size: 14px; padding: 8px 10px; margin: 0; }

.glc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.glc-filters select, .glc-filters input[type="text"] {
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid #ddd;
}
.glc-filters button {
	padding: 8px 16px;
	border-radius: 8px;
	border: none;
	background: var(--glc-color-4, #FFCCEA);
	cursor: pointer;
	font-weight: 600;
}

/* --- Contact form (layout modeled after the reference: Name+Email side by
   side, Subject, Message, pill submit button — restyled with our palette) --- */
.glc-contact-form {
	max-width: 640px;
	margin: 24px 0;
}
.glc-contact-honeypot { position: absolute; left: -9999px; top: -9999px; }
.glc-contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 560px) {
	.glc-contact-row { grid-template-columns: 1fr; }
}
.glc-contact-field { margin-bottom: 18px; }
.glc-contact-field label {
	display: block;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .04em;
	margin-bottom: 6px;
}
.glc-required { opacity: .7; }
.glc-contact-field input,
.glc-contact-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e3dcf7;
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
}
.glc-contact-field textarea { resize: vertical; }
.glc-contact-field input:focus,
.glc-contact-field textarea:focus {
	outline: none;
	border-color: var(--glc-color-2, #CDC1FF);
	box-shadow: 0 0 0 3px rgba(205, 193, 255, .35);
}
.glc-contact-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	border: none;
	border-radius: 999px;
	background: var(--glc-color-4, #FFCCEA);
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}
.glc-contact-submit[disabled] { opacity: .6; cursor: default; }
.glc-contact-status { margin-top: 14px; font-weight: 600; }
.glc-contact-status.is-success { color: #2e7d32; }
.glc-contact-status.is-error { color: #c62828; }

.glc-buy-box { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.glc-buy-button {
	padding: 10px 22px;
	border: none;
	border-radius: 999px;
	background: var(--glc-color-4, #FFCCEA);
	font-weight: 700;
	cursor: pointer;
}
.glc-buy-button[disabled] { opacity: .6; cursor: default; }

.glc-lang-switcher { display: flex; gap: 8px; }
.glc-lang, .glc-lang-disabled { font-size: 20px; text-decoration: none; opacity: .6; }
.glc-lang.is-active { opacity: 1; }

.glc-post-slider { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.glc-post-slider img { width: 300px; max-width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }

.glc-lightbox {
	position: fixed; inset: 0; background: rgba(0,0,0,.8);
	display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.glc-lightbox img { max-width: 800px; max-height: 500px; width: 90%; height: auto; border-radius: 8px; }
.glc-lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 32px; cursor: pointer; }
