/**
 * SKC Baamboozle
 *
 * @author Anusuk Sangubon https://www.anusuk.me
 * @copyright 2025-2026 SKC (Suankularb Wittayalai Chonburi School)
 * @license https://creativecommons.org/licenses/by/3.0/th/
 *
 * @version v1.3
 *
 */

/* --------------------------------------------------------------------------
   1. Base & Layout
   -------------------------------------------------------------------------- */

/* Main Body Background (Pastel Theme) */
.skc-baamboozle__body {
	background: linear-gradient(135deg, #fbcfe8 0%, #bae6fd 100%); /* Pink-100 to Blue-100 */
	min-height: 100vh;
	font-family: 'Mali', cursive; /* Default font for fun feel */
}

/* Gradient Text for Headings */
.skc-baamboozle__gradient-text {
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	background-image: linear-gradient(to right, #ec4899, #8b5cf6); /* Pink to Purple */
}

/* --------------------------------------------------------------------------
   2. Components: Game Card
   -------------------------------------------------------------------------- */

.skc-baamboozle__card {
	background-color: #ffffff;
	border-radius: 1rem; /* Rounded-2xl equivalent usually, user requested 1.5rem before but Tailwind class is rounded-2xl */
	border: 1px solid rgba(229, 231, 235, 0.5); /* Subtle border */
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.skc-baamboozle__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	border-color: rgba(236, 72, 153, 0.3); /* Pink border on hover */
}

/* Play Button Overlay Animation */
.skc-baamboozle__play-overlay {
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.skc-baamboozle__card:hover .skc-baamboozle__play-overlay {
	opacity: 1;
}

/* Play Button Scale Effect */
.skc-baamboozle__play-btn {
	transform: scale(0.8);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy effect */
}

.skc-baamboozle__card:hover .skc-baamboozle__play-btn {
	transform: scale(1);
	opacity: 1;
}

/* --------------------------------------------------------------------------
   3. Components: Tabs
   -------------------------------------------------------------------------- */

.skc-baamboozle__tab {
	position: relative;
	transition: color 0.2s ease;
}

/* Active State Indicator (Underline) */
.skc-baamboozle__tab--active::after {
	content: '';
	position: absolute;
	bottom: -2px; /* Align with border-b */
	left: 0;
	width: 100%;
	height: 3px;
	border-radius: 3px 3px 0 0;
}

.skc-baamboozle__tab--community.skc-baamboozle__tab--active::after {
	background-color: #ec4899; /* Pink-500 */
}

.skc-baamboozle__tab--my-games.skc-baamboozle__tab--active::after {
	background-color: #3b82f6; /* Blue-500 */
}

/* --------------------------------------------------------------------------
   4. Gameplay Grid (Play Page)
   -------------------------------------------------------------------------- */

/* Game Grid Container */
#game-grid {
	/* Responsive Columns */
	grid-template-columns: repeat(4, 1fr);
	/* Responsive Rows Logic (Overwrite by JS) */
	grid-template-rows: repeat(4, 1fr); 
}

/* Grid Item (Flip Card) */
.skc-baamboozle__grid-item {
	cursor: pointer;
	perspective: 1000px;
}

/* Card Content */
.skc-baamboozle__grid-content {
	background: white;
	color: #ec4899; /* Pink-500 */
	border-radius: 1rem;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	
	/* Typography */
	font-weight: bold;
	font-size: clamp(1.5rem, 4vw, 3rem); /* Responsive Font */
	
	height: 100%;
	width: 100%;
	transition: all 0.3s ease;
}

.skc-baamboozle__grid-content:hover {
	background-color: #fce7f3; /* Pink-100 */
	transform: translateY(-5px);
}

/* Modifier: Opened State */
.skc-baamboozle__grid-content--opened {
	background-color: #e0f2fe; /* Blue-100 */
	color: #9ca3af; /* Gray-400 */
	cursor: default;
	transform: none !important;
}