/* Wordle Custom Stylesheet - Cyber-Retro Theme */

:root {
	--bg-dark: #0D0221;
	--accent-primary: #9A48D0; 
	--accent-secondary: #E01E84;
	--correct: #22C55E;
	--present: #EAB308;
	--absent: #3F3F46;
	--text-light: #F0F0F0;
	--card-bg: #160D2D;
	--border-neon: #9A48D0;
}

body {
	background-color: var(--bg-dark); 
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--text-light); 
	margin: 0; padding: 0; min-height: 100vh;
	display: flex; flex-direction: column;
}

header {
	background-color: #050110; padding: 10px 0; text-align: center;
	border-bottom: 2px solid var(--accent-primary);
}

h1 { color: var(--accent-secondary); text-shadow: 0 0 10px var(--accent-secondary); margin: 0; }

.container {
	display: flex; max-width: 1200px; margin: 20px auto; padding: 0 20px;
	flex-grow: 1; align-items: flex-start;
}

.sidebar {
	flex: 0 0 250px; margin-right: 30px; background-color: var(--card-bg);
	padding: 15px; border: 1px solid var(--accent-primary);
	border-radius: 8px;
}

.sidebar a { color: var(--text-light); text-decoration: none; display: block; padding: 8px 0; border-bottom: 1px solid #2D1B4D; }
.sidebar a:hover { color: var(--accent-secondary); }

.main-content { flex-grow: 1; display: flex; flex-direction: column; align-items: center; }

/* Wordle Grid */
#game-board {
	display: grid;
	grid-template-rows: repeat(6, 1fr);
	gap: 5px;
	padding: 10px;
	margin-bottom: 20px;
}

.word-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 5px;
}

.letter-tile {
	width: 50px; height: 50px;
	border: 2px solid #3F3F46;
	display: flex; justify-content: center; align-items: center;
	font-size: 2rem; font-weight: bold;
	text-transform: uppercase;
	user-select: none;
	transition: transform 0.2s;
}

/* Keyboard */
#keyboard {
	display: flex; flex-direction: column; gap: 8px; align-items: center;
	width: 100%; max-width: 500px;
}

.kb-row { display: flex; gap: 6px; width: 100%; justify-content: center; }

.key {
	background-color: #52525B; color: white; border: 0; border-radius: 4px;
	padding: 15px 10px; cursor: pointer; font-weight: bold; text-transform: uppercase;
	flex: 1; transition: background-color 0.1s;
}

.key.wide { flex: 1.5; }

/* Tile States */
.tile-correct { background-color: var(--correct) !important; border-color: var(--correct) !important; }
.tile-present { background-color: var(--present) !important; border-color: var(--present) !important; }
.tile-absent { background-color: var(--absent) !important; border-color: var(--absent) !important; }

/* Animations */
.flip { transform: rotateX(90deg); }
.pop { transform: scale(1.1); }

@media (max-width: 768px) {
	.container { flex-direction: column; align-items: center; }
	.sidebar { width: 100%; margin-right: 0; margin-bottom: 20px; }
}