/* ==========================================================================
   Modül: ana sayfa slider (inc/hero-slider.php)
   Solda geniş + sağda iki küçük slider. Yalnızca ana sayfada yüklenir.
   ========================================================================== */

/* 5. Hero: solda geniş slider, sağda üst üste iki küçük slider (hepsi 16:9) ------ */
.rxc-hero {
	width: calc(100% - 40px); max-width: var(--rxc-w); margin: 28px auto 0;
	display: grid; gap: var(--rxc-gap); align-items: start;
	grid-template-columns: minmax(0, 1fr) var(--rxc-side-w);
}
.rxc-hero--solo { grid-template-columns: 1fr; }
.rxc-subs { display: grid; gap: var(--rxc-gap); }

.rxc-stage {
	position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9;
	border-radius: var(--rxc-radius); background: var(--rxc-dark); box-shadow: var(--rxc-shadow);
	touch-action: pan-y;
}
.rxc-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.rxc-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.rxc-slide > a { position: relative; display: block; height: 100%; color: #fff; text-decoration: none; }
.rxc-slide__img, .rxc-slide__ph { width: 100%; height: 100%; display: block; object-fit: cover; }
.rxc-slide__img { transform: scale(1.05); transition: transform 7s ease-out; }
.rxc-slide.is-active .rxc-slide__img { transform: scale(1); }
.rxc-slide__ph { background: linear-gradient(135deg, var(--rxc-primary), var(--rxc-dark)); }
.rxc-slide__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .15) 58%, transparent 100%); }
.rxc-slide__body { position: absolute; inset-inline: 0; bottom: 0; display: block; padding: 24px 28px 56px; }
.rxc-chip {
	display: inline-block; padding: 4px 10px; border-radius: var(--rxc-radius-sm);
 background: var(--rxc-accent); color: var(--rxc-dark);
}
.rxc-slide__title {
	display: block; margin: 8px 0 4px; color: #fff;

	text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.rxc-slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rxc-slide__date { display: inline-block; opacity: .92; }

.rxc-dots { position: absolute; inset-inline-start: 28px; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.rxc-dot {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 3px; cursor: pointer;
	background: rgba(255, 255, 255, .5); transition: width .25s ease, background .25s ease;
}
.rxc-dot.is-active { width: 28px; background: var(--rxc-accent); }
.rxc-ctrl { position: absolute; inset-inline-end: 16px; bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.rxc-btn {
	display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--rxc-radius-sm);
	background: rgba(255, 255, 255, .22); color: #fff; cursor: pointer; font-size: .85rem;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s ease, color .2s ease;
}
.rxc-btn:hover { background: var(--rxc-accent); color: var(--rxc-dark); }
[dir="rtl"] .rxc-prev i, [dir="rtl"] .rxc-next i { transform: scaleX(-1); }

/* Küçük slider'lar */
.rxc-stage--sm { box-shadow: var(--rxc-shadow-sm); }
.rxc-stage--sm .rxc-slide__body { padding: 12px 14px 40px; }
.rxc-stage--sm .rxc-chip { padding: 2px 8px; }
.rxc-stage--sm .rxc-slide__title {
	margin: 6px 0 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rxc-stage--sm .rxc-dots { inset-inline-start: 14px; bottom: 14px; gap: 6px; }
.rxc-stage--sm .rxc-dot { width: 7px; height: 7px; }
.rxc-stage--sm .rxc-dot.is-active { width: 18px; }
.rxc-stage--sm .rxc-ctrl { inset-inline-end: 10px; bottom: 8px; gap: 4px; }
.rxc-stage--sm .rxc-btn { width: 28px; height: 28px; font-size: .7rem; }

/* Duyarlılık */
@media (pointer: coarse) {
	.rxc-btn { width: 40px; height: 40px; font-size: .9rem; }
	.rxc-stage--sm .rxc-btn { width: 36px; height: 36px; font-size: .8rem; }
	.rxc-dot { position: relative; }
	.rxc-dot::after { content: ""; position: absolute; inset: -12px -4px; }   /* görünmez geniş dokunma alanı */
}
@media (max-width: 960px) {
	.rxc-hero { grid-template-columns: 1fr; margin-top: 20px; }
	.rxc-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.rxc-hero { width: calc(100% - 32px); }
	.rxc-stage--lg .rxc-slide__body { padding: 14px 16px 52px; }
	.rxc-stage--lg .rxc-slide__title { margin: 8px 0 4px; }
	.rxc-stage--lg .rxc-dots { inset-inline-start: 16px; bottom: 18px; }
	.rxc-stage--lg .rxc-ctrl { inset-inline-end: 10px; bottom: 8px; }
	.rxc-subs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rxc-slide__img { transform: none !important; } }
