/*
 * ÇandName CSS modülü: Slider
 * Ana sayfa slider alanı.
 * Bu dosya diğer CSS dosyalarından bağımsızdır; hata yalnızca bu alanı etkiler.
 * Yükleme sırası: inc/assets.php
 */

/* ------------------------------------------------------------------
   5. Hero sliders
------------------------------------------------------------------ */
/* Three 16:9 sliders (desktop): one wide on the left, two stacked on the right; on mobile (< 960px) only the wide one. The column widths are chosen so the two small ones (plus the gap) are exactly as tall as the wide one: W = 2/3 * (total - gap/9). */
.hero { --hero-gap: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hero-gap); align-items: start; padding: 32px var(--gutter) 0; }
.hero-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hero-gap); min-width: 0; }
.slider {
	position: relative; overflow: hidden; border-radius: 4px; min-width: 0; color: #fff; aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}
/* Touch screens: swiping sideways changes the slide (theme.js), vertical moves scroll the page; the arrows are only for mouse/keyboard (a thumb swipes, and the arrows cover the picture). */
.slider { touch-action: pan-y pinch-zoom; }
/* Phones and tablets (below 960 px) and every touch screen: no arrows. */
@media (max-width: 959px), (hover: none) and (pointer: coarse) { .slider-arrow { display: none; } }
.slider--side { background: linear-gradient(160deg, #8f2f27 0%, #3b1612 100%); }
@media (min-width: 960px) {
	.hero--split { grid-template-columns: calc((100% - var(--hero-gap) / 9) * 2 / 3) minmax(0, 1fr); }
}
/* Phones and tablets (mobile menu range): only the wide slider is shown, the two small ones on the right are hidden. */
@media (max-width: 959px) {
	.hero-side { display: none; }
}
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-media { position: absolute; inset: 0; }
/* The slider box stays 16:9 (the three sliders must line up), but the picture is never cropped: it is shown whole (contain) over a blurred, darkened copy of itself, so an older picture with text keeps all of its text and no plain bars show. 16:9 pictures fill the box exactly as before. */
.slide-media::before { content: ""; position: absolute; inset: -24px; background: var(--slide-bg, none) center / cover no-repeat; filter: blur(22px) brightness(0.7); }
.slide-media img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.slide-media .ph { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-start; justify-content: flex-end; padding: 8% 6%; color: var(--gold); opacity: 0.85; }
.slide-media .ph svg { width: clamp(80px, 22%, 160px); height: auto; stroke-width: 1; }
.slide-media .ph i { font-size: clamp(64px, 12vw, 120px) !important; opacity: 0.6; }
.slide-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(to top, rgba(10, 24, 16, 0.9), rgba(10, 24, 16, 0)); }
.slider--side .slide-scrim { background: linear-gradient(to top, rgba(30, 8, 6, 0.92), rgba(30, 8, 6, 0)); }
.slide-body {
	position: absolute; left: clamp(44px, 5vw, 60px); right: clamp(44px, 5vw, 60px);
	bottom: calc(clamp(14px, 2vw, 20px) + 30px);
	display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.slide .eyebrow { position: relative; z-index: 2; color: var(--gold); }
.slide-title { font-weight: 700; font-size: calc(clamp(20px, 2.6vw, 32px) * var(--fs, 1) * var(--hero-ts, 1)); line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.slider--side .slide-title { font-size: calc(clamp(18px, 1.7vw, 22px) * var(--fs, 1) * var(--hero-ts, 1)); line-height: 1.2; letter-spacing: -0.01em; }
.slide-title a { color: #fff; }
.slide-title a:hover { color: #fff; }
.slide-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* Dots: centered at the bottom of the slider. */
.slider-ui {
	position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(14px, 2vw, 20px);
	display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.slider-ui[hidden] { display: none; }
.slider-dots { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.slider-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: width 0.25s; }
.slider-dot::after { content: ""; position: absolute; inset: -10px -4px; }
.slider-dot.is-active { width: 28px; background: var(--gold); }
/* Arrows: transparent chevrons on both sides, vertically centered. */
.slider-arrow i { font-size: calc(30px * var(--fs, 1)); line-height: 1; }
.slider-arrow {
	position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
	width: 44px; height: 84px; padding: 0; border: 0; background: transparent; color: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0.75;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); transition: opacity 0.15s;
}
.slider-arrow:hover, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow--prev { left: 0; }
.slider-arrow--next { right: 0; }
.slider-arrow[hidden] { display: none; }
/* Pause button: small round button in the bottom-right corner (only exists when the slider rotates by itself). */
.slider-pause {
	position: absolute; z-index: 4; right: 10px; bottom: clamp(8px, 1.6vw, 14px); width: 28px; height: 28px; padding: 0;
	display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; cursor: pointer;
	color: #fff; background: rgba(0, 0, 0, 0.4); opacity: 0.8;
}
.slider-pause::after { content: ""; position: absolute; inset: -8px; }
.slider-pause:hover, .slider-pause:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.65); }
.slider-pause .i-play { display: none; }
.slider.is-paused .slider-pause .i-pause { display: none; }
.slider.is-paused .slider-pause .i-play { display: inline; }
.slider-arrow:focus-visible, .slider-dot:focus-visible, .slider-pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* "Reduce motion" setting: no fading between slides (autoplay is already off in theme.js). */
@media (prefers-reduced-motion: reduce) {
	.slide { transition: none; }
	.slider-dot { transition: none; }
}

/* Title hidden for this post (box "Ana sayfa slider" in the post editor): image only, whole slide still links to the post. */
.slide--notitle .slide-scrim { display: none; }
.slide--notitle .slide-body { position: static; }
.slide--notitle .slide-title a { font-size: 0; line-height: 0; }
@media (max-width: 599px) {
	.slider-arrow { width: 36px; height: 72px; }
	.slider-arrow svg { width: 26px; height: 26px; }
	.slider-arrow i { font-size: calc(24px * var(--fs, 1)); }
}
