/* =============================================
   PCC Game Pages + Performance Tab Styles
   ============================================= */

/* --- Performance Tab (Product Page) --- */
.pcc-perf-tab {
	max-width: 800px;
}
.pcc-perf-tab__intro {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1.25rem;
}
.pcc-perf-tab__res-toggle {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}
.pcc-perf-tab__res-btn {
	padding: 0.4rem 1rem;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
	transition: all 0.15s;
}
.pcc-perf-tab__res-btn:hover {
	border-color: var(--cyan);
	color: var(--cyan);
}
.pcc-perf-tab__res-btn.is-active {
	background: var(--cyan);
	color: var(--bg-primary);
	border-color: var(--cyan);
}
.pcc-perf-tab__charts {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.pcc-perf-tab__game {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.pcc-perf-tab__game-name {
	flex: 0 0 200px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-body);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pcc-perf-tab__game-name a {
	color: inherit;
	text-decoration: none;
}
.pcc-perf-tab__game-name a:hover {
	color: var(--cyan);
}
.pcc-perf-tab__bars {
	flex: 1;
}
.pcc-perf-tab__bar {
	height: 28px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	min-width: 50px;
	transition: width 0.3s ease;
}
.pcc-perf-tab__bar--green {
	background: linear-gradient(90deg, #22c55e, #16a34a);
}
.pcc-perf-tab__bar--yellow {
	background: linear-gradient(90deg, #eab308, #ca8a04);
}
.pcc-perf-tab__bar--red {
	background: linear-gradient(90deg, #ef4444, #dc2626);
}
.pcc-perf-tab__bar-value {
	padding: 0 0.75rem;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
}
/* Estimated FPS bar (second row, low/medium preset) */
.pcc-perf-tab__bar-estimated {
	height: 28px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	min-width: 50px;
	margin-top: 3px;
	transition: width 0.3s ease;
	background: linear-gradient(90deg, rgba(96, 165, 250, 0.5), rgba(59, 130, 246, 0.4));
	border: 1px solid rgba(96, 165, 250, 0.25);
}
.pcc-perf-tab__bar-estimated .pcc-perf-tab__bar-value {
	font-size: 0.75rem;
	font-weight: 500;
	opacity: 0.9;
}
/* Legend swatches */
.pcc-perf-tab__legend-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	vertical-align: middle;
	margin-right: 2px;
}
.pcc-perf-tab__legend-swatch--ultra {
	background: linear-gradient(90deg, #22c55e, #16a34a);
}
.pcc-perf-tab__legend-swatch--estimated {
	background: linear-gradient(90deg, rgba(96, 165, 250, 0.5), rgba(59, 130, 246, 0.4));
	border: 1px solid rgba(96, 165, 250, 0.25);
}
.pcc-perf-tab__disclaimer {
	margin-top: 1.5rem;
	font-size: 0.8rem;
	color: var(--text-muted);
	font-style: italic;
}

/* --- Preset legend --- */
.pcc-game-single__preset-legend {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin: -0.5rem 0 1rem;
}

/* --- Game Archive Page --- */
.pcc-game-archive {
	max-width: var(--container-max, 1320px);
	margin: 0 auto;
	padding: 2.5rem var(--container-padding, 24px);
}
.pcc-game-archive__title {
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}
.pcc-game-archive__subtitle {
	color: var(--text-muted);
	margin-bottom: 2rem;
}
.pcc-game-archive__filters {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}
.pcc-game-archive__filter-btn {
	padding: 0.4rem 1rem;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 0.85rem;
	transition: all 0.15s;
}
.pcc-game-archive__filter-btn:hover {
	border-color: var(--cyan);
	color: var(--cyan);
}
.pcc-game-archive__filter-btn.is-active {
	background: var(--cyan);
	color: var(--bg-primary);
	border-color: var(--cyan);
}
.pcc-game-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
}
.pcc-game-card {
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--card-gradient);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pcc-game-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-card);
	border-color: var(--border-hover);
}
.pcc-game-card__image {
	width: 100%;
	aspect-ratio: 460/215;
	object-fit: contain;
	background: var(--bg-elevated);
}
.pcc-game-card__body {
	padding: 1rem;
}
.pcc-game-card__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: var(--text-primary);
}
.pcc-game-card__title a {
	color: inherit;
	text-decoration: none;
}
.pcc-game-card__title a:hover {
	color: var(--cyan);
}
.pcc-game-card__genres {
	display: flex;
	gap: 0.35rem;
	flex-wrap: wrap;
}
.pcc-game-card__genre {
	font-size: 0.75rem;
	padding: 0.15rem 0.5rem;
	background: var(--cyan-soft);
	color: var(--cyan);
	border-radius: 4px;
}
.pcc-game-card__meta {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 0.5rem;
}

/* --- Game Single Page --- */
.pcc-game-single {
	max-width: var(--container-max, 1320px);
	margin: 0 auto;
	padding: 2.5rem var(--container-padding, 24px);
	color: var(--text-body);
}
.pcc-game-single__hero {
	display: flex;
	gap: 2.5rem;
	margin-bottom: 2.5rem;
	align-items: flex-start;
}
.pcc-game-single__hero-image {
	width: 220px;
	border-radius: 10px;
	flex-shrink: 0;
	border: 1px solid var(--border);
}
.pcc-game-single__hero-info {
	flex: 1;
}
.pcc-game-single__title {
	font-family: var(--font-heading);
	font-size: 2.25rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--text-primary);
}
.pcc-game-single__hero-info > p {
	color: var(--text-muted);
	margin: 0 0 1.25rem;
	line-height: 1.6;
}
.pcc-game-single__meta-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}
.pcc-game-single__meta-item {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	padding: 0.6rem 1rem;
	border-radius: 8px;
}
.pcc-game-single__meta-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted);
	display: block;
	margin-bottom: 0.125rem;
}
.pcc-game-single__meta-value {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-primary);
}

/* Resolution toggle (reused) */
.pcc-game-single__res-toggle {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 2rem;
}


/* Section headers */
.pcc-game-single__section {
	margin-bottom: 2.5rem;
}
.pcc-game-single__section-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border);
	color: var(--text-primary);
}

/* Price bracket subtitle */
.pcc-game-single__section h3 {
	color: var(--text-muted) !important;
}

/* Combo cards */
.pcc-game-single__combos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}
.pcc-combo-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 1.25rem;
	background: var(--card-gradient);
	transition: border-color 0.2s;
}
.pcc-combo-card:hover {
	border-color: var(--border-hover);
}
.pcc-combo-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}
.pcc-combo-card__fps {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
}
.pcc-combo-card__fps--green { color: #22c55e; }
.pcc-combo-card__fps--yellow { color: #eab308; }
.pcc-combo-card__fps--red { color: #ef4444; }
.pcc-combo-card__price-block {
	text-align: right;
}
.pcc-combo-card__price {
	font-size: 0.9rem;
	color: var(--cyan);
	font-weight: 700;
	display: block;
}
.pcc-combo-card__cost-per-fps {
	font-size: 0.75rem;
	color: var(--text-muted);
	display: block;
}
.pcc-combo-card__component {
	font-size: 0.85rem;
	padding: 0.25rem 0;
	color: var(--text-body);
}
.pcc-combo-card__component-label {
	color: var(--text-muted);
	font-size: 0.75rem;
	text-transform: uppercase;
	margin-right: 0.25rem;
}
.pcc-combo-card__bottleneck {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: var(--text-muted);
}


/* CTA */
.pcc-game-single__cta {
	text-align: center;
	padding: 2.5rem;
	background: var(--cyan-soft);
	border: 1px solid rgba(0, 240, 255, 0.12);
	border-radius: 12px;
}
.pcc-game-single__cta p {
	color: var(--text-body) !important;
}
.pcc-game-single__cta strong {
	color: var(--text-primary);
}
.pcc-game-single__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.875rem 2rem;
	background: linear-gradient(135deg, var(--cyan), #00D4E0);
	color: var(--bg-primary);
	border-radius: 10px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	box-shadow: 0 0 24px var(--cyan-glow);
	transition: all 0.2s;
}
.pcc-game-single__cta-btn:hover {
	box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
	transform: translateY(-2px);
	color: var(--bg-primary);
}
/* Benchmark methodology note */
.pcc-game-single__benchmark-note {
	margin-top: 2rem;
	padding: 1.25rem 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border);
	border-radius: 10px;
	font-size: 0.82rem;
	line-height: 1.7;
	color: var(--text-muted);
}
.pcc-game-single__benchmark-note strong {
	color: var(--text-body);
}
.pcc-game-single__benchmark-note em {
	color: var(--text-body);
	font-style: normal;
}

/* --- Responsive --- */
@media (max-width: 768px) {
	.pcc-perf-tab__game {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}
	.pcc-perf-tab__game-name {
		flex: none;
		width: 100%;
	}
	.pcc-perf-tab__bars {
		width: 100%;
	}
	.pcc-game-single__hero {
		flex-direction: column;
	}
	.pcc-game-single__hero-image {
		width: 100%;
		max-width: 220px;
	}
	.pcc-game-archive__grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 1rem;
	}
}

/* =============================================
   Bundle Performance Grid (product page)
   ============================================= */
.pcc-bundle-perf {
	margin: 0;
}
.pcc-bundle-perf__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
}
.pcc-bundle-perf__subtitle {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 1.25rem;
}
.pcc-bundle-perf__res-toggle {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}
/* Override res-btn colors for dark theme */
.pcc-bundle-perf .pcc-perf-tab__res-btn {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.7);
}
.pcc-bundle-perf .pcc-perf-tab__res-btn:hover {
	border-color: #00F0FF;
	color: #00F0FF;
}
.pcc-bundle-perf .pcc-perf-tab__res-btn.is-active {
	background: #00F0FF;
	color: #0A0E17;
	border-color: #00F0FF;
}

/* Card grid — fixed 6 cols (2×6), then 4 cols, then 3 cols */
.pcc-bundle-perf__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1rem;
}
.pcc-bundle-perf__card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s, border-color 0.2s;
	display: flex;
	flex-direction: column;
}
.pcc-bundle-perf__card:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 240, 255, 0.3);
}

/* Card image */
.pcc-bundle-perf__card-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	background: rgba(255, 255, 255, 0.06);
}
.pcc-bundle-perf__card-img--placeholder {
	background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

/* Card body */
.pcc-bundle-perf__card-body {
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	flex: 1;
}
.pcc-bundle-perf__card-name {
	font-size: 0.78rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
	min-height: 2em;
	display: flex;
	align-items: center;
}

/* FPS value */
.pcc-bundle-perf__card-fps {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1;
	font-family: var(--font-heading, 'Rajdhani', sans-serif);
}
.pcc-bundle-perf__card-fps-unit {
	font-size: 0.7rem;
	font-weight: 600;
	opacity: 0.7;
}
.pcc-bundle-perf__card-fps--green { color: #22c55e; }
.pcc-bundle-perf__card-fps--yellow { color: #eab308; }
.pcc-bundle-perf__card-fps--red { color: #ef4444; }

/* Mini FPS bar */
.pcc-bundle-perf__card-bar {
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 2px;
	overflow: hidden;
}
.pcc-bundle-perf__card-bar-fill {
	height: 100%;
	border-radius: 2px;
	transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
	.pcc-bundle-perf__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (max-width: 640px) {
	.pcc-bundle-perf__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 0.75rem;
	}
	.pcc-bundle-perf__card-fps {
		font-size: 1.3rem;
	}
	.pcc-bundle-perf__card-name {
		font-size: 0.7rem;
	}
}
