/* ==========================================================
   viperia - szablon MyAAC "Diabelski": czerń + czerwień + żar
   ========================================================== */

:root {
	--bg: #0b0304;
	--panel: #1a0808;
	--panel-header: #4a0f0d;
	--border: #5c1c1a;
	--border-light: #8f2a22;
	--ember: #ff7a2f;
	--gold: #ffc857;
	--gold-light: #ffe2a8;
	--text: #e8d4cf;
	--text-dim: #a58a84;
	--link: #ff9d4d;
	--link-hover: #ffd9a8;
	--green: #4caf50;
	--red: #e0392a;
	--shadow: rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: radial-gradient(ellipse at top, #3a0c0a 0%, #150506 45%, var(--bg) 100%) fixed;
	color: var(--text);
	font-family: 'Segoe UI', Verdana, Arial, sans-serif;
	line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

.vp-wrapper { max-width: 1300px; margin: 0 auto; min-height: 100vh; }

/* ---------- HEADER ---------- */
.vp-header {
	position: relative;
	overflow: hidden;
	background: #1a0507;
	border-bottom: 2px solid var(--border-light);
	box-shadow: 0 4px 18px rgba(255, 60, 20, 0.18);
}
/* demon w tle nagłówka (images/devil.jpg) */
.vp-header::before {
	content: "";
	position: absolute; inset: 0;
	background: url("../images/devil.jpg") no-repeat center 8% / cover;
	filter: brightness(1.55) contrast(1.15) saturate(1.25);
	z-index: 0;
}
.vp-header::after {
	content: "";
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(11,3,4,0.8) 0%, rgba(11,3,4,0.35) 20%, rgba(11,3,4,0) 36%, rgba(11,3,4,0) 80%, rgba(11,3,4,0.35) 100%),
		linear-gradient(180deg, rgba(11,3,4,0) 82%, rgba(11,3,4,0.85) 100%);
	z-index: 1;
	pointer-events: none;
}
.vp-header-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	min-height: 330px;
	padding: 26px 24px 14px;
}
.vp-logo-link { display: block; }
.vp-logo-link:hover { text-decoration: none; }
.vp-logo-img { display: block; width: 380px; max-width: 100%; height: auto; }
.vp-tagline {
	display: block;
	margin: 2px 0 0 12px;
	font-size: 13px;
	color: var(--gold-light);
	letter-spacing: 0.5px;
	text-shadow: 0 1px 3px #000;
}

.vp-status-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(20, 5, 5, 0.85);
	border: 1px solid var(--border-light);
	border-radius: 6px;
	padding: 10px 18px;
	box-shadow: 0 2px 10px var(--shadow);
}
.vp-status-dot {
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 8px var(--green);
}
.vp-offline .vp-status-dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.vp-status-text { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.vp-status-text strong { color: var(--gold-light); letter-spacing: 1px; font-size: 13px; }
.vp-offline .vp-status-text strong { color: #ff8a7a; }

/* ---------- NAV ---------- */
.vp-nav { position: relative; z-index: 2; padding: 6px 24px 16px; }
.vp-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap;
	background: linear-gradient(180deg, #4a0f0d 0%, #1c0606 100%);
	border: 1px solid var(--border-light);
	border-bottom: 2px solid var(--ember);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 14px rgba(0,0,0,0.6), 0 0 14px rgba(255,90,30,0.15);
}
.vp-nav li { flex: 1; }
.vp-nav a {
	display: block; text-align: center;
	padding: 13px 10px;
	color: var(--text);
	font-size: 14px; font-weight: 700;
	letter-spacing: 0.6px; text-transform: uppercase;
	border-right: 1px solid rgba(143,42,34,0.6);
}
.vp-nav li:last-child a { border-right: none; }
.vp-nav a:hover {
	background: linear-gradient(180deg, #a3261a, #5c120d);
	color: #fff; text-decoration: none;
	text-shadow: 0 0 8px rgba(255,160,60,0.9);
}
.vp-nav .vp-nav-hot a { color: var(--gold); text-shadow: 0 0 8px rgba(255,140,40,0.7); }

/* ---------- KOLUMNY ---------- */
.vp-body { display: flex; gap: 18px; padding: 8px 24px 28px; align-items: flex-start; }
.vp-col-left, .vp-col-right { flex: 0 0 250px; }
.vp-col-center { flex: 1; min-width: 0; }

.vp-box {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 16px;
	box-shadow: 0 2px 10px var(--shadow);
	overflow: hidden;
}
.vp-box h3 {
	margin: 0;
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px;
	background: linear-gradient(180deg, #6b1512 0%, #34090a 100%);
	border-bottom: 2px solid var(--ember);
	color: var(--gold-light);
	font-size: 14px; text-transform: uppercase; letter-spacing: 0.6px;
	text-shadow: 0 1px 3px #000;
}
.vp-box h3 img { width: 18px; height: 18px; }
.vp-box-body { padding: 14px; }

/* logowanie */
.vp-login-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.vp-login-form input[type="text"],
.vp-login-form input[type="password"],
.vp-search-form input[type="text"],
.vp-content-box input[type="text"],
.vp-content-box input[type="password"],
.vp-content-box select,
.vp-content-box textarea {
	background: #0a0304;
	border: 1px solid #6b2320;
	color: var(--text);
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 13px;
}
.vp-login-form input:focus, .vp-search-form input:focus,
.vp-content-box input:focus, .vp-content-box select:focus, .vp-content-box textarea:focus {
	outline: none; border-color: var(--ember); box-shadow: 0 0 6px rgba(255,122,47,0.5);
}
.vp-remember { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.vp-welcome { text-align: center; padding: 14px 14px 0; font-size: 14px; }
.vp-or { text-align: center; font-size: 11px; color: var(--text-dim); margin: 6px 0; }

.vp-btn, .vp-content-box button, .vp-content-box input[type="submit"] {
	display: inline-block;
	background: linear-gradient(180deg, #c0392b 0%, #7a1a12 100%);
	border: 1px solid #ff7a2f;
	color: #fff3e0;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 13px; font-weight: 700;
	text-align: center; cursor: pointer;
	text-shadow: 0 1px 2px #000;
	box-shadow: 0 0 8px rgba(255,90,30,0.25);
}
.vp-btn:hover, .vp-content-box button:hover, .vp-content-box input[type="submit"]:hover {
	background: linear-gradient(180deg, #e0492a 0%, #9a2014 100%);
	color: #fff; text-decoration: none;
	box-shadow: 0 0 14px rgba(255,120,40,0.6);
}
.vp-btn-full { width: 100%; }
.vp-btn-outline { background: transparent; box-shadow: none; color: var(--gold-light); }
.vp-btn-danger { background: linear-gradient(180deg, #3a0d0d 0%, #170404 100%); border-color: #8f2a22; }
.vp-btn-row { display: flex; gap: 8px; padding: 10px 14px 14px; }
.vp-btn-row .vp-btn { flex: 1; }

/* info o serwerze - punktor to kula ognia */
.vp-info-list { list-style: none; margin: 0; padding: 6px 14px 14px; font-size: 13px; }
.vp-info-list li {
	display: flex; gap: 6px; padding: 5px 0 5px 20px;
	border-bottom: 1px dashed rgba(143,42,34,0.45);
	background: url("../images/fireball.svg") no-repeat 0 7px / 14px 14px;
}
.vp-info-list li span { color: var(--text-dim); }

/* treść */
.vp-content-box {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 22px 26px;
	box-shadow: 0 2px 10px var(--shadow);
	min-height: 300px;
}
.vp-content-title {
	margin: 0 0 16px;
	padding: 0 0 10px 34px;
	border-bottom: 2px solid var(--border-light);
	color: var(--gold-light);
	font-family: Georgia, serif;
	letter-spacing: 1px;
	text-shadow: 0 0 10px rgba(255,90,30,0.35);
	background: url("../images/fireball.svg") no-repeat 0 -2px / 28px 28px;
}
.vp-content-box h2, .vp-content-box h3 { color: var(--gold); }
.vp-content-box table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.vp-content-box table th { background: #4a0f0d; color: var(--gold-light); padding: 8px 10px; border: 1px solid var(--border); text-align: left; }
.vp-content-box table td { padding: 7px 10px; border: 1px solid rgba(92,28,26,0.7); }
.vp-content-box table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.vp-search-form { padding: 14px; display: flex; flex-direction: column; gap: 8px; }

.vp-highscore-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vp-highscore-table td { padding: 6px 14px; border-bottom: 1px dashed rgba(143,42,34,0.45); }
.vp-highscore-table tr:first-child td { padding-top: 12px; }
.vp-highscore-table tr:first-child td:nth-child(2) a { color: var(--gold); font-weight: bold; }
.vp-see-more { display: block; text-align: center; font-size: 12px; padding: 10px; border-top: 1px solid var(--border); }

.vp-footer {
	text-align: center; padding: 22px 16px 16px;
	font-size: 12px; color: var(--text-dim);
	background: url("../images/divider.svg") no-repeat center top / 300px 20px;
}

/* responsywność */
@media (max-width: 900px) {
	.vp-body { flex-direction: column; }
	.vp-col-left, .vp-col-right, .vp-col-center { flex: 1 1 auto; width: 100%; }
	.vp-nav a { font-size: 12px; padding: 10px 6px; }
}
