/*
Theme Name:        Virtus Live
Description:       Tema minimale a schermo intero per le dirette DR Live: in alto solo il logo, in fondo i dati societari. In homepage acquisto della partita in evidenza e accesso.
Author:            Daniele Raho
Author URI:        https://danieleraho.it
Version:           1.1.0
Requires at least: 6.0
Requires PHP:      7.4
License:           GPL-2.0-or-later
Text Domain:       virtus-live
*/

:root {
	--vl-bg: #07111f;
	--vl-bg-2: #0d1d33;
	--vl-surface: #ffffff;
	--vl-ink: #0f172a;
	--vl-ink-soft: #475569;
	--vl-on-bg: #e2e8f0;
	--vl-on-bg-soft: #94a3b8;
	--vl-radius: 18px;
	--vl-gap: clamp(16px, 2.5vw, 28px);
}

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

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

/* Colore di base: sotto il gradiente, se la pagina è più lunga dello schermo. */
html {
	background: var(--vl-bg-2);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(24, 184, 238, 0.18), transparent 60%),
		radial-gradient(900px 500px at 110% 110%, rgba(24, 184, 238, 0.12), transparent 60%),
		linear-gradient(160deg, var(--vl-bg) 0%, var(--vl-bg-2) 100%);
	color: var(--vl-on-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img,
iframe,
video {
	max-width: 100%;
}

a {
	color: inherit;
}

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

/* ---------- Logo e dati societari ---------- */

.vl-brand {
	flex: 0 0 auto;
	padding: clamp(14px, 2.5vw, 26px) var(--vl-gap) 0;
	text-align: center;
	line-height: 0;
}

.vl-brand img {
	display: inline-block;
	width: auto;
	height: clamp(40px, 5vw, 62px);
}

.vl-footer {
	flex: 0 0 auto;
	padding: 0 var(--vl-gap) clamp(14px, 2.5vw, 22px);
	text-align: center;
	color: var(--vl-on-bg-soft);
	font-size: 0.78rem;
	line-height: 1.5;
}

/* ---------- Guscio a schermo intero ---------- */

.vl-screen {
	flex: 1 0 auto;
	width: 100%;
	padding: var(--vl-gap);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* I figli di flex/grid non devono allargarsi oltre lo schermo per il contenuto del plugin. */
.vl-screen > *,
.vl-home > * {
	min-width: 0;
	max-width: 100%;
}

.vl-panel {
	overflow-wrap: anywhere;
	background: var(--vl-surface);
	color: var(--vl-ink);
	border-radius: var(--vl-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	padding: clamp(18px, 2.6vw, 32px);
	min-width: 0;
}

.vl-panel__title {
	margin: 0 0 14px;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

/* ---------- Homepage: acquisto + accesso ---------- */

.vl-home {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
	gap: var(--vl-gap);
	width: 100%;
	max-width: 1360px;
	align-items: start;
}

/* Chi ha il ticket: il player prende tutta la larghezza, l'accesso va sotto. */
.vl-home--watching {
	grid-template-columns: minmax(0, 1fr);
	max-width: 1480px;
}

.vl-home--watching .vl-panel--account {
	max-width: 720px;
	justify-self: center;
	width: 100%;
}

.vl-home .vl-panel--event {
	padding: 0;
	overflow: hidden;
}

.vl-home .vl-panel--event > .drlive,
.vl-home .vl-panel--event .vl-empty {
	margin: 0;
}

.vl-home .vl-panel--event .drlive-credit {
	margin: 0;
	padding: 10px 18px 14px;
}

.vl-empty {
	padding: clamp(28px, 5vw, 56px);
	text-align: center;
}

.vl-empty h2 {
	margin: 0 0 8px;
	font-size: clamp(1.4rem, 3vw, 2rem);
}

.vl-empty p {
	margin: 0;
	color: var(--vl-ink-soft);
}

/* Il pannello fa già da riquadro: il form di DR Live non ne aggiunge un secondo. */
.vl-panel--account .drlive-auth__card {
	border: 0;
	padding: 0;
	max-width: none;
}

/* ---------- Pagine interne (area riservata, termini, dirette) ---------- */

.vl-page {
	width: 100%;
	max-width: 1100px;
}

.vl-page--narrow {
	max-width: 760px;
}

.vl-page .vl-panel > :first-child {
	margin-top: 0;
}

.vl-back {
	display: inline-block;
	margin: 0 0 14px;
	color: var(--vl-on-bg-soft);
	font-size: 0.9rem;
	text-decoration: none;
}

.vl-back:hover {
	color: var(--vl-on-bg);
}

/* Pagina della singola diretta: il blocco del plugin arriva a filo del pannello. */
.single-drlive_event .vl-panel {
	padding: 0;
	overflow: hidden;
}

.single-drlive_event .vl-panel .drlive-credit {
	margin: 0;
	padding: 10px 18px 14px;
}

@media (max-width: 900px) {
	.vl-screen {
		align-items: flex-start;
	}

	.vl-home {
		grid-template-columns: minmax(0, 1fr);
	}
}
