/*
Theme Name:        Nexora X10
Theme URI:         https://nexora.kulturaone.com/
Description:       Tema ligero de NEXORA X10 (fase 1): barra superior con acceso y registro, portada con el lanzador a pantalla completa y páginas legales. Requiere el plugin Nexora Core.
Version:           0.1.1
Requires at least: 6.4
Requires PHP:      8.1
Author:            Antonio
License:           Propietaria
Text Domain:       nexora-x10
Update URI:        false
*/

:root {
	--nx-bg: #05060d;
	--nx-surface: #0d1020;
	--nx-text: #e8ecff;
	--nx-muted: #9aa3c7;
	--nx-accent: #00e5ff;
	--nx-accent-2: #b537f2;
	--nx-bar: 52px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	background: var(--nx-bg);
	color: var(--nx-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
}

a {
	color: var(--nx-accent);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--nx-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 8px 12px;
	background: var(--nx-surface);
}

/* Barra superior */
.nx-bar {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: var(--nx-bar);
	padding: 0 16px;
	background: rgba(13, 16, 32, 0.92);
	border-bottom: 1px solid rgba(0, 229, 255, 0.25);
	backdrop-filter: blur(8px);
}

.admin-bar .nx-bar {
	top: 32px;
}

.nx-brand {
	font-weight: 800;
	letter-spacing: 0.18em;
	color: var(--nx-text);
	text-decoration: none;
	text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.nx-account {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.9rem;
}

.nx-account .nx-user {
	color: var(--nx-muted);
}

.nx-btn {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--nx-accent);
	border-radius: 999px;
	color: var(--nx-text);
	text-decoration: none;
}

.nx-btn-primary {
	background: linear-gradient(135deg, var(--nx-accent), var(--nx-accent-2));
	border-color: transparent;
	color: #05060d;
	font-weight: 700;
}

/* Juego a pantalla completa */
.nx-game-wrap {
	height: calc(100vh - var(--nx-bar));
	height: calc(100dvh - var(--nx-bar));
}

.admin-bar .nx-game-wrap {
	height: calc(100vh - var(--nx-bar) - 32px);
	height: calc(100dvh - var(--nx-bar) - 32px);
}

.nx-game-wrap .nexora-juego {
	height: 100%;
}

/* Páginas de contenido */
.nx-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 32px 16px 48px;
}

.nx-content h1 {
	line-height: 1.2;
}

.nx-notice {
	max-width: 640px;
	margin: 48px auto;
	padding: 20px;
	border: 1px solid rgba(255, 200, 0, 0.5);
	border-radius: 12px;
	background: var(--nx-surface);
}

.nx-footer {
	padding: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--nx-muted);
	font-size: 0.85rem;
	text-align: center;
}

.nx-footer a {
	color: var(--nx-muted);
	margin: 0 8px;
}

@media (max-width: 782px) {
	.admin-bar .nx-bar {
		top: 46px;
	}

	.admin-bar .nx-game-wrap {
		height: calc(100dvh - var(--nx-bar) - 46px);
	}
}

@media (max-width: 480px) {
	.nx-account .nx-user {
		display: none;
	}
}
