/* =========================================================================
   Rising Compare
   Her renk ve ölçü bir CSS değişkeni; hepsi Elementor panelinden
   geçersiz kılınabiliyor. Varsayılan vurgu rengi (#C49A63) konfigüratör
   eklentilerindeki Rising bronzunun koyu zeminde okunan tonu.
   ========================================================================= */

.rpg {
	--rpg-bg: #0B0F15;
	--rpg-surface: #121922;
	--rpg-surface-2: #0E141B;
	--rpg-line: rgba(255, 255, 255, 0.09);
	--rpg-line-2: rgba(255, 255, 255, 0.16);
	--rpg-ink: #E9ECEF;
	--rpg-mut: #8C949D;
	/* Başlık ve tablo değerleri kendi değişkenlerini kullanır; ayarlanmazsa
	   genel yazı rengine düşerler. Tek bir --rpg-ink'e bağlı olmaları,
	   başlığı değiştirince tablonun da değişmesine yol açıyordu. */
	--rpg-title: var(--rpg-ink);
	--rpg-val: var(--rpg-ink);
	--rpg-acc: #C49A63;
	--rpg-acc-soft: rgba(196, 154, 99, 0.13);
	--rpg-radius: 14px;
	/* Mobil kutucuklar: köşe yuvarlaklığı, seçim halkasının rengi ve kalınlığı */
	--rpg-tile-radius: 10px;
	--rpg-tile-sel: #FFFFFF;
	--rpg-tile-ring: 2px;
	--rpg-fade: 280ms;
	--rpg-pad: clamp(18px, 3vw, 34px);
	--rpg-e: cubic-bezier(0.22, 0.61, 0.36, 1);
	--rpg-font: inherit;

	position: relative;
	display: block;
	box-sizing: border-box;
	padding: var(--rpg-pad);
	border-radius: var(--rpg-radius);
	background: var(--rpg-bg);
	color: var(--rpg-ink);
	font-family: var(--rpg-font);
	line-height: 1.6;
}

.rpg *,
.rpg *::before,
.rpg *::after {
	box-sizing: border-box;
}

/* Tema devralmayı kesiyoruz: eklenti her temada aynı görünmeli.
   Özgüllük dengesi: bu sıfırlama `.rpg button` (0,1,1) ile temanın
   `button` (0,0,1) kuralını geçer. Buna karşılık kendi buton bileşenlerimiz
   `.rpg .rpg__tile` gibi (0,2,0) yazılır ve sıfırlamayı geçer. Sıfırlamayı
   :where() ile nötrlemek işe yaramıyor — o zaman tema kazanıyor. */
.rpg button {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.rpg button:hover,
.rpg button:focus {
	background: transparent;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.rpg :where(button, a):focus-visible {
	outline: 2px solid var(--rpg-acc);
	outline-offset: 3px;
	border-radius: 4px;
}

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

/* Ekran okuyucuya açık, gözle görünmez. Temanın screen-reader-text
   sınıfına güvenmiyoruz: her temada var olmayabiliyor ve yoksa metin
   sayfanın ortasında görünür kalıyor. */
.rpg__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------- başlık */
.rpg__eyebrow {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--rpg-acc);
}

.rpg__title {
	margin: 0;
	color: var(--rpg-title);
	font-size: clamp(1.9rem, 4.2vw, 3.1rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	font-weight: 700;
	text-wrap: balance;
}

.rpg__lede {
	margin: 18px 0 0;
	max-width: 54ch;
	font-size: clamp(0.95rem, 1.15vw, 1.0625rem);
	color: var(--rpg-mut);
	text-wrap: pretty;
}

.rpg__head {
	margin-bottom: clamp(26px, 4vw, 44px);
}

/* ---------------------------------------------------------- kart şeridi */
.rpg__cards {
	display: grid;
	grid-template-columns: repeat(var(--rpg-cols, 6), minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 clamp(26px, 4vw, 40px);
	padding: 0;
	list-style: none;
}

.rpg__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--rpg-line);
	border-radius: 12px;
	background: var(--rpg-surface);
	transition: border-color 0.25s var(--rpg-e), transform 0.25s var(--rpg-e);
}

.rpg__card:hover,
.rpg__card.is-on {
	border-color: var(--rpg-acc);
	transform: translateY(-3px);
}

.rpg__shot {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--rpg-surface-2);
}

.rpg__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--rpg-e);
}

.rpg__card:hover .rpg__shot img {
	transform: scale(1.04);
}

/* Görsel yoksa: boş gri kutu yerine okunur bir yer tutucu. */
.rpg__shot--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		repeating-linear-gradient(135deg, var(--rpg-line) 0 1px, transparent 1px 11px),
		var(--rpg-surface-2);
}

.rpg__shot--empty span {
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rpg-mut);
}

.rpg__cardbody {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 14px 15px 16px;
}

.rpg__brand {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rpg-mut);
}

.rpg__model {
	margin: 2px 0 0;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--rpg-acc);
}

.rpg__note {
	margin: 9px 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--rpg-mut);
}

/* ---------------------------------------------------------------- tablo */
.rpg__panel {
	border: 1px solid var(--rpg-line);
	border-radius: 12px;
	background: var(--rpg-surface);
	overflow: hidden;
}

.rpg__panelhead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--rpg-line);
}

.rpg__panelname {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.rpg__panelname svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--rpg-acc);
}

.rpg__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 17px;
	border: 1px solid var(--rpg-acc);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--rpg-acc);
	text-decoration: none;
	transition: background-color 0.25s var(--rpg-e), color 0.25s var(--rpg-e);
}

.rpg__cta:hover {
	background: var(--rpg-acc);
	color: var(--rpg-bg);
}

.rpg__cta svg {
	width: 14px;
	height: 14px;
}

.rpg__tablewrap {
	overflow-x: auto;
}

.rpg__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.rpg__table th,
.rpg__table td {
	padding: 14px 16px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid var(--rpg-line);
}

.rpg__table thead th {
	position: relative;
	background: var(--rpg-surface-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rpg-mut);
	white-space: nowrap;
}

.rpg__table tbody tr:last-child th,
.rpg__table tbody tr:last-child td {
	border-bottom: 0;
}

.rpg__table tbody tr {
	transition: background-color 0.2s var(--rpg-e);
}

.rpg__table tbody tr:hover {
	background: var(--rpg-acc-soft);
}

/* Sayı sütunları: rakamlar alt alta hizalansın. */
.rpg__num {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--rpg-val);
}

.rpg__rowname {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.rpg__thumb {
	width: 46px;
	height: 34px;
	flex: none;
	border-radius: 5px;
	object-fit: cover;
	background: var(--rpg-surface-2);
}

.rpg__thumb--empty {
	background:
		repeating-linear-gradient(135deg, var(--rpg-line) 0 1px, transparent 1px 9px),
		var(--rpg-surface-2);
}

.rpg__rowmodel {
	color: var(--rpg-acc);
}

/* Model adı sütunu: "UNIFOLIATE TECTONA" gibi iki kelimelik adlar geniş
   ekranda tek satıra sığsın. Dar ekranda bu alt sınır kalkıyor, çünkü
   tabloyu gereksiz yere yatay kaydırmaya zorluyordu; orada ad iki satıra
   iner. */
@media (min-width: 1280px) {
	.rpg__table tbody th {
		min-width: 17rem;
	}
}

.rpg__rowbrand {
	display: block;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rpg-mut);
}

/* Veri yoksa: uydurma değer yerine açıkça "belirtilmemiş". */
.rpg__table .rpg__na,
.rpg__specs .rpg__na,
.rpg__na {
	font-style: italic;
	color: var(--rpg-mut);
}

.rpg__feat {
	min-width: 15rem;
	color: var(--rpg-mut);
}

/* ------------------------------------------------------- mobil düzen */
.rpg__mobile {
	display: none;
}

.rpg__tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.rpg .rpg__tile {
	display: flex;
	width: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--rpg-line);
	border-radius: var(--rpg-tile-radius);
	background: var(--rpg-surface);
	/* Halka box-shadow ile çiziliyor: kenarlık kalınlığını değiştirmek
	   kutucuğun ölçüsünü oynatır ve seçim sırasında ızgara zıplar. */
	box-shadow: 0 0 0 0 transparent;
	transition:
		border-color 0.25s var(--rpg-e),
		box-shadow 0.25s var(--rpg-e),
		background-color 0.25s var(--rpg-e);
}

.rpg .rpg__tile[aria-pressed='true'] {
	border-color: var(--rpg-tile-sel);
	background: var(--rpg-acc-soft);
	box-shadow: 0 0 0 var(--rpg-tile-ring) var(--rpg-tile-sel);
}

.rpg__tileshot {
	aspect-ratio: 16 / 11;
	overflow: hidden;
	border-radius: calc(var(--rpg-tile-radius) - 1px) calc(var(--rpg-tile-radius) - 1px) 0 0;
	background: var(--rpg-surface-2);
}

.rpg__tileshot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rpg .rpg__tilename {
	padding: 7px 8px 8px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	color: var(--rpg-ink);
}

.rpg .rpg__tile[aria-pressed='true'] .rpg__tilename {
	color: var(--rpg-acc);
}

/* seçilen modelin kartı */
.rpg__detail {
	border: 1px solid var(--rpg-line);
	border-radius: 12px;
	background: var(--rpg-surface);
	overflow: hidden;
	opacity: 1;
	transition: opacity var(--rpg-fade) var(--rpg-e);
}

/* Geçiş sırasında: önce giden kart saydamlaşır, gizlenir; sonra gelen kart
   saydamdan açılır. JS iki aşamayı sırayla yürütüyor. */
.rpg__detail.is-fade {
	opacity: 0;
}

.rpg__detshot {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--rpg-surface-2);
}

.rpg__detshot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rpg .rpg__nav {
	position: absolute;
	top: 50%;
	display: flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	border-radius: 999px;
	background: rgba(10, 14, 20, 0.72);
	color: #fff;
	backdrop-filter: blur(4px);
}

.rpg .rpg__nav--prev { left: 10px; }
.rpg .rpg__nav--next { right: 10px; }
.rpg .rpg__nav svg { width: 17px; height: 17px; }

.rpg__detbody {
	padding: 16px 17px 18px;
}

.rpg__detname {
	margin: 0 0 14px;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--rpg-acc);
}

.rpg__specs {
	margin: 0;
}

.rpg__spec {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-top: 1px solid var(--rpg-line);
}

.rpg__spec dt {
	font-size: 0.8125rem;
	color: var(--rpg-mut);
}

.rpg__spec dd {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var(--rpg-val);
}

.rpg__spec--feat {
	display: block;
}

.rpg__spec--feat dd {
	margin-top: 5px;
	font-weight: 400;
	text-align: left;
	color: var(--rpg-mut);
}

/* akordeon */
.rpg__acc {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--rpg-line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--rpg-surface);
}

.rpg__accitem + .rpg__accitem {
	border-top: 1px solid var(--rpg-line);
}

.rpg .rpg__accbtn {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
}

.rpg__accthumb {
	width: 40px;
	height: 30px;
	flex: none;
	border-radius: 5px;
	object-fit: cover;
	background: var(--rpg-surface-2);
}

.rpg__acclabel {
	flex: 1 1 auto;
	font-size: 0.875rem;
	font-weight: 600;
}

.rpg .rpg__accbtn svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--rpg-mut);
	transition: transform 0.3s var(--rpg-e);
}

.rpg__accitem.is-open .rpg__accbtn svg {
	transform: rotate(90deg);
	color: var(--rpg-acc);
}

/* grid-template-rows ile animasyon: içerik yüksekliği bilinmeden çalışır */
.rpg__accbody {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.32s var(--rpg-e);
}

.rpg__accitem.is-open .rpg__accbody {
	grid-template-rows: 1fr;
}

.rpg__accinner {
	overflow: hidden;
}

.rpg__accpad {
	padding: 0 14px 14px;
}

/* ---------------------------------------------------- duyarlı kırılım */
@media (max-width: 1100px) {
	.rpg__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
	.rpg__desktop { display: none; }
	.rpg__mobile { display: block; }
}

/* Üç sütun telefon genişliğine kadar korunur; ancak çok dar ekranlarda
   ikiye düşer, yoksa model adları kırpılıyor. */
@media (max-width: 359px) {
	.rpg__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------- hareket tercihi */
@media (prefers-reduced-motion: reduce) {
	.rpg *,
	.rpg *::before,
	.rpg *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	/* Kart hiçbir zaman saydam takılı kalmasın. */
	.rpg__detail.is-fade { opacity: 1; }
}

/* Yazdırma: tablo tam görünsün. */
@media print {
	.rpg { background: #fff; color: #000; }
	.rpg__mobile { display: none; }
	.rpg__desktop { display: block; }
	.rpg__tablewrap { overflow: visible; }
}
