/* Race Car Scans: front-end styles. Colors match racecarsforyou.com's orange. */
:root {
	--rcs-accent: #f26a1b;
	--rcs-muted: #5d6068;
	--rcs-line: #d9dadf;
	--rcs-panel: #101114;
}

.rcs-viewer {
	margin: 0 0 1.5em;
	background: var(--rcs-panel);
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}
.rcs-viewer canvas {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	cursor: grab;
	touch-action: none;
}
.rcs-viewer[style*="height"] canvas { aspect-ratio: auto; height: 100%; }
.rcs-viewer figcaption {
	position: absolute;
	left: 12px;
	bottom: 10px;
	margin: 0;
	font: 11px/1.3 ui-monospace, Consolas, monospace;
	color: #8a8e96;
}
.rcs-viewer--loading::after {
	content: "Loading 3D model…";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #a3a8b1;
	font-size: 14px;
}
.rcs-viewer--error canvas { opacity: .2; }
.rcs-viewer--error figcaption { color: #ffb38a; }

.rcs-h {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rcs-muted);
	margin: 1.6em 0 .6em;
}

.rcs-details table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rcs-details th, .rcs-details td { text-align: left; padding: 8px 0; vertical-align: top; border-top: 1px solid var(--rcs-line); }
.rcs-details tr:first-child th, .rcs-details tr:first-child td { border-top: 0; }
.rcs-details th { font-weight: 500; color: var(--rcs-muted); width: 40%; }

.rcs-related ul { list-style: none; margin: 0; padding: 0; }
.rcs-related li { padding: 6px 0; border-top: 1px solid var(--rcs-line); }
.rcs-related li:first-child { border-top: 0; }
.rcs-related li span { color: var(--rcs-muted); font-size: 13px; margin-left: 6px; }

.rcs-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rcs-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: #fde6d6;
	color: #b8490a;
	border-radius: 3px;
	padding: 3px 8px;
}
.rcs-car { color: var(--rcs-muted); font-size: 14px; }

.rcs-rcfy {
	margin: 1.6em 0;
	padding: 14px 16px;
	border: 1px solid var(--rcs-line);
	border-left: 3px solid var(--rcs-accent);
	border-radius: 6px;
	font-size: 15px;
}
.rcs-rcfy a { color: #b8490a; font-weight: 600; }

/* Buttons */
.rcs-btn {
	display: inline-block;
	background: var(--rcs-accent);
	color: #1a0d04 !important;
	border: 0;
	border-radius: 5px;
	padding: 11px 18px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
}
.rcs-btn:hover { filter: brightness(1.08); }
.rcs-btn--ghost { background: transparent; color: inherit !important; border: 1px solid var(--rcs-line); }

/* Free download box */
.rcs-download { margin: 1.4em 0; padding: 16px 18px; border: 1px solid var(--rcs-line); border-radius: 6px; }
.rcs-download__head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.rcs-free { font-size: 22px; font-weight: 800; font-style: italic; color: #1e8a4c; }
.rcs-count { color: var(--rcs-muted); font-size: 13px; }
.rcs-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rcs-file { color: var(--rcs-muted); font-size: 13px; margin-left: 8px; word-break: break-all; }
.rcs-download__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rcs-license { color: var(--rcs-muted); font-size: 14px; }

/* Upload form */
.rcs-upload { display: grid; gap: 4px; max-width: 760px; }
.rcs-upload label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.rcs-upload input[type=text], .rcs-upload select, .rcs-upload textarea { width: 100%; box-sizing: border-box; }
.rcs-upload .rcs-check, .rcs-kind label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin-right: 16px; }
.rcs-kind { border: 0; padding: 0; margin: 0 0 8px; }
.rcs-kind legend { font-weight: 700; margin-bottom: 6px; }
.rcs-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 640px) { .rcs-cols { grid-template-columns: 1fr; } }
.rcs-hint { display: block; color: var(--rcs-muted); font-size: 12px; margin-top: 4px; }
.rcs-more { margin: 8px 0; }
.rcs-more summary { cursor: pointer; font-weight: 600; }
.rcs-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.rcs-notice ul { margin: 0; padding-left: 18px; }
.rcs-notice--ok { background: #dcf2e5; color: #145c33; }
.rcs-notice--error { background: #fde6d6; color: #8a3507; }

/* ---------- Upload review page (/review/) ------------------------------- */
.rcs-review__msg { background: #eaf7ee; border: 1px solid #b7e0c3; color: #1d5b2f; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; }
.rcs-review__count { font-weight: 700; color: #15161a; }
.rcs-review__item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; background: #fff; border: 1px solid #d9dadf; border-top: 3px solid #f26a1b; border-radius: 8px; padding: 18px; margin-bottom: 22px; }
.rcs-review__preview .rcs-viewer { margin: 0; border-radius: 6px; }
.rcs-review__kind { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b8490a; }
.rcs-review__title { font-size: 28px; margin: 4px 0 6px; }
.rcs-review__meta, .rcs-review__file { font-size: 14px; color: #5d6068; margin: 0 0 6px; }
.rcs-review__file a { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-weight: 600; }
.rcs-review__warn { color: #a3261a; font-weight: 700; }
.rcs-review__desc { font-size: 15px; border-left: 3px solid #ececee; padding-left: 12px; margin: 10px 0; }
.rcs-review__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px solid #ececee; }
.rcs-review__actions form { margin: 0; }
.rcs-review__actions button.rcs-btn { cursor: pointer; }
.rcs-review__reject { flex-basis: 100%; }
.rcs-review__reject summary { cursor: pointer; color: #a3261a; font-weight: 700; font-size: 14px; }
.rcs-review__reject label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.rcs-review__reject textarea { width: 100%; border: 1px solid #d9dadf; border-radius: 5px; padding: 8px 10px; font: inherit; }
.rcs-review__reject .rcs-review__rejectbtn { margin-top: 8px; background: #a3261a; border-color: #a3261a; color: #fff !important; }
.rcs-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: #f26a1b; color: #1a0d04; font-size: 11px; font-weight: 800; text-align: center; line-height: 16px; }
@media (max-width: 860px) { .rcs-review__item { grid-template-columns: 1fr; } }

/* Admin-only listing tools (admin-tools.php) */
.rcs-admin-tools { margin-top: 14px; padding: 12px 14px; border: 1px dashed #f26a1b; border-radius: 8px; background: rgba(242,106,27,.06); }
.rcs-admin-tools__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b8490a; margin-bottom: 8px; }
.rcs-admin-tools__row { display: flex; flex-wrap: wrap; gap: 8px; }
.rcs-admin-tools__row form { margin: 0; }
.rcs-admin-tools__row .rcs-btn { cursor: pointer; padding: 8px 14px; font-size: 13px; }
.rcs-admin-tools__delete { background: #b3261e !important; border-color: #b3261e !important; color: #fff !important; }
.rcs-admin-notice { background: #15171b; color: #fff; border-left: 4px solid #f26a1b; padding: 12px 18px; font-size: 15px; }
.rcs-upload button[disabled] { opacity: .7; cursor: progress; }
.rcs-upload__busy { color: #b8490a; font-weight: 600; }

/* ---------- Share form, site styling ---------------------------------------------- */
.rcs-upload { gap: 10px; }
.rcs-upload label, .rcs-kind legend {
	font-family: "Barlow", system-ui, sans-serif; font-size: 13px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: #15161a;
}
.rcs-upload input[type=text], .rcs-upload select, .rcs-upload textarea {
	border: 1px solid #d0d2d8; border-radius: 6px; padding: 11px 12px; font-size: 16px; background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.rcs-upload input[type=text]:focus, .rcs-upload select:focus, .rcs-upload textarea:focus {
	outline: none; border-color: #f26a1b; box-shadow: 0 0 0 3px rgba(242,106,27,.18);
}
/* scan / print choice as two toggle buttons */
.rcs-kind { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.rcs-kind legend { width: 100%; margin-bottom: 8px; padding: 0; }
.rcs-kind label {
	position: relative; margin: 0 !important; cursor: pointer;
	padding: 12px 20px; border: 1px solid #d0d2d8; border-radius: 6px; background: #fff;
	font-size: 15px !important; letter-spacing: .06em; text-transform: uppercase; font-weight: 700 !important;
	transition: border-color .15s, background .15s, color .15s;
}
.rcs-kind input { position: absolute; opacity: 0; pointer-events: none; }
.rcs-kind label:has(input:checked) { background: #15171b; border-color: #15171b; color: #fff; box-shadow: inset 0 -3px 0 #f26a1b; }
.rcs-kind label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(242,106,27,.35); }
/* file pickers as drop zones */
.rcs-upload p:has(> input[type=file]) {
	position: relative; padding: 18px; border: 2px dashed #c9ccd3; border-radius: 10px; background: #f6f6f8;
	transition: border-color .15s, background .15s;
}
.rcs-upload p:has(> input[type=file]):hover,
.rcs-upload p.is-dragover { border-color: #f26a1b; background: rgba(242,106,27,.06); }
.rcs-upload p:has(> #rcs_file) { border-color: #f26a1b; background: rgba(242,106,27,.04); padding: 22px 18px; }
.rcs-upload input[type=file] { display: block; width: 100%; font-size: 15px; color: #4a4d55; cursor: pointer; }
.rcs-upload input[type=file]::file-selector-button {
	margin-right: 14px; padding: 10px 18px; border: 0; border-radius: 6px; cursor: pointer;
	background: #15171b; color: #fff; font: 700 13px/1 "Barlow", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
	transition: background .15s;
}
.rcs-upload input[type=file]::file-selector-button:hover { background: #f26a1b; color: #1a0d04; }
.rcs-upload .rcs-hint { display: block; margin-top: 8px; font-size: 13px; color: #6f737b; }
/* optional details */
.rcs-upload details > summary { cursor: pointer; font-weight: 700; color: #15161a; padding: 10px 0; }
.rcs-upload details > summary:hover { color: #b8490a; }
.rcs-upload .rcs-check { font-size: 15px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; }
.rcs-upload .rcs-check input { width: 18px; height: 18px; accent-color: #f26a1b; }
.rcs-upload button[type=submit] { padding: 14px 28px; font-size: 15px; }
