﻿.app-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
    min-height: 100svh;
    min-height: 100dvh;
    padding:
        max(24px, env(safe-area-inset-top, 0px))
        max(24px, env(safe-area-inset-right, 0px))
        max(24px, env(safe-area-inset-bottom, 0px))
        max(24px, env(safe-area-inset-left, 0px));
    background: #b00000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 280ms ease,
        visibility 280ms ease;
    animation: appSplashFailsafe 0s linear 3600ms forwards;
}

html.app-splash-active .app-splash,
.app-splash.is-visible,
.app-splash.is-hiding {
    visibility: visible;
}

html.app-splash-active .app-splash,
.app-splash.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.app-splash.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.app-splash.is-intro-pending .app-splash__logo-stage {
    visibility: hidden;
}

.app-splash.is-intro-pending .app-splash__emblem,
.app-splash.is-intro-pending .site-logo-white {
    opacity: 0;
}

.app-splash.is-intro-pending .app-splash__subtitle-reveal,
.app-splash.is-intro-pending .splash-brand-subtitle-reveal {
    opacity: 0;
    transform: translateY(110%);
}

.app-splash__content {
    position: relative;
    width: 100%;
    max-width: 26.875rem;
    min-height: 100%;
    margin: 0 auto;
}

.app-splash__logo-stage {
    position: absolute;
    top: 21.4375rem;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(calc(100% - 2rem), 17.5rem);
    min-width: 14.9375rem;
    transform: translateX(-50%);
    transform-origin: center center;
    will-change: transform, opacity;
}

.app-splash__logo-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.290625rem;
    width: 12.2175rem;
    height: 4.828125rem;
}

.app-splash__emblem {
    width: 3.6275rem;
    height: 3.82rem;
    aspect-ratio: 0.95;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transform-origin: center center;
    will-change: transform, opacity;
}

.app-splash__text-reveal {
    width: 0;
    height: 3.0475rem;
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
    align-items: flex-end;
    will-change: width;
}

.app-splash__logotype {
    width: 8.2775rem;
    height: 3.0475rem;
    aspect-ratio: 2.71;
    object-fit: contain;
    display: block;
    max-width: none;
    will-change: transform;
}

.app-splash__subtitle {
    width: 100%;
    max-width: 17.5rem;
    min-height: 0.875rem;
    margin: 3.375rem 0 0;
    overflow: hidden;
    text-align: center;
}

.app-splash__subtitle-reveal,
.app-splash .splash-brand-subtitle-reveal {
    display: inline-block;
    white-space: nowrap;
    color: #ffffff;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 0.875rem;
    letter-spacing: -0.01em;
    will-change: transform, opacity;
}

.app-splash.is-static-ready .app-splash__text-reveal,
.app-splash.is-static-ready .splash-logo-text-reveal {
    width: 8.2775rem;
}

.app-splash.is-static-ready .app-splash__logotype,
.app-splash.is-static-ready .splash-logo-text {
    transform: translateX(0);
}

.app-splash.is-static-ready .app-splash__subtitle-reveal,
.app-splash.is-static-ready .splash-brand-subtitle-reveal {
    transform: translateY(0);
    opacity: 1;
}

.app-splash.is-static-ready .app-splash__emblem,
.app-splash.is-static-ready .site-logo-white {
    transform: none;
    opacity: 1;
}

/* PATCH-216: animasyonlu SVG açılış. SVG'nin kendi zemin dikdörtgeni çıkarıldı; aynı radyal
   gradyan tam ekrana buradan verilir (dikey ekranda bant kenarı görünmesin). Üst/alt kenar
   #b00000'a yumuşar: RN kabuğu splash süresince durum çubuğu (Android'de alt çubuk da) alanını
   native #b00000 boyuyor, theme-color da #b00000 — kenar bordo kalsaydı dikiş görünürdü.
   CSS failsafe'i animasyon süresinin (7,3 sn) + JS failsafe'inin (2,5 sn) ardına alınır. */
.app-splash--animated {
    /* min-height:100dvh + padding ekrandan taşmasın (alt kenar #b00000 ekranın içinde kalsın). */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(to bottom, #b00000 0, rgba(176, 0, 0, 0) 4.5rem, rgba(176, 0, 0, 0) calc(100% - 4.5rem), #b00000 100%),
        radial-gradient(120% 80% at 50% 46%, #b90a20 0%, #a80217 45%, #980012 100%);
    animation-delay: 10500ms;
    /* Dokununca geç (click): iOS Safari sıradan div'de click'i ancak cursor:pointer ile güvenle üretir;
       Android'de tıklanabilir öğeye dokunuşta çıkan tam ekran vurgu parlaması ve uzun basışta seçim olmasın. */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.app-splash--animated picture {
    display: block;
    width: 100%;
    max-width: 35rem;
}

.app-splash--animated .app-splash__animation {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 237.5 / 134;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

@keyframes appSplashFailsafe {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-splash {
        transition: none;
    }
}
