/**
 * Ana sayfa — Tam ekran sinematik hero + alt dock menü
 */

/* Arama overlay — varsayılan gizli */
.site-page--home .searching {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(15, 40, 53, 0.94);
    backdrop-filter: blur(16px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-page--home .searching.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

/* ========== Cinematic hero ========== */
.hero-cinematic {
    position: relative;
    width: 100%;
    min-height: calc(100svh - var(--chrome-active-h, var(--chrome-slot-h, 142px)));
    min-height: calc(100vh - var(--chrome-active-h, var(--chrome-slot-h, 142px)));
    height: calc(100svh - var(--chrome-active-h, var(--chrome-slot-h, 142px)));
    height: calc(100vh - var(--chrome-active-h, var(--chrome-slot-h, 142px)));
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.hero-cinematic__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-cinematic__slideshow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-maroon-dark) 50%, var(--brand-navy) 100%);
    background-size: 200% 200%;
    animation: heroGradientShift 18s ease infinite;
}

@keyframes heroGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-cinematic__slideshow .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1);
}

.hero-cinematic__slideshow .hero-slide.active {
    opacity: 1;
    animation: heroKenBurns 7s ease-out forwards;
}

@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-cinematic__gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(15, 40, 53, 0.92) 0%, rgba(15, 40, 53, 0.55) 42%, rgba(26, 111, 163, 0.35) 100%),
        linear-gradient(0deg, rgba(15, 40, 53, 0.85) 0%, transparent 38%),
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(110, 197, 240, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.hero-cinematic__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-cinematic__inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-cinematic__container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 1rem;
}

.hero-cinematic__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

/* Metin */
.hero-cinematic__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.hero-cinematic__badge {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    background: rgba(110, 197, 240, 0.2);
    border: 1px solid rgba(110, 197, 240, 0.45);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-gold-light);
}

.hero-cinematic__sep {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-cinematic__tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
}

.hero-cinematic__title {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-cinematic__title-line {
    display: block;
}

.hero-cinematic__title-line--accent {
    background: linear-gradient(90deg, var(--brand-gold-light) 0%, var(--brand-gold) 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-cinematic__lead {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 28rem;
    margin: 0 0 1.5rem;
}

.hero-cinematic__lead-primary {
    display: block;
    font-size: clamp(1.05rem, 2.1vw, 1.3rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cinematic__lead-secondary {
    display: block;
    font-size: clamp(0.875rem, 1.55vw, 1rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.015em;
    color: rgba(255, 255, 255, 0.62);
    padding-left: 0.85rem;
    border-left: 2px solid rgba(212, 168, 75, 0.55);
}

.hero-cinematic__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.hero-chip--link {
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.hero-chip--link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-gold);
    color: #fff;
}

.hero-chip i {
    color: var(--brand-gold);
}

.hero-chip--live {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.12);
}

.hero-chip__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: heroPulse 2s ease infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* CTA kartları */
.hero-cinematic__cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s, background 0.25s;
}

.hero-card:hover {
    transform: translateX(6px);
    border-color: rgba(110, 197, 240, 0.5);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-card--primary {
    background: linear-gradient(135deg, rgba(43, 143, 199, 0.85) 0%, rgba(26, 111, 163, 0.9) 100%);
    border-color: rgba(110, 197, 240, 0.4);
}

.hero-card__glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(110, 197, 240, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-card__icon {
    grid-row: 1 / 3;
    align-self: center;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--brand-gold-light);
}

.hero-card--primary .hero-card__icon {
    background: rgba(110, 197, 240, 0.25);
}

.hero-card__label {
    font-weight: 700;
    font-size: 1rem;
    align-self: end;
}

.hero-card__desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    grid-column: 2;
}

.hero-card__arrow {
    grid-row: 1 / 3;
    align-self: center;
    opacity: 0.5;
    transition: transform 0.25s, opacity 0.25s;
}

.hero-card:hover .hero-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Scroll göstergesi */
.hero-cinematic__scroll {
    position: absolute;
    bottom: calc(72px + 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroBounce 2.5s ease infinite;
}

.hero-cinematic__scroll-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.hero-cinematic__scroll i {
    font-size: 0.85rem;
    opacity: 0.9;
}

@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.hero-cinematic__slides {
    position: absolute;
    bottom: 78px;
    right: 1.5rem;
    display: flex;
    gap: 0.4rem;
    z-index: 15;
}

.hero-cinematic__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-cinematic__dot.is-active {
    background: var(--brand-gold);
    transform: scale(1.25);
}

/* ========== Hero dock (alt menü) ========== */
.hero-dock {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 0 0 env(safe-area-inset-bottom, 0);
}

.hero-dock__bar {
    display: flex;
    align-items: stretch;
    min-height: 56px;
    background: rgba(15, 40, 53, 0.82);
    border-top: 1px solid rgba(110, 197, 240, 0.35);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

.hero-dock__toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
    background: var(--brand-maroon);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
}

.hero-dock__scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.hero-dock__scroll::-webkit-scrollbar {
    display: none;
}

.hero-dock__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: min-content;
}

.hero-dock__menu > li {
    position: relative;
    flex-shrink: 0;
}

.hero-dock__menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 1rem;
    height: 56px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    border-top: 3px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.hero-dock__menu > li > a:hover,
.hero-dock__menu > li.is-open > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-top-color: var(--brand-gold);
}

.hero-dock__menu > li > a.is-active {
    color: var(--brand-gold-light);
    border-top-color: var(--brand-gold);
}

.hero-dock__menu > li > a i {
    font-size: 0.55rem;
    opacity: 0.6;
}

.hero-dock__sub {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(15, 40, 53, 0.96);
    border: 1px solid rgba(110, 197, 240, 0.3);
    border-radius: 12px 12px 0 0;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.3);
}

.hero-dock__menu > li.is-open > .hero-dock__sub {
    display: block;
}

.hero-dock__sub a {
    display: block;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.15s;
}

.hero-dock__sub a:hover {
    background: rgba(110, 197, 240, 0.15);
    color: #fff;
}

.hero-dock__tools {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-dock__search {
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.hero-dock__search:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-gold-light);
}

.hero-dock__cta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1.15rem;
    background: linear-gradient(135deg, var(--brand-gold) 0%, #a8861f 100%);
    color: var(--brand-navy-dark) !important;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s;
}

.hero-dock__cta:hover {
    filter: brightness(1.08);
    color: var(--brand-navy-dark) !important;
}

/* Giriş animasyonu */
@media (prefers-reduced-motion: no-preference) {
    .hero-cinematic__copy > * {
        animation: heroFadeUp 0.8s ease backwards;
    }
    .hero-cinematic__eyebrow { animation-delay: 0.1s; }
    .hero-cinematic__title { animation-delay: 0.2s; }
    .hero-cinematic__lead { animation-delay: 0.35s; }
    .hero-cinematic__chips { animation-delay: 0.45s; }
    .hero-card { animation: heroFadeUp 0.7s ease backwards; }
    .hero-card:nth-child(1) { animation-delay: 0.3s; }
    .hero-card:nth-child(2) { animation-delay: 0.4s; }
    .hero-card:nth-child(3) { animation-delay: 0.5s; }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .hero-cinematic__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-cinematic__cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-card {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }

    .hero-card--primary {
        flex: 1 1 100%;
    }

    .hero-cinematic__scroll {
        bottom: calc(64px + 1rem);
    }

    .hero-dock__toggle {
        display: flex;
    }

    .hero-dock__scroll {
        display: none;
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        max-height: 50vh;
        overflow-y: auto;
        background: rgba(15, 40, 53, 0.98);
        border-top: 1px solid rgba(110, 197, 240, 0.3);
        mask-image: none;
    }

    .hero-dock__scroll.is-open {
        display: block;
    }

    .hero-dock__menu {
        flex-direction: column;
        width: 100%;
    }

    .hero-dock__menu > li > a {
        height: auto;
        padding: 0.9rem 1.25rem;
        border-top: none;
        border-left: 3px solid transparent;
    }

    .hero-dock__menu > li > a.is-active,
    .hero-dock__menu > li > a:hover {
        border-left-color: var(--brand-gold);
    }

    .hero-dock__sub {
        position: static;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
    }

    .hero-dock__bar {
        flex-wrap: wrap;
        position: relative;
    }

    .hero-dock__tools {
        margin-left: auto;
    }

    .hero-cinematic__slides {
        bottom: 70px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 575px) {
    .hero-cinematic__inner {
        padding-top: calc(var(--chrome-height, 80px) + 0.25rem);
    }

    .hero-card {
        flex: 1 1 100%;
    }

    .hero-cinematic__title {
        font-size: 2.1rem;
    }

    .hero-dock__cta span {
        display: none;
    }

    .hero-dock__cta {
        padding: 0 0.85rem;
    }
}
