/*
 * Slider HA 3 — Hero Full-Screen Slider
 * v2 final: thumbs inside hero, CTA + socials below 2nd thumb
 * Hakan Aydemir · Rafue.com
 */

.sha3-wrap *,
.sha3-wrap *::before,
.sha3-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ═══════════════════════════════
   WRAP
═══════════════════════════════ */
.sha3-wrap {
    --accent:     #e8173a;
    --accent-dim: rgba(232,23,58,0.35);
    position: relative;
    width: 100%;
    background: #050608;
    overflow: hidden;
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.sha3-hero {
    position: relative;
    width: 100%;
    /* height ve min-height dinamik CSS'den geliyor — template inline <style> */
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ── BG slides ── */
.sha3-bg-track {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.sha3-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(.4,0,.2,1);
    will-change: opacity;
}
.sha3-bg-slide.is-active { opacity: 1; }

.sha3-bg-slide video,
.sha3-bg-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transform: scale(1);
    transition: transform 10s ease;
    backface-visibility: hidden;
}
.sha3-bg-slide.is-active video,
.sha3-bg-slide.is-active img {
    transform: scale(1.06);
}

/* ── Overlay ── */
.sha3-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
    background:
        linear-gradient(to right, rgba(0,0,0,.80) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,.08) 100%),
        linear-gradient(to top,   rgba(0,0,0,.90) 0%, rgba(0,0,0,.35) 38%, transparent 68%);
}

/* ── Vertical Ruler ── */
.sha3-ruler { display: none; } .sha3-ruler-x {
    position: absolute;
    left: 0; top: 0;
    width: 32px;
    height: 100%;
    z-index: 100;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.sha3-ruler-tick {
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.25);
    font-size: 8px;
    color: rgba(255,255,255,0.5);
    padding-left: 2px;
    line-height: 1;
    font-family: monospace;
}

/* ── Horizontal Ruler ── */
.sha3-ruler-h { display: none; } .sha3-ruler-h-x {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 32px;
    z-index: 100;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.sha3-ruler-tick-h {
    position: absolute;
    top: 0;
    height: 100%;
    border-left: 1px solid rgba(255,255,255,0.25);
    font-size: 8px;
    color: rgba(255,255,255,0.5);
    padding-top: 2px;
    padding-left: 2px;
    line-height: 1;
    white-space: nowrap;
    font-family: monospace;
}

/* ── Content ── */
.sha3-content {
    position: relative;
    z-index: 5;
    padding: 120px 7vw 0 calc(50% - 760px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    width: 100%;
}

.sha3-tagline {
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 16px;
}

.sha3-title {
    font-size: clamp(1.2rem, 2.2vw, 2.6rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: #fff;
    min-height: 2.3em;
}

/* Typewriter cursor */
.sha3-cursor {
    display: inline-block;
    width: 4px;
    height: .82em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink .75s steps(1) infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Red divider — kaldırıldı */
.sha3-divider { display: none; }

/* ── Segment track above thumbs ── */
.sha3-track-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1520px; /* 3×500px thumb + 2×10px gap */
    z-index: 7;
    display: flex;
    gap: 10px;
    top: calc(400px - 14px);
}
.sha3-track-seg {
    flex: 0 0 500px;
    height: 3px;
    background: rgba(255,255,255,0.30);
    transition: background .35s;
    border-radius: 2px;
}
.sha3-track-seg.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-dim);
}

/* ── Thumbnails — inside hero at bottom ── */
.sha3-thumbs {
    position: absolute;
    top: 400px;
    left: 50%;
    transform: translateX(-50%);
    width: 1520px; /* 3×500px + 2×10px gap */
    z-index: 6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 0;
}

.sha3-thumb {
    position: relative;
    flex: 0 0 500px;
    width: 500px;
    height: 190px;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    opacity: 1;
    background: transparent;
    transition: transform .3s;
}
.sha3-thumb:hover { transform: translateY(-2px); }
.sha3-thumb.active {
    opacity: 1;
    transform: translateY(-3px);
}

.sha3-thumb img,
.sha3-thumb video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Fotoğrafsız: saydam cam placeholder ── */
.sha3-thumb-placeholder {
    position: absolute;
    inset: 0;
    /* renk ve blur dinamik CSS'den geliyor */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    z-index: 2;
}

/* ── Fotoğraflı: numara+başlık overlay (alt kısım) ── */
.sha3-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    /* renk ve blur dinamik CSS'den geliyor */
    z-index: 2;
}

/* ── Kırmızı numara yuvarlak ── */
.sha3-thumb-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent, #e8173a);
    color: #fff;
    font-size: .80rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(232,23,58,.45);
    line-height: 1;
    font-family: inherit;
}

/* ── Slide başlığı ── */
.sha3-thumb-title {
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .02em;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Aktif thumbnail: numara biraz büyür */
.sha3-thumb.active .sha3-thumb-num {
    width: 30px; height: 30px;
    font-size: .82rem;
    box-shadow: 0 3px 14px rgba(232,23,58,.65);
}
.sha3-thumb.active .sha3-thumb-title {
    color: #fff;
}

/* ── CTA + Sosyal — 2. thumbnail'ın altında absolute ── */
/* Thumbs: top:400, left:50%-760px, thumb genişliği 500px, gap 10px
   2. thumb başlangıcı: left + 510px
   2. thumb altı: top + 190px = 590px */
.sha3-cta-wrap {
    position: absolute;
    /* 2. thumb sol kenarı: calc(50% - 760px + 510px) = calc(50% - 250px) */
    /* 2. thumb alt kenarı: 400px + 190px + 24px gap = 614px               */
    left: calc(50% - 250px);
    top: 614px; /* thumb alt kenarı: 400+190=590, +24px gap */
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.sha3-btn1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 500px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 22px 0;
    white-space: nowrap;
    box-shadow: 0 6px 28px rgba(232,23,58,.45);
    transition: filter .2s, transform .2s;
}
.sha3-btn1:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}
.sha3-btn1 svg { display: none; }

/* Sosyal medya — btn1'in altında, eşit aralıklı, 500px boyunca */
.sha3-socials {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 500px;
    margin-top: 48px;
}
.sha3-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.85;
    transition: opacity .2s, transform .2s;
    text-decoration: none;
}
.sha3-socials a:hover {
    opacity: 1;
    transform: translateY(-3px);
}
.sha3-socials svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* hint kaldırıldı */

/* ══════════════════════════════
   BTN2 — vertical right edge
══════════════════════════════ */
.sha3-btn2-wrap {
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    z-index: 20;
}
.sha3-btn2 {
    display: flex;
    align-items: center;
    gap: 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 20px 12px;
    cursor: pointer;
    border: none;
    transition: padding .2s;
}
.sha3-btn2:hover { padding: 26px 12px; }
.sha3-btn2 svg { width: 9px; height: 9px; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */

/* ── Tablet (1024px altı) ── */
@media (max-width: 1024px) {
    .sha3-btn2-wrap { display: none; }
    .sha3-cta-hero  { display: none; }
}

/* ══════════════════════════════════════════════════
   MOBİL (768px altı) — Layout tamamen yeniden kurulur
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Wrap: overflow gizle, scroll yok */
    .sha3-wrap {
        overflow: hidden;
    }

    /* Hero: flex column, yükseklik auto — dinamik CSS override */
    .sha3-hero {
        height: auto !important;
        min-height: 100svh !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: visible;
    }

    /* İçerik: sol hizalı, üstte */
    .sha3-content {
        position: relative;
        z-index: 5;
        padding: 72px 20px 0 20px !important;
        align-items: flex-start;
        text-align: left;
        height: auto;
        min-height: 0;
        flex: 0 0 auto;
    }

    /* Tagline */
    .sha3-tagline {
        font-size: 0.62rem;
        letter-spacing: 0.22em;
        margin-bottom: 10px;
    }

    /* Başlık — mobilde responsive clamp */
    .sha3-title {
        font-size: clamp(1.6rem, 7.5vw, 2.6rem) !important;
        min-height: 0;
        line-height: 1.15;
    }

    /* Segment track — thumbnail'ların üstünde, tüm genişlik */
    .sha3-track-line {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: calc(100% - 40px) !important;
        margin: 24px 20px 0 20px;
        z-index: 7;
        display: flex;
        gap: 8px;
    }
    .sha3-track-seg {
        flex: 1 1 0 !important;
        height: 2px;
    }

    /* Thumbnail rail — yatay scroll */
    .sha3-thumbs {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        padding: 8px 20px 0 20px;
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 6;
        margin-top: 6px;
    }
    .sha3-thumbs::-webkit-scrollbar { display: none; }

    /* Thumbnail kartı */
    .sha3-thumb {
        flex: 0 0 160px !important;
        width: 160px !important;
        height: 110px !important;
        border-radius: 8px;
    }

    /* Thumbnail yazılar */
    .sha3-thumb-title { font-size: .70rem; }
    .sha3-thumb-num   { width: 22px; height: 22px; font-size: .68rem; }

    /* CTA + Sosyal — thumbnail altında, normal akışta */
    .sha3-cta-wrap {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: calc(100% - 40px) !important;
        margin: 20px 20px 28px 20px;
        align-items: stretch;
        z-index: 9;
    }

    .sha3-btn1 {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        font-size: 13px;
        justify-content: center;
    }

    .sha3-socials {
        width: 100% !important;
        margin-top: 20px;
        justify-content: space-around;
    }

    /* Overlay — sadece üst yarı, mobilde çok karartmaz */
    .sha3-overlay {
        background:
            linear-gradient(to bottom, rgba(0,0,0,.75) 0%, rgba(0,0,0,.40) 55%, rgba(0,0,0,.15) 100%);
    }

    /* Btn2 gizle */
    .sha3-btn2-wrap { display: none; }
    .sha3-ruler, .sha3-ruler-h { display: none; }
}

/* ── Küçük mobil (480px altı) ── */
@media (max-width: 480px) {
    .sha3-content { padding: 64px 16px 0 16px !important; }

    .sha3-title {
        font-size: clamp(1.4rem, 8vw, 2rem) !important;
    }

    .sha3-track-line {
        width: calc(100% - 32px) !important;
        margin: 20px 16px 0 16px;
        gap: 6px;
    }

    .sha3-thumbs {
        padding: 8px 16px 0 16px;
        gap: 8px;
    }

    .sha3-thumb {
        flex: 0 0 140px !important;
        width: 140px !important;
        height: 96px !important;
        border-radius: 6px;
    }

    .sha3-cta-wrap {
        width: calc(100% - 32px) !important;
        margin: 16px 16px 24px 16px;
    }

    .sha3-thumb-num   { width: 20px; height: 20px; font-size: .62rem; }
    .sha3-thumb-title { font-size: .65rem; }
}

/* ── Çok küçük (360px altı) ── */
@media (max-width: 360px) {
    .sha3-thumb {
        flex: 0 0 120px !important;
        width: 120px !important;
        height: 84px !important;
    }
    .sha3-title { font-size: clamp(1.2rem, 8.5vw, 1.7rem) !important; }
}

