/*
 * Vice City Roleplay website, on top of the forum's theme.
 *
 * The page chrome, colours, type, panels, list rows, tables, inputs and buttons all come from the
 * forum's own stylesheets in ../forum-theme/ (phpBB prosilver + damaio + our "vicecity" child
 * style), loaded before this file. This file only lays out the website's own content with the
 * forum's variables (--color-1, --main-color1, --vc-pink, --vc-radius, ...), so a change to the
 * forum's palette carries over when forum-theme/ is refreshed. The site is dark only (data-theme="dark" on <html>, the
 * forum's night theme); do not hard-code page colours here.
 */

/* ---------- Shared chrome ---------- */
.nav-main a[aria-current="page"] {
	color: var(--vc-pink);
	font-weight: 600;
}

.vc-header-address {
	float: right;
	margin: 38px 10px 0 0;
}

.headerbar .vc-header-address .button {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
	color: #ffffff;
	padding: 6px 12px;
}

.headerbar .vc-header-address .button .icon {
	color: #ffffff;
}

.headerbar .vc-header-address .button:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: var(--vc-teal);
}

.scrolltop {
	display: none;
}

.vc-site .page-body h2.forum-title {
	margin-top: 0;
}

.vc-page-lead {
	max-width: 820px;
	margin: 4px 0 8px;
	font-size: 1.1em;
}

.vc-page-status {
	margin: 0 0 16px;
	color: var(--text-color-2);
	font-size: 0.95em;
}

.vc-kicker {
	margin: 0;
	color: var(--vc-pink);
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.vc-site .panel {
	border: 1px solid var(--border-color-1);
	margin-bottom: 12px;
	padding: 12px 16px;
}

.vc-site .panel h3 {
	margin-top: 0;
}

.empty-state {
	padding: 14px 16px;
	border: 1px dashed var(--border-color-2);
	border-radius: var(--vc-radius);
	color: var(--text-color-2);
}

/* ---------- List blocks: the forum's category bar and card rows, without the count columns ---------- */
.vc-list ul.topiclist dl.row-item dt {
	float: none;
	position: relative;
	width: auto;
	margin-right: 0;
}

.vc-list ul.topiclist li.header dl.row-item dt .list-inner,
.vc-list ul.topiclist li.row dl.row-item dt .list-inner {
	margin-right: 0;
}

.vc-list ul.topiclist li.row dl.row-item dt .list-inner {
	padding: 4px 14px 4px 58px;
}

.vc-list .forumtitle {
	color: var(--text-color-1);
	font-size: 1.15em;
	font-weight: 600;
}

.vc-row-icon {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 34px;
	transform: translateY(-50%);
	color: var(--main-color1);
	font-size: 22px;
	text-align: center;
}

html[data-theme="dark"] .vc-row-icon {
	color: var(--vc-pink);
}

.vc-row-number,
html[data-theme="dark"] .vc-row-number {
	height: 34px;
	border-radius: 50%;
	background: var(--main-color1);
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 34px;
}

html[data-theme="dark"] .vc-row-number {
	background: var(--vc-pink);
	color: #0c0b12;
}

.vc-row-actions {
	margin-top: 8px;
}

.launcher-release {
	margin-left: 8px;
	color: var(--text-color-2);
	font-size: 0.92em;
}

/* ---------- Home: banner ---------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 340px;
	margin-bottom: 14px;
	overflow: hidden;
	border: 1px solid var(--border-color-1);
	border-radius: var(--vc-radius);
	background: #1d1530;
}

.hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.6s ease;
}

.hero-image.is-active {
	opacity: 1;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(26, 21, 39, 0.94) 0%, rgba(26, 21, 39, 0.74) 42%, rgba(26, 21, 39, 0.12) 100%);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 560px;
	padding: 34px 38px;
	color: #f3f1fa;
}

.hero-kicker {
	margin: 0 0 10px;
	color: #00e5ff;
	font-size: 0.9em;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.vc-site .hero h2 {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: 2.9em;
	font-weight: 600;
	line-height: 1.1;
}

.hero h2 span {
	color: #ff2d95;
}

.hero-description {
	margin: 0 0 18px;
	font-size: 1.15em;
	line-height: 1.6;
}

.hero-actions a {
	margin-right: 6px;
	padding: 8px 16px;
	font-size: 1.1em;
}

.hero-actions a.button2 {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff;
}

.hero-actions a.button2:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: #00e5ff;
	color: #ffffff;
}

.hero-note {
	margin: 16px 0 0;
	color: #c8c4d6;
	font-size: 0.92em;
}

.hero-pause {
	position: absolute;
	right: 12px;
	bottom: 10px;
	z-index: 1;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--vc-radius-sm);
	background: rgba(26, 21, 39, 0.6);
	color: #ffffff;
	font: inherit;
	font-size: 0.9em;
	cursor: pointer;
}

.hero-pause:hover {
	border-color: #00e5ff;
}

/* ---------- Home: facts, address, FAQ, closing ---------- */
.vc-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 22px;
}

.vc-site .vc-facts .panel {
	margin: 0;
	border-left: 3px solid var(--vc-pink);
}

.vc-facts strong {
	display: block;
	color: var(--text-color-1);
	font-size: 1.4em;
	font-weight: 600;
}

.server-address {
	margin-bottom: 22px !important;
}

.server-address .inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.server-address .inner > div:first-child {
	font-size: 1.15em;
}

.server-address .inner > div:first-child a {
	color: var(--vc-pink);
	font-weight: 600;
}

.server-address button {
	cursor: pointer;
}

.copy-status {
	color: var(--text-color-2);
}

.faq-list details {
	padding: 10px 16px;
}

.faq-list summary {
	color: var(--text-color-1);
	font-size: 1.1em;
	font-weight: 600;
	cursor: pointer;
}

.faq-list details p {
	margin: 8px 0 0;
}

.launcher-hash {
	display: block;
	margin-top: 4px;
	overflow-wrap: anywhere;
}

.vc-closing {
	text-align: center;
}

.vc-site .vc-closing h3 {
	border: 0;
	font-size: 1.5em;
}

/* ---------- Highscores ---------- */
.rankings-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.rankings-navigation > div {
	margin-bottom: 16px;
}

/* Group heading: the forum's category bar */
.vc-site .rankings-navigation h2,
.store-heading {
	margin: 0 0 8px;
	padding: 12px 12px 11px;
	border-left: 3px solid var(--vc-pink);
	border-radius: var(--vc-radius);
	background: var(--main-color1);
	color: #f3f1fa;
	font-family: inherit;
	font-size: 0.9em;
	font-weight: 600;
	letter-spacing: 0.6px;
	line-height: 1.4;
	text-transform: uppercase;
}

.rankings-navigation a {
	display: block;
	margin-bottom: 4px;
	padding: 7px 12px;
	border: 1px solid var(--border-color-1);
	border-radius: var(--vc-radius-sm);
	background: var(--color-1);
	color: var(--text-color-1);
	text-decoration: none;
}

.rankings-navigation a:hover {
	border-color: var(--border-color-2);
	color: var(--vc-teal);
	text-decoration: none;
}

.rankings-navigation a[aria-current="page"] {
	border-left: 3px solid var(--vc-pink);
	background: var(--color-2);
	font-weight: 600;
}

.panel-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.vc-site .panel-heading h3 {
	margin: 2px 0 6px;
	border: 0;
	font-size: 1.5em;
}

.rankings-refresh {
	cursor: pointer;
}

.rankings-refresh:disabled {
	opacity: 0.55;
	cursor: default;
}

.ranking-toolbar {
	margin-top: 10px;
}

.ranking-toolbar .inputbox,
.store-toolbar .inputbox {
	width: 240px;
	max-width: 100%;
}

#ranking-count,
#store-count {
	margin-left: 8px;
	color: var(--text-color-2);
}

.forumbg-table {
	margin-bottom: 12px;
}

.data-table-wrap {
	overflow-x: auto;
}

table.data-table {
	width: 100%;
}

table.data-table caption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

table.data-table th.numeric,
table.data-table td.numeric {
	text-align: right;
}

table.data-table td {
	vertical-align: middle;
}

table.data-table td.rank-position {
	width: 56px;
	color: var(--vc-pink);
	font-weight: 600;
}

.ranking-skin {
	width: 30px;
	height: 30px;
	margin-right: 8px;
	border-radius: 50%;
	object-fit: cover;
	vertical-align: middle;
}

/* ---------- Donate ---------- */
.donation-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 18px;
	align-items: start;
}

.donation-guide {
	position: sticky;
	top: 58px;
}

.donation-guide ol {
	margin: 0 0 12px 18px;
}

.donation-guide li {
	margin-bottom: 8px;
}

.donation-guide li p {
	margin: 2px 0 0;
}

.donation-terms {
	color: var(--text-color-2);
	font-size: 0.92em;
}

.store-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
}

.store-categories a {
	padding: 5px 12px;
	border: 1px solid var(--border-color-1);
	border-radius: var(--vc-radius-sm);
	background: var(--color-1);
	color: var(--text-color-1);
	text-decoration: none;
}

.store-categories a:hover {
	border-color: var(--vc-teal);
	color: var(--vc-teal);
	text-decoration: none;
}

.store-categories a[aria-current="true"] {
	border-color: var(--main-color1);
	background: var(--main-color1);
	color: #ffffff;
}

.store-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.vc-site .store-heading h2 {
	margin: 0;
	padding: 0;
	border: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

.store-heading > span {
	font-weight: 400;
	white-space: nowrap;
}

.store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 8px;
	margin-bottom: 22px;
}

.store-item {
	display: flex;
	flex-direction: column;
	padding: 14px 16px;
	border: 1px solid var(--border-color-1);
	border-radius: var(--vc-radius);
	background: var(--color-1);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-item:hover {
	border-color: var(--border-color-2);
	box-shadow: 0 6px 18px var(--shadowcolor);
}

.vc-site .store-item h3 {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	color: var(--text-color-1);
	font-size: 1.2em;
	font-weight: 600;
	text-transform: none;
}

.store-description {
	flex: 1;
	margin: 0;
	color: var(--text-color-2);
	font-size: 0.95em;
	white-space: pre-line;
}

.store-price {
	margin: 10px 0 8px;
	color: var(--vc-pink);
	font-size: 1.6em;
	font-weight: 600;
}

/* PayPal link and the crypto button the script adds: the forum's primary and secondary buttons */
.store-item > a,
.crypto-pay-button,
.crypto-copy {
	display: block;
	padding: 7px 10px;
	border: 1px solid var(--vc-pink);
	border-radius: var(--vc-radius-sm);
	background: var(--vc-pink);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

html[data-theme="dark"] .store-item > a {
	color: #0c0b12;
}

.store-item > a:hover {
	border-color: #ff5cad;
	background: #ff5cad;
	color: #ffffff;
	text-decoration: none;
}

.crypto-pay-button,
.crypto-copy {
	margin-top: 6px;
	border-color: var(--border-color-2);
	background: var(--color-2);
	color: var(--text-color-1);
}

.crypto-pay-button:hover,
.crypto-copy:hover {
	border-color: var(--vc-teal);
	color: var(--vc-teal);
}

.crypto-discount {
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--vc-teal);
	color: #ffffff;
	font-size: 0.85em;
}

html[data-theme="dark"] .crypto-discount {
	color: #0c0b12;
}

/* Crypto payment dialog: a forum panel */
#crypto-dialog {
	width: min(640px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	padding: 18px 20px;
	overflow-y: auto;
	border: 1px solid var(--border-color-2);
	border-radius: var(--vc-radius);
	background: var(--color-1);
	color: var(--text-color-1);
	box-shadow: 0 18px 48px var(--shadowcolor);
}

#crypto-dialog::backdrop {
	background: rgba(12, 11, 18, 0.7);
}

.crypto-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.vc-site #crypto-dialog h2 {
	margin: 2px 0 8px;
	border: 0;
	font-size: 1.5em;
}

.crypto-close {
	border: 0;
	background: none;
	color: var(--text-color-1);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

#crypto-dialog label {
	display: block;
	margin: 10px 0 4px;
	font-weight: 600;
}

#crypto-dialog select,
#crypto-dialog input[type="text"],
#crypto-dialog textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid var(--border-color-2);
	border-radius: var(--vc-radius-sm);
	background: var(--input-bg);
	color: var(--input-txt-color);
	font: inherit;
}

#crypto-dialog textarea {
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.95em;
}

.crypto-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 190px;
	gap: 16px;
	align-items: start;
}

.crypto-layout figure {
	margin: 0;
	color: var(--text-color-2);
	font-size: 0.9em;
	text-align: center;
}

.crypto-layout img {
	border-radius: var(--vc-radius-sm);
	background: #ffffff;
}

.crypto-amount {
	margin: 2px 0 6px;
	color: var(--vc-pink);
	font-size: 1.6em;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.crypto-network {
	padding: 8px 10px;
	border-left: 3px solid var(--vc-teal);
	border-radius: var(--vc-radius-sm);
	background: var(--color-2);
	font-weight: 600;
}

.crypto-small {
	color: var(--text-color-2);
	font-size: 0.92em;
}

.crypto-copy {
	display: inline-block;
}

/* ---------- Phones and narrow windows ---------- */
@media (max-width: 900px) {
	.rankings-layout,
	.donation-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.donation-guide {
		position: static;
	}

	.rankings-navigation {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 0 10px;
	}
}

@media (max-width: 700px) {
	.vc-header-address {
		display: none;
	}

	.vc-site .nav-main > li > a > span {
		display: none;
	}

	.vc-site .nav-main > li > a[aria-current="page"] > span {
		display: inline;
	}

	.hero {
		min-height: 300px;
	}

	.hero::after {
		background: rgba(26, 21, 39, 0.78);
	}

	.hero-content {
		padding: 24px 18px 44px;
	}

	.vc-site .hero h2 {
		font-size: 2.2em;
	}

	.hero-actions a {
		display: inline-block;
		margin-bottom: 6px;
	}

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

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

	.panel-heading {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-image {
		transition: none;
	}
}

/* <button> versions of the forum's link buttons (the forum only styles a.button2 / input.button2) */
.vc-site button.button2 {
	padding: 4px 10px;
	border: 1px solid var(--main-color1);
	border-radius: var(--vc-radius-sm);
	background: var(--main-color1);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.vc-site button.button2:hover:not(:disabled) {
	border-color: var(--main-color3);
	background: var(--main-color3);
}

.vc-closing a.button1,
.vc-closing a.button2 {
	display: inline-block;
	padding: 8px 16px;
	font-size: 1.1em;
	vertical-align: middle;
}

.donation-guide li p {
	font-size: 1em;
}

/* Leaderboard table: the forum's category bar as the heading row, card rows below */
.forumbg-table table.data-table {
	border-collapse: separate;
	border-spacing: 0 6px;
}

.forumbg-table table.data-table thead th {
	padding: 12px 12px 11px;
	border: 0;
	background: var(--main-color1);
	color: #f3f1fa;
	font-size: 0.9em;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.forumbg-table table.data-table thead th:first-child {
	border-left: 3px solid var(--vc-pink);
	border-radius: var(--vc-radius) 0 0 var(--vc-radius);
}

.forumbg-table table.data-table thead th:last-child {
	border-radius: 0 var(--vc-radius) var(--vc-radius) 0;
}

.forumbg-table table.data-table tbody td {
	padding: 9px 12px;
	border: 0;
	border-top: 1px solid var(--border-color-1);
	border-bottom: 1px solid var(--border-color-1);
	background: var(--color-1);
	color: var(--text-color-1);
}

.forumbg-table table.data-table tbody td:first-child {
	border-left: 1px solid var(--border-color-1);
	border-radius: var(--vc-radius) 0 0 var(--vc-radius);
}

.forumbg-table table.data-table tbody td:last-child {
	border-right: 1px solid var(--border-color-1);
	border-radius: 0 var(--vc-radius) var(--vc-radius) 0;
}
