/* ORIONAS.LT Statistika — naujas web dizainas (TIK įprastai naršyklei, be
   &motd=1). MOTD (žaidimo vidaus) puslapiai šio failo apskritai nekrauna ir
   lieka nepaliesti — jų CSS (top15.css/top15_nonsteam.css/stats*.css/
   polish.css) yra kruopščiai priderintas prie seno CS 1.6 MOTD naršyklės
   komponento (žr. gausius komentarus tuose failuose) ir čia sąmoningai
   nenaudojamas bei nekeičiamas.

   Šis failas — bendras pagrindas (kintamieji, reset'as, tipografija,
   pasikartojantys komponentai), kraunamas kartu su top15_web.css arba
   user_web.css, priklausomai nuo puslapio; index.php jį naudoja pats. */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--bg: #0a0c11;
	--bg-glow: radial-gradient(1200px 600px at 15% -10%, rgba(100,149,237,.16), transparent 60%),
	           radial-gradient(900px 500px at 100% 0%, rgba(139,176,245,.09), transparent 55%);
	--surface: #12141c;
	--surface-2: #181b26;
	--surface-hover: #1f2330;
	--border: rgba(255,255,255,.08);
	--border-strong: rgba(255,255,255,.16);
	--text: #eef0f5;
	--text-dim: #9096a8;
	--text-faint: #5b6072;
	/* Vienas akcentas visame web dizaine - tas pats mėlynas #6495ED, kuris jau
	   naudojamas originaliame ORIONAS.LT dizaine (mygtukai, nuorodos, rėmeliai
	   main.css/polish.css/top15.css) - jokios atskiros "auksinės" spalvos. */
	--accent: #6495ED;
	--accent-2: #8bb0f5;
	--accent-deep: #4a77c9;
	--danger: #e5484d;
	--good: #34c98d;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--shadow: 0 10px 30px rgba(0,0,0,.45);
	--shadow-sm: 0 4px 14px rgba(0,0,0,.3);
	--font-display: "Rajdhani", "Segoe UI", sans-serif;
	--font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html.orx-web, body.orx-web {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}

/* Fotografinis CS fonas (background-top15.jpg) IŠBANDYTAS ir nuimtas -
   nešiltų/oranžinių tonų nuotrauka nesiderino su likusia šalta/mėlyna,
   švaria dizaino kalba nepriklausomai nuo permatomumo. Liko tik švelnus
   mėlynas švytėjimas (tie patys radialiniai gradientai) - vientisa su
   likusiu dizainu. */
body.orx-web {
	background-image:
		radial-gradient(1200px 600px at 15% -10%, rgba(100,149,237,.16), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(139,176,245,.09), transparent 55%);
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	min-height: 100vh;
}

.orx-web a { color: inherit; text-decoration: none; }

/* Scroll juostos tema - BE ".orx-web" apribojimo, kad apimtų ir patį
   puslapio (html/body) vertikalų scroll'ą, ne tik vidinius elementus su
   savo overflow (šis failas ir taip niekada nekraunamas MOTD puslapiuose,
   tad platesnė apimtis čia saugi). Firefox/standartinis + Chrome/Edge. */
html {
	scrollbar-width: thin;
	scrollbar-color: rgba(100,149,237,.5) rgba(255,255,255,.05);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
::-webkit-scrollbar-thumb { background: rgba(100,149,237,.5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100,149,237,.75); }

.orx-web h1, .orx-web h2, .orx-web h3 {
	font-family: var(--font-display);
	letter-spacing: .3px;
	margin: 0;
}

/* ---- Puslapio karkasas ---- */
.orx-shell {
	max-width: 1600px;
	margin: 0 auto;
	padding: 20px 20px 48px;
}

.orx-topbar {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px 20px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, rgba(30,33,45,.9), rgba(18,20,28,.9));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.orx-topbar img.orx-logo {
	width: 34px; height: 34px; display: block;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(100,149,237,.35), 0 0 12px rgba(100,149,237,.45);
}

.orx-topbar h1 {
	position: relative;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	letter-spacing: .8px;
	padding-bottom: 7px;
	text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.orx-topbar h1::after {
	content: "";
	position: absolute;
	left: 2px;
	bottom: 0;
	height: 2px;
	width: 48px;
	background: linear-gradient(90deg, var(--accent), transparent);
	border-radius: 2px;
}

.orx-topbar .orx-spacer { flex: 1 1 auto; }

.orx-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, var(--accent), #4a77c9);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(100,149,237,.25);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.orx-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(100,149,237,.4); }
.orx-btn.orx-btn-ghost {
	background: rgba(255,255,255,.05);
	box-shadow: none;
	border: 1px solid var(--border-strong);
	color: var(--text-dim);
	font-size: 13px;
	padding: 9px 16px;
}
.orx-btn.orx-btn-ghost svg { flex: none; opacity: .8; }
.orx-btn.orx-btn-ghost:hover {
	color: #fff;
	background: rgba(100,149,237,.12);
	border-color: rgba(100,149,237,.4);
}

/* ---- Kortelė (bendra) ---- */
.orx-card {
	background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

/* ---- Paieška ---- */
.orx-search {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface-2);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	padding: 0 8px 0 16px;
	height: 42px;
	overflow: hidden;
}
.orx-search:focus-within { border-color: rgba(100,149,237,.5); }
.orx-search svg { flex: none; opacity: .5; }
.orx-search input {
	flex: 1 1 auto;
	background: transparent;
	border: none;
	outline: none;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 14px;
	height: 100%;
}
.orx-search input::placeholder { color: var(--text-faint); }
/* Naršyklė (Chrome/Edge) autopildymo/pasiūlymų pasirinkimui priverstinai
   uždeda šviesų foną su savo spalvomis - be šito override paieškos
   laukelis "pabąla" pasirinkus seną paieškos pasiūlymą iš naršyklės
   istorijos (nors ranka rašant viskas gerai, nes tada šis stilius
   netaikomas). Kadangi .orx-search fonas dabar tas pats vientisas
   var(--surface-2), o pačiam laukeliui nustatytas overflow:hidden,
   užtenka "užtepti" TA PAČIA spalva - jokio matomo lopo/nesutapimo su
   likusiu paieškos lauku (anksčiau fonas buvo permatomas, o autopildymo
   lopas - vientisas, todėl matydavosi kaip atskira dėžutė). */
.orx-search input:-webkit-autofill,
.orx-search input:-webkit-autofill:hover,
.orx-search input:-webkit-autofill:focus,
.orx-search input:-webkit-autofill:active {
	-webkit-text-fill-color: var(--text);
	caret-color: var(--text);
	transition: background-color 0s 600000s, color 0s 600000s;
	box-shadow: 0 0 0 1000px var(--surface-2) inset;
}
.orx-search button {
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0 18px;
	height: 32px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s ease;
}
.orx-search button:hover { background: var(--accent-2); }

/* ---- Puslapiavimas ---- */
.orx-pagination {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.orx-pagination a, .orx-pagination strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: var(--radius-sm);
	background: rgba(255,255,255,.05);
	border: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 13px;
	font-weight: 600;
	transition: all .15s ease;
}
.orx-pagination a:hover { background: rgba(100,149,237,.16); color: var(--text); border-color: rgba(100,149,237,.4); }
.orx-pagination strong {
	background: linear-gradient(135deg, var(--accent), var(--accent-deep));
	color: #fff;
	border-color: transparent;
}

/* ---- Vėliavos ir mažos ikonos (dalinasi tais pačiais /css/img/countries/*) ---- */
.orx-flag {
	display: inline-block;
	width: 18px;
	height: 12px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	flex: none;
	box-shadow: 0 0 0 1px rgba(255,255,255,.12);
	border-radius: 2px;
}

/* ---- Tuščia būsena / įspėjimai ---- */
.orx-empty {
	text-align: center;
	color: var(--text-faint);
	padding: 60px 20px;
	font-size: 15px;
}

/* ---- Aktyvumo heatmap (7 x 24) - bendras user.php ir index.php ----
   Viena mėlyna skalė: l0 = nežaista, l1..l4 = intensyvumas. */
.orx-heat { min-width: 0; }
.orx-heat .hm-grid {
	display: grid;
	grid-template-columns: 24px repeat(24, minmax(0, 1fr));
	gap: 3px;
	align-items: center;
}
.orx-heat .hm-day { font-size: 11px; font-weight: 600; color: var(--text-faint); }
.orx-heat .hm-hour { font-size: 10px; color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.orx-heat .hm-c { display: block; height: 24px; border-radius: 4px; background: rgba(255,255,255,.045); transition: box-shadow .1s ease; }
.orx-heat .hm-c.l1 { background: rgba(100,149,237,.24); }
.orx-heat .hm-c.l2 { background: rgba(100,149,237,.46); }
.orx-heat .hm-c.l3 { background: rgba(100,149,237,.72); }
.orx-heat .hm-c.l4 { background: #8bb0f5; }
.orx-heat .hm-grid .hm-c:hover, .orx-heat .hm-grid .hm-c.on { box-shadow: 0 0 0 2px #fff; }
.orx-heat .hm-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--text-faint); }
.orx-heat .hm-legend .hm-c { width: 12px; height: 12px; }
.orx-heat .hm-legend span { margin: 0 4px; }
.orx-heat-tip {
	position: absolute;
	z-index: 60;
	pointer-events: none;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(12,14,20,.96);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-sm);
	color: var(--text);
	font: 600 12px var(--font-body);
	white-space: nowrap;
}
.orx-heat-sum { font-size: 13px; color: var(--text-dim); margin: -4px 0 14px; line-height: 1.5; }
.orx-heat-sum b { color: #fff; }

@media (max-width: 720px) {
	.orx-shell { padding: 12px 10px 32px; }
	.orx-heat .hm-grid { gap: 2px; grid-template-columns: 20px repeat(24, minmax(0, 1fr)); }
	.orx-heat .hm-grid .hm-c { height: auto; aspect-ratio: 1; border-radius: 2px; }
	.orx-heat .hm-hour { font-size: 9px; }
	.orx-topbar { padding: 12px 14px; }
	.orx-topbar h1 { font-size: 19px; letter-spacing: .6px; }
}
