/*
Theme Name: Scribble Clash
Description: Schlichtes, dunkles Theme für das Spiel Scribble Clash. Die Startseite zeigt das Spiel (Plugin „Scribble Clash“ nötig).
Version: 1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: scribble-clash
*/

:root {
	--bg: #0c101b;
	--surface: #161c2c;
	--surface-2: #1e263a;
	--line: #2d3753;
	--text: #eef1f8;
	--muted: #8f99b0;
	--accent: #ffb627;
	--pink: #ec4899;
	--blue: #3b82f6;
	--green: #22c55e;
	--radius: 16px;
	--wrap: 1180px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #ffd27a; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(12, 16, 27, 0.88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 19px; }
.menu-toggle { display: none; margin-left: auto; background: var(--surface-2); color: var(--text);
	border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--text); background: var(--surface-2); }

@media (max-width: 760px) {
	.menu-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg);
		border-bottom: 1px solid var(--line); padding: 10px 20px; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; }
}

/* Startseite */
.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; }
.hero p { margin: 12px auto 0; max-width: 640px; color: var(--muted); font-size: 19px; }

.game-frame {
	margin: 28px auto 0;
	padding: 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 182, 39, 0.08);
}
.game-frame iframe { display: block; aspect-ratio: 16 / 9; height: auto !important; }
.game-frame p a { font-weight: 700; }
.notice { padding: 40px 20px; color: var(--muted); }

.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; background: var(--accent); color: #1c1e2a;
	font-weight: 800; text-decoration: none; }
.btn:hover { color: #1c1e2a; filter: brightness(1.08); }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 48px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .dot { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.cta { text-align: center; padding: 8px 0 56px; }
.cta .btn { margin: 6px; }

/* Inhaltsseiten */
.content { padding: 40px 0 64px; }
.content article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.content h1, .content h2 { line-height: 1.2; }
.content .meta { color: var(--muted); font-size: 14px; }
.entry iframe { max-width: 100%; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 22px 20px; }
.site-footer ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

.screen-reader-text { position: absolute; left: -9999px; }

/* Kopfzeile versteckt sich beim Runterscrollen */
.site-header { transition: transform 0.25s ease; }
.site-header.is-hidden { transform: translateY(-100%); }

/* Handy: Startknopf über dem Spiel, dann Vollbild */
.scribble-clash { position: relative; }
.sc-cover {
	position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; border-radius: 12px; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	background: radial-gradient(circle at 50% 40%, rgba(255, 182, 39, 0.22), rgba(12, 16, 27, 0.92) 70%);
	color: var(--text); font: inherit;
}
.sc-cover .sc-play {
	width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; padding-left: 6px;
	background: var(--accent); color: #1c1e2a; font-size: 32px; box-shadow: 0 10px 30px rgba(255, 182, 39, 0.35);
}
.sc-cover strong { font-size: 22px; margin-top: 6px; }
.sc-cover small { color: var(--muted); font-size: 15px; }
.sc-mobile iframe { pointer-events: none; }
.scribble-clash.is-fullscreen { background: #0c101b; }
.scribble-clash.is-fullscreen .sc-cover, .scribble-clash.is-fullscreen p { display: none; }
.scribble-clash.is-fullscreen iframe {
	pointer-events: auto; width: 100vw !important; height: 100vh !important; aspect-ratio: auto; border-radius: 0 !important;
}
@media (max-width: 760px) {
	.hero { padding-top: 28px; }
	.game-frame { padding: 6px; border-radius: 16px; }
	.game-frame iframe { aspect-ratio: 4 / 3; }
}
