/* =============================================================================
   FLASH BANNER - Sok Indirim Geri Sayim (FLASH-1)
   -----------------------------------------------------------------------------
   v3 (2026-06-01 - Erdem revize): "Aurora Premium" - Apple-grade hissi.
   - Tek satir head: icon disc + title + Bitmesine pill (sag uc)
   - Daha buyuk digit kartlari (66px / num 36px), nefes alan grid
   - Animasyonlu aurora gradient sweep layer
   - Seconds tick pulse (JS .num.is-tick toggle)
   - .is-critical (son 24 saat): yogun pulse + dramatik halka
   - Inline style yasak (memory: feedback_inline_css_js_yasak)
   ============================================================================ */

:root {
    --fb-bg-1: #1a0510;
    --fb-bg-2: #4a0a14;
    --fb-bg-3: #8b0a1e;
    --fb-accent: #ffd166;       /* altin */
    --fb-accent-soft: #ffb347;
    --fb-text: #ffffff;
    --fb-text-soft: rgba(255, 255, 255, 0.82);
    --fb-text-muted: rgba(255, 255, 255, 0.55);
    --fb-glass: rgba(255, 255, 255, 0.06);
    --fb-glass-border: rgba(255, 255, 255, 0.14);
    --fb-glass-strong-border: rgba(255, 209, 102, 0.4);
}

.flash-banner {
    --fb-radius: 18px;
    position: relative;
    margin: 0 0 20px;
    padding: 22px 24px 20px;
    border-radius: var(--fb-radius);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 209, 102, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(220, 38, 38, 0.5) 0%, transparent 60%),
        linear-gradient(135deg, var(--fb-bg-1) 0%, var(--fb-bg-2) 45%, var(--fb-bg-3) 100%);
    color: var(--fb-text);
    box-shadow:
        0 14px 36px -10px rgba(139, 10, 30, 0.6),
        0 0 0 1px rgba(255, 209, 102, 0.14),
        0 2px 0 0 rgba(255, 209, 102, 0.1) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.35) inset;
    overflow: hidden;
    isolation: isolate;
}

/* Ince ust altin cizgi - "premium kart" alt vurgusu */
.flash-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 209, 102, 0.7) 50%,
        transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* Sag-ust kose altin parlamasi - statik lens-flare */
.flash-banner::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(255, 209, 102, 0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(6px);
}

/* ========== AURORA - hareketli gradient sweep ========== */
.flash-banner__aurora {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(115deg,
            transparent 0%,
            rgba(255, 209, 102, 0.08) 25%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(255, 209, 102, 0.1) 60%,
            transparent 85%);
    background-size: 220% 100%;
    background-position: 0% 0%;
    mix-blend-mode: screen;
    animation: fb-aurora 9s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes fb-aurora {
    0%   { background-position: 110% 0%; }
    50%  { background-position: -10% 0%; }
    100% { background-position: 110% 0%; }
}

/* ========== HEAD (tek satir: icon + baslik + label) ========== */
.flash-banner__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.flash-banner__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
        linear-gradient(140deg, #ff5e3a 0%, #c91a2b 60%, #6b0a18 100%);
    border: 1px solid rgba(255, 209, 102, 0.45);
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.25),
        0 0 18px -2px rgba(255, 23, 68, 0.55),
        0 1px 0 0 rgba(255, 255, 255, 0.18) inset;
}

.flash-banner__icon .bi-fire {
    font-size: 19px;
    color: var(--fb-accent);
    text-shadow:
        0 0 12px rgba(255, 209, 102, 0.7),
        0 0 24px rgba(255, 179, 71, 0.4);
    animation: fb-flame 1.6s ease-in-out infinite;
}

@keyframes fb-flame {
    0%, 100% { transform: scale(1) rotate(-2deg); filter: brightness(1); }
    50%      { transform: scale(1.14) rotate(2deg); filter: brightness(1.18); }
}

.flash-banner__baslik {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.25px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #fff5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1 1 auto;
    min-width: 0;
}

.flash-banner__label {
    font-size: 10px;
    font-weight: 800;
    color: var(--fb-accent);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 209, 102, 0.42);
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.08);
    flex-shrink: 0;
    box-shadow: 0 0 12px -4px rgba(255, 209, 102, 0.3);
}

/* ========== COUNTDOWN ========== */
.flash-banner__countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.flash-banner__digits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 380px;
    font-variant-numeric: tabular-nums;
}

.flash-d {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 6px 10px;
    min-height: 76px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(0, 0, 0, 0.28) 100%);
    border: 1px solid var(--fb-glass-border);
    border-radius: 12px;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.1) inset,
        0 8px 18px -8px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}

/* Ust hafif highlight (cam yansimasi) */
.flash-d::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}

/* Ortadan gecen flip-clock cizgisi - mekanik saat hissi */
.flash-d::after {
    content: '';
    position: absolute;
    top: 56%;
    left: 8px; right: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
}

.flash-d .num {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.55),
        0 0 14px rgba(255, 209, 102, 0.12);
    letter-spacing: -0.5px;
    font-feature-settings: "tnum", "lnum";
    display: inline-block;
    transform-origin: center;
    transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flash-d .num.is-tick {
    transform: scale(1.12);
}

.flash-d small {
    font-size: 9px;
    font-weight: 700;
    color: var(--fb-text-soft);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-top: 8px;
}

/* Saniyeye ozel: hep canli - hafif altin alt-gluk */
.flash-d[data-unit="ss"] {
    border-color: rgba(255, 209, 102, 0.28);
    box-shadow:
        0 1px 0 0 rgba(255, 209, 102, 0.16) inset,
        0 8px 18px -8px rgba(255, 23, 68, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.15);
}

.flash-d[data-unit="ss"] .num {
    background: linear-gradient(180deg, #ffffff 0%, #ffe9b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== CRITICAL (son 24 saat) ========== */
.flash-banner.is-critical {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 209, 102, 0.24) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(220, 38, 38, 0.6) 0%, transparent 55%),
        linear-gradient(135deg, #1a0510 0%, #6b0a18 50%, #c91a2b 100%);
    box-shadow:
        0 0 0 1px rgba(255, 209, 102, 0.28),
        0 16px 40px -8px rgba(201, 26, 43, 0.65),
        0 0 60px -10px rgba(220, 38, 38, 0.5),
        0 2px 0 0 rgba(255, 209, 102, 0.18) inset;
    animation: fb-critical-pulse 2.4s ease-in-out infinite;
}

@keyframes fb-critical-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 209, 102, 0.28),
            0 16px 40px -8px rgba(201, 26, 43, 0.65),
            0 0 60px -10px rgba(220, 38, 38, 0.5),
            0 2px 0 0 rgba(255, 209, 102, 0.18) inset;
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 209, 102, 0.5),
            0 16px 48px -6px rgba(201, 26, 43, 0.85),
            0 0 80px -8px rgba(220, 38, 38, 0.75),
            0 2px 0 0 rgba(255, 209, 102, 0.28) inset;
    }
}

.flash-banner.is-critical .flash-banner__icon .bi-fire {
    animation: fb-flame 1s ease-in-out infinite;
}

.flash-banner.is-critical .flash-d {
    border-color: var(--fb-glass-strong-border);
}

/* ========== MOBIL ========== */
@media (max-width: 560px) {
    .flash-banner {
        padding: 18px 16px 16px;
        margin-bottom: 16px;
    }
    .flash-banner__head {
        gap: 10px;
        margin-bottom: 14px;
    }
    .flash-banner__icon {
        width: 32px;
        height: 32px;
    }
    .flash-banner__icon .bi-fire {
        font-size: 16px;
    }
    .flash-banner__baslik {
        font-size: 15px;
    }
    .flash-banner__label {
        font-size: 9px;
        letter-spacing: 1.4px;
        padding: 4px 9px;
    }
    .flash-banner__digits {
        gap: 6px;
        max-width: none;
    }
    .flash-d {
        padding: 10px 4px 8px;
        min-height: 64px;
        border-radius: 10px;
    }
    .flash-d .num {
        font-size: 25px;
    }
    .flash-d small {
        font-size: 8px;
        letter-spacing: 1.1px;
        margin-top: 6px;
    }
}

/* ========== KART ROZETI (urun listesi) - PREMIUM "patlayici" tasarim ==========
   - Hafif egri (rotate -3deg) -> "elle yapistirildi" hissi, kategori kartinda
     hareket-statik kontrasti yaratir, goz miknatisi.
   - Altin border + simsek ikonu + canli pulse + ince glow halka.
   - Hover yok (kart partial - kartin kendisi hover trigger'i).                 */
.flash-rozet {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 8px;
    background:
        linear-gradient(135deg, #ff1744 0%, #c91a2b 55%, #8b0a1e 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 209, 102, 0.85);
    border-radius: 6px;
    transform: rotate(-3deg);
    transform-origin: center;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.08),
        0 4px 12px -2px rgba(255, 23, 68, 0.55),
        0 0 16px -4px rgba(255, 209, 102, 0.45),
        0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.2) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    animation: fb-rozet-pulse 1.8s ease-in-out infinite;
    z-index: 2;
}

/* Disarida hafif glow halkasi - pulse ile birlikte nefes alir */
.flash-rozet::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 8px;
    background: radial-gradient(ellipse, rgba(255, 23, 68, 0.4) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    animation: fb-rozet-glow 1.8s ease-in-out infinite;
    filter: blur(4px);
}

@keyframes fb-rozet-pulse {
    0%, 100% {
        transform: rotate(-3deg) scale(1);
        box-shadow:
            0 0 0 2px rgba(0, 0, 0, 0.08),
            0 4px 12px -2px rgba(255, 23, 68, 0.55),
            0 0 16px -4px rgba(255, 209, 102, 0.45),
            0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
            0 -1px 0 0 rgba(0, 0, 0, 0.2) inset;
    }
    50% {
        transform: rotate(-3deg) scale(1.06);
        box-shadow:
            0 0 0 2px rgba(0, 0, 0, 0.08),
            0 6px 18px -2px rgba(255, 23, 68, 0.75),
            0 0 28px -2px rgba(255, 209, 102, 0.65),
            0 1px 0 0 rgba(255, 255, 255, 0.35) inset,
            0 -1px 0 0 rgba(0, 0, 0, 0.2) inset;
    }
}

@keyframes fb-rozet-glow {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.9; }
}

.flash-rozet__bolt {
    font-size: 13px;
    color: var(--fb-accent);
    text-shadow:
        0 0 6px rgba(255, 209, 102, 0.85),
        0 0 12px rgba(255, 179, 71, 0.5);
    animation: fb-bolt-flash 0.9s ease-in-out infinite;
}

@keyframes fb-bolt-flash {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    50%      { transform: scale(1.18) rotate(-6deg); filter: brightness(1.3); }
}

.flash-rozet__txt {
    /* Hafif gold-to-white gradient text - sok kelimesi parildasin */
    background: linear-gradient(180deg, #ffffff 0%, #fff5e1 60%, #ffd166 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .flash-banner__aurora,
    .flash-banner__icon .bi-fire,
    .flash-banner.is-critical,
    .flash-rozet,
    .flash-rozet::before,
    .flash-rozet__bolt {
        animation: none !important;
    }
    .flash-d .num {
        transition: none !important;
    }
}
