/*
Theme Name: Ink2Well Academy
Theme URI: https://ink2well-academy.de
Author: ink2well academy
Author URI: https://ink2well-academy.de
Description: Dark gaming academy WordPress theme for Ink2Well Academy and Lorcana learning experiences.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ink2well-academy-theme
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks
*/

:root {
	--i2w-primary: #ff2d8d;
	--i2w-bg: #0d0d14;
	--i2w-secondary: #1b0b2d;
	--i2w-accent: #00e0d0;
	--i2w-surface: #151521;
	--i2w-surface-2: #201329;
	--i2w-border: rgba(255, 255, 255, 0.12);
	--i2w-text: #ffffff;
	--i2w-muted: rgba(255, 255, 255, 0.72);
	--i2w-max: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--i2w-bg);
	color: var(--i2w-text);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	margin: 0;
}

body.admin-bar .i2w-site-header {
	top: 32px;
}

a {
	color: var(--i2w-accent);
	text-decoration: none;
}

a:hover {
	color: var(--i2w-primary);
}

img {
	height: auto;
	max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--i2w-text);
	font-family: Poppins, Inter, sans-serif;
	font-weight: 800;
	line-height: 1.08;
	margin: 0 0 18px;
}

h1 {
	font-size: clamp(42px, 7vw, 82px);
}

h2 {
	font-size: clamp(30px, 4vw, 48px);
}

h3 {
	font-size: 24px;
}

p {
	color: var(--i2w-muted);
	margin: 0 0 18px;
}

.i2w-container {
	margin: 0 auto;
	max-width: var(--i2w-max);
	padding: 0 22px;
	width: 100%;
}

.i2w-site-header {
	backdrop-filter: blur(18px);
	background: rgba(13, 13, 20, 0.88);
	border-bottom: 1px solid var(--i2w-border);
	position: sticky;
	top: 0;
	z-index: 50;
}

.i2w-header-inner {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: auto 1fr auto;
	min-height: 76px;
}

.i2w-brand {
	align-items: center;
	color: #fff;
	display: inline-flex;
	gap: 10px;
	letter-spacing: 0;
}

.i2w-brand-wordmark {
	display: grid;
	gap: 0;
	line-height: 1;
}

.i2w-brand-ink {
	color: var(--i2w-primary);
	font-family: Pacifico, "Brush Script MT", cursive;
	font-size: 30px;
	font-weight: 400;
	text-shadow: 0 0 20px rgba(255, 45, 141, 0.45);
}

.i2w-brand-academy {
	color: #fff;
	font-family: Poppins, Inter, sans-serif;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.24em;
	margin-left: 5px;
	margin-top: -2px;
}

.i2w-brand img {
	max-height: 46px;
	width: auto;
}

.i2w-nav {
	justify-self: center;
}

.i2w-nav ul {
	align-items: center;
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.i2w-nav a {
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.82);
	display: block;
	font-weight: 700;
	padding: 10px 13px;
}

.i2w-nav a:hover,
.i2w-nav .current-menu-item > a {
	background: rgba(255, 45, 141, 0.12);
	color: #fff;
}

.i2w-header-actions {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: flex-end;
}

.i2w-language-switcher {
	align-items: center;
	color: var(--i2w-muted);
	display: inline-flex;
	font-weight: 900;
	gap: 7px;
	white-space: nowrap;
}

.i2w-language-switcher button {
	background: transparent;
	border: 0;
	color: var(--i2w-muted);
	font: inherit;
	min-height: 0;
	padding: 0;
}

.i2w-language-switcher button.is-active,
.i2w-language-switcher button:hover {
	color: var(--i2w-accent);
}

.i2w-button,
.wp-block-button__link,
button,
input[type="submit"] {
	background: var(--i2w-primary);
	border: 1px solid var(--i2w-primary);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	line-height: 1;
	padding: 13px 18px;
	text-decoration: none;
}

.i2w-button:hover,
.wp-block-button__link:hover {
	background: #ff4ca0;
	color: #fff;
}

.i2w-button--ghost {
	background: transparent;
	border-color: var(--i2w-border);
	color: #fff;
}

.i2w-button--ghost:hover {
	background: rgba(0, 224, 208, 0.12);
	border-color: var(--i2w-accent);
	color: #fff;
}

.i2w-mobile-toggle {
	background: transparent;
	border-color: var(--i2w-border);
	display: none;
	height: 42px;
	padding: 0;
	width: 42px;
}

.i2w-mobile-toggle span {
	background: #fff;
	display: block;
	height: 2px;
	margin: 5px auto;
	width: 18px;
}

.i2w-hero {
	background:
		radial-gradient(circle at 22% 18%, rgba(255, 45, 141, 0.26), transparent 28%),
		radial-gradient(circle at 78% 30%, rgba(0, 224, 208, 0.18), transparent 24%),
		linear-gradient(180deg, #120d1d 0%, var(--i2w-bg) 100%);
	border-bottom: 1px solid var(--i2w-border);
	overflow: hidden;
	padding: 92px 0 70px;
	position: relative;
}

.i2w-hero-grid {
	align-items: center;
	display: grid;
	gap: 44px;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.i2w-hero h1 {
	max-width: 760px;
}

.i2w-hero p {
	font-size: 20px;
	max-width: 540px;
}

.i2w-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.i2w-hero-panel {
	background: rgba(21, 21, 33, 0.82);
	border: 1px solid rgba(255, 45, 141, 0.32);
	border-radius: 8px;
	box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
	padding: 22px;
}

.i2w-stat-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, 1fr);
}

.i2w-stat {
	background: #10101a;
	border: 1px solid var(--i2w-border);
	border-radius: 8px;
	padding: 16px;
}

.i2w-stat strong {
	color: var(--i2w-accent);
	display: block;
	font-family: Poppins, Inter, sans-serif;
	font-size: 28px;
	line-height: 1;
}

.i2w-section {
	padding: 70px 0;
}

.i2w-section--secondary {
	background: var(--i2w-secondary);
}

.i2w-card-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.i2w-card,
.i2w-xp-card,
.i2w-leaderboard-card,
.i2w-dashboard-card {
	background: var(--i2w-surface);
	border: 1px solid var(--i2w-border);
	border-radius: 8px;
	padding: 22px;
}

.i2w-card h3,
.i2w-xp-card h3,
.i2w-leaderboard-card h3,
.i2w-dashboard-card h3 {
	margin-bottom: 10px;
}

.i2w-card-kicker {
	color: var(--i2w-primary);
	font-size: 12px;
	font-weight: 900;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.i2w-xp-card {
	background: linear-gradient(135deg, rgba(255, 45, 141, 0.2), rgba(21, 21, 33, 0.96));
}

.i2w-leaderboard-card {
	background: linear-gradient(135deg, rgba(0, 224, 208, 0.13), rgba(21, 21, 33, 0.96));
}

.i2w-dashboard-card {
	background: #10101a;
}

.i2w-site-main {
	min-height: 56vh;
}

.i2w-content {
	padding: 58px 0;
}

.i2w-entry {
	background: rgba(21, 21, 33, 0.62);
	border: 1px solid var(--i2w-border);
	border-radius: 8px;
	padding: 28px;
}

.i2w-entry + .i2w-entry {
	margin-top: 22px;
}

.i2w-entry-title a {
	color: #fff;
}

.i2w-site-footer {
	background: #09090f;
	border-top: 1px solid var(--i2w-border);
	padding: 34px 0;
}

.i2w-footer-inner {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
}

.i2w-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.i2w-footer-nav a {
	color: var(--i2w-muted);
}

.i2w-wordle,
.i2w-wordle-game {
	background: var(--i2w-bg);
	border: 1px solid rgba(255, 45, 141, 0.32);
	border-radius: 8px;
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
	color: #fff;
}

.i2w-wordle input,
.i2w-wordle-game input {
	background: #10101a;
	border: 1px solid var(--i2w-border);
	border-radius: 8px;
	color: #fff;
}

.i2w-wordle table {
	border-collapse: separate;
	border-spacing: 6px;
	width: 100%;
}

.i2w-wordle th {
	color: var(--i2w-muted);
	font-size: 12px;
	text-transform: uppercase;
}

.i2w-wordle td {
	background: #292934;
	border-radius: 8px;
	color: #fff;
	font-weight: 800;
	padding: 12px;
	text-align: center;
}

.i2w-wordle .i2w-cell--match {
	background: #22c55e;
	color: #06140b;
}

.i2w-wordle .i2w-cell--hint {
	background: #facc15;
	color: #181102;
}

.i2w-wordle .i2w-cell--miss {
	background: #ef4444;
	color: #fff;
}

@media (max-width: 920px) {
	body.admin-bar .i2w-site-header {
		top: 46px;
	}

	.i2w-header-inner {
		grid-template-columns: 1fr auto;
	}

	.i2w-mobile-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
	}

	.i2w-nav,
	.i2w-header-actions {
		display: none;
	}

	.i2w-site-header.is-open .i2w-nav,
	.i2w-site-header.is-open .i2w-header-actions {
		display: flex;
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.i2w-site-header.is-open .i2w-nav ul {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.i2w-site-header.is-open .i2w-header-actions {
		justify-content: stretch;
	}

	.i2w-site-header.is-open .i2w-header-actions .i2w-button {
		width: 100%;
	}

	.i2w-hero-grid,
	.i2w-card-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.i2w-container {
		padding: 0 16px;
	}

	.i2w-hero {
		padding: 62px 0 46px;
	}

	.i2w-stat-grid {
		grid-template-columns: 1fr;
	}

	.i2w-footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}
