/*
Theme Name: YourStop F1 - Telemetry Edition
Theme URI: https://thisisyourstop.com
Description: Radical F1 analytics theme with telemetry aesthetics.
Version: 2.1.0
Author: PitWall Team
*/

/* ============================================
   RACE VARIABLES - High Octane Palette
   ============================================ */
:root {
	/* Colors */
	--race-black: #08090A;
	--race-carbon: #141619;
	--race-asphalt: #22262F;
	--race-yellow: #F9E500;  /* Renault/Jordan Yellow */
	--race-red: #E10600;     /* Maranello Red */
	--race-cyan: #00F0FF;    /* Digital Cyan */
	--race-green: #00FF00;   /* Signal Green */
	--race-white: #FFFFFF;
	--race-silver: #A0A5AB;
	
	/* Compounds */
	--tyre-soft: #FF3333;
	--tyre-med: #FFFF33;
	--tyre-hard: #FFFFFF;

	/* Spacing & Layout */
	--container-width: 1600px;
	--header-height: 80px;
	
	/* Typography */
	--font-speed: 'Inter', sans-serif;
	--font-data: 'JetBrains Mono', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--race-black);
	color: var(--race-silver);
	font-family: var(--font-speed);
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
}

/* Carbon Fiber Texture Overlay */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		linear-gradient(45deg, var(--race-carbon) 25%, transparent 25%, transparent 75%, var(--race-carbon) 75%),
		linear-gradient(45deg, var(--race-carbon) 25%, transparent 25%, transparent 75%, var(--race-carbon) 75%);
	background-size: 4px 4px;
	background-position: 0 0, 2px 2px;
	opacity: 0.1;
	pointer-events: none;
	z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--race-white);
	font-weight: 900;
	text-transform: uppercase;
	font-style: italic;
	letter-spacing: -0.02em;
	margin-bottom: 0.5em;
}

a {
	color: inherit;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
	color: var(--race-yellow);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
	z-index: 2;
}

/* ============================================
   HEADER - Telemetry Bar
   ============================================ */
.site-header {
	background: var(--race-carbon);
	border-bottom: 4px solid var(--race-red);
	height: var(--header-height);
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.logo-text {
	font-family: var(--font-speed);
	font-size: 1.8rem;
	font-weight: 900;
	font-style: italic;
	color: var(--race-white);
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-icon {
	color: var(--race-red);
	font-size: 1.2em;
}

.main-nav ul {
	display: flex;
	gap: 2px;
	list-style: none;
	background: var(--race-asphalt);
	padding: 4px;
	transform: skewX(-15deg);
}

.main-nav a {
	display: block;
	padding: 10px 24px;
	color: var(--race-white);
	font-family: var(--font-data);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	transform: skewX(15deg);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
	background: var(--race-yellow);
	color: var(--race-black);
}

/* ============================================
   HERO - Pit Wall Monitor
   ============================================ */
.hero-f1 {
	height: 80vh;
	position: relative;
	background-size: cover;
	background-position: center;
	border-bottom: 2px solid var(--race-asphalt);
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--race-black) 0%, rgba(8, 9, 10, 0.8) 40%, rgba(8, 9, 10, 0.2) 100%);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 800px;
}

.sector-badge {
	display: inline-block;
	background: #9B59B6; /* Purple Sector */
	color: var(--race-white);
	font-family: var(--font-data);
	font-weight: 700;
	padding: 4px 12px;
	margin-bottom: 20px;
	transform: skewX(-10deg);
}

.hero-title {
	font-size: clamp(3rem, 6vw, 6rem);
	line-height: 0.9;
	color: var(--race-white);
	text-transform: uppercase;
	font-style: italic;
	margin-bottom: 30px;
	text-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.hero-title span {
	color: transparent;
	-webkit-text-stroke: 2px var(--race-yellow);
}

.btn-race {
	display: inline-block;
	background: var(--race-yellow);
	color: var(--race-black);
	padding: 16px 40px;
	font-family: var(--font-data);
	font-weight: 900;
	text-transform: uppercase;
	clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
	transition: all 0.2s;
}

.btn-race:hover {
	background: var(--race-white);
	transform: translateX(10px);
}

/* ============================================
   BLOCK 2: TRACK STATUS STRIP
   ============================================ */
.track-status-strip {
	background: var(--race-asphalt);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding: 15px 0;
}

.strip-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	text-align: center;
}

.status-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-right: 1px solid rgba(255,255,255,0.05);
}

.status-item:last-child {
	border-right: none;
}

.status-label {
	font-family: var(--font-data);
	font-size: 0.7rem;
	color: var(--race-silver);
}

.status-val {
	font-family: var(--font-data);
	font-weight: 700;
	color: var(--race-white);
	font-size: 1rem;
}

.status-green { color: var(--race-green); }
.text-hot { color: var(--race-red); }

/* ============================================
   BLOCK 3: MISSION CONTROL
   ============================================ */
.mission-control {
	padding: 60px 0;
	background: var(--race-black);
}

.control-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.control-card {
	background: var(--race-carbon);
	border: 1px solid rgba(255,255,255,0.05);
	padding: 25px;
	position: relative;
}

.control-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--race-yellow);
}

.card-header-tech {
	font-family: var(--font-data);
	color: var(--race-silver);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
}

.tech-icon { color: var(--race-cyan); }

/* Tyre Visuals */
.tyre-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.tyre-compound {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	color: #000;
	border: 2px solid currentColor;
}

.tyre-compound.soft { color: var(--tyre-soft); border-color: var(--tyre-soft); color: var(--tyre-soft); background: transparent; }
.tyre-compound.medium { color: var(--tyre-med); border-color: var(--tyre-med); background: transparent; }
.tyre-compound.hard { color: var(--tyre-hard); border-color: var(--tyre-hard); background: transparent; }

.tyre-bar {
	height: 6px;
	background: rgba(255,255,255,0.1);
	position: relative;
	flex-grow: 1;
}

.tyre-bar::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%; /* Filled via inline style */
	background: var(--race-cyan);
	opacity: 0.5;
}

.tyre-bar span {
	position: absolute;
	right: -40px;
	top: -6px;
	font-size: 10px;
	font-family: var(--font-data);
	color: var(--race-silver);
}

/* Prob Visuals */
.prob-visual {
	display: flex;
	gap: 20px;
	align-items: center;
}

.prob-circle {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 4px solid var(--race-green);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.prob-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--race-white);
}

.prob-label {
	font-size: 8px;
	color: var(--race-silver);
}

.prob-data {
	font-family: var(--font-data);
	font-size: 0.8rem;
	flex-grow: 1;
}

.prob-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	padding-bottom: 2px;
}

.text-cyan { color: var(--race-cyan); }
.text-yellow { color: var(--race-yellow); }
.text-red { color: var(--race-red); }

/* Weather */
.radar-scan {
	height: 60px;
	background: radial-gradient(circle, rgba(0,240,255,0.2) 0%, transparent 70%);
	border: 1px solid rgba(0,240,255,0.3);
	margin-bottom: 15px;
	position: relative;
	overflow: hidden;
}

.radar-scan::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--race-cyan);
	animation: scan 2s infinite linear;
}

@keyframes scan {
	0% { top: 0; }
	100% { top: 100%; }
}

.weather-info {
	text-align: center;
}

.weather-status {
	display: block;
	font-weight: 700;
	color: var(--race-white);
}

.weather-sub {
	font-size: 0.8rem;
	color: var(--race-silver);
}

/* ============================================
   BLOCK 4: NEXT GP INTEL
   ============================================ */
.next-gp-intel {
	padding: 60px 0;
	background: var(--race-asphalt);
	border-top: 1px solid var(--race-red);
	border-bottom: 1px solid var(--race-red);
}

.gp-layout {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.gp-info {
	flex: 1;
}

.gp-label {
	font-family: var(--font-data);
	color: var(--race-red);
	font-weight: 700;
	letter-spacing: 2px;
}

.gp-name {
	font-size: 4rem;
	margin: 10px 0 30px;
	line-height: 1;
}

.gp-stats {
	display: flex;
	gap: 40px;
}

.gp-stat {
	display: flex;
	flex-direction: column;
}

.gp-stat-val {
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--race-white);
	font-style: italic;
}

.gp-stat-lbl {
	font-family: var(--font-data);
	font-size: 0.8rem;
	color: var(--race-silver);
}

.gp-map-visual {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.gp-map-visual svg {
	width: 100%;
	max-width: 400px;
	height: auto;
	filter: drop-shadow(0 0 10px rgba(225, 6, 0, 0.3));
}


/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-section {
	padding: 80px 0;
	background: var(--race-carbon);
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.advantage-card {
	background: var(--race-asphalt);
	border-left: 4px solid var(--race-yellow);
	padding: 40px 30px;
	transition: all 0.3s;
}

.advantage-card:hover {
	border-left-color: var(--race-red);
	transform: translateX(10px);
	box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
}

.advantage-icon {
	font-size: 3rem;
	margin-bottom: 20px;
	filter: grayscale(1);
	transition: all 0.3s;
}

.advantage-card:hover .advantage-icon {
	filter: grayscale(0);
	transform: scale(1.2);
}

.advantage-title {
	font-size: 1.5rem;
	color: var(--race-white);
	margin-bottom: 15px;
	font-style: italic;
	text-transform: uppercase;
}

.advantage-desc {
	color: var(--race-silver);
	line-height: 1.7;
	margin-bottom: 25px;
	font-size: 0.95rem;
}

.advantage-stats {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 20px;
}

.stat-item {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.stat-num {
	font-family: var(--font-data);
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--race-yellow);
	line-height: 1;
}

.stat-label {
	font-family: var(--font-data);
	font-size: 0.75rem;
	color: var(--race-silver);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ============================================
   4-BLOCK GRID (RADICAL)
   ============================================ */
.grid-section {
	padding: 80px 0;
}

.grid-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 40px;
	border-bottom: 2px solid var(--race-asphalt);
	padding-bottom: 20px;
}

.grid-title {
	font-size: 3rem;
	margin: 0;
}

.grid-wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 4 BLOCKS */
	gap: 20px;
}

.race-card {
	background: var(--race-asphalt);
	border: 1px solid rgba(255,255,255,0.05);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.2s;
	height: 100%;
}

.race-card:hover {
	border-color: var(--race-yellow);
	transform: translateY(-5px);
	box-shadow: 0 0 20px rgba(249, 229, 0, 0.1);
}

.card-thumb {
	height: 200px;
	position: relative;
	overflow: hidden;
}

.card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: all 0.3s;
}

.race-card:hover .card-thumb img {
	filter: grayscale(0%);
	transform: scale(1.1);
}

.lap-time {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--race-black);
	color: var(--race-cyan);
	font-family: var(--font-data);
	font-size: 0.75rem;
	padding: 4px 8px;
	border: 1px solid var(--race-cyan);
}

.card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.card-cat {
	font-family: var(--font-data);
	color: var(--race-red);
	font-size: 0.8rem;
	text-transform: uppercase;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.card-title {
	font-size: 1.25rem;
	line-height: 1.2;
	margin-bottom: 15px;
	flex-grow: 1;
}

.card-meta {
	font-family: var(--font-data);
	color: var(--race-silver);
	font-size: 0.75rem;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 15px;
	display: flex;
	justify-content: space-between;
}

/* ============================================
   ARCHIVE PAGE
   ============================================ */
.archive-main {
	padding: 60px 0;
}

.archive-header {
	margin-bottom: 60px;
	padding-bottom: 30px;
	border-bottom: 2px solid var(--race-asphalt);
}

.archive-badge {
	display: inline-block;
	background: var(--race-red);
	color: var(--race-white);
	font-family: var(--font-data);
	font-weight: 700;
	font-size: 0.8rem;
	padding: 4px 12px;
	margin-bottom: 15px;
	transform: skewX(-10deg);
	letter-spacing: 1px;
}

.archive-title {
	font-size: 4rem;
	color: var(--race-white);
	margin: 0 0 15px 0;
	text-transform: uppercase;
	font-style: italic;
	line-height: 1;
}

.archive-desc {
	color: var(--race-silver);
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 800px;
}

.no-data-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 100px 20px;
	background: var(--race-asphalt);
	border: 2px dashed rgba(249, 229, 0, 0.3);
}

.no-data-icon {
	font-size: 5rem;
	display: block;
	margin-bottom: 20px;
	opacity: 0.3;
}

.no-data-text {
	font-family: var(--font-data);
	color: var(--race-silver);
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* ============================================
   PAGINATION - LAP COUNTER
   ============================================ */
.race-pagination {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 60px;
	font-family: var(--font-data);
}

.race-pagination a,
.race-pagination span {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--race-asphalt);
	color: var(--race-white);
	border: 1px solid transparent;
	font-weight: 700;
	clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.race-pagination a:hover,
.race-pagination .current {
	background: var(--race-red);
	color: var(--race-white);
}

/* ============================================
   FOOTER - PIT LANE
   ============================================ */
.site-footer {
	background: var(--race-black);
	border-top: 4px solid var(--race-yellow);
	padding: 60px 0 20px;
	margin-top: 80px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-logo {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: var(--race-white);
	font-style: italic;
}

.footer-heading {
	font-family: var(--font-data);
	color: var(--race-yellow);
	margin-bottom: 20px;
	font-size: 1rem;
}

.footer-contact .contact-item {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid var(--race-asphalt);
	padding: 10px 0;
	font-family: var(--font-data);
	font-size: 0.9rem;
}

.footer-contact .contact-label {
	color: var(--race-silver);
}

.footer-contact .contact-value {
	color: var(--race-white);
	font-weight: 700;
}

.footer-bottom {
	text-align: center;
	font-family: var(--font-data);
	font-size: 0.8rem;
	color: var(--race-asphalt);
	background: var(--race-yellow);
	padding: 10px;
	margin-top: 40px;
	color: var(--race-black);
	font-weight: 700;
	text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
	.grid-wrapper { grid-template-columns: repeat(2, 1fr); }
	.strip-grid { grid-template-columns: repeat(3, 1fr); }
	.control-grid { grid-template-columns: 1fr; }
	.gp-layout { flex-direction: column; text-align: center; }
	.advantages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.grid-wrapper { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero-title { font-size: 2.5rem; }
	.strip-grid { grid-template-columns: repeat(2, 1fr); }
	.gp-name { font-size: 2.5rem; }
	.gp-stats { justify-content: center; }
	.advantages-grid { grid-template-columns: 1fr; }
	.advantage-card:hover { transform: translateX(0); }
	.archive-title { font-size: 2.5rem; }
	.main-nav ul { flex-wrap: wrap; gap: 5px; }
}
