/* ============================================================
   Cevapla Kazan Smart App Banner (HeyKidsApp.Web'den taşındı)
   Sayfanın üstüne yapışık, uygulamayı tanıtan bant.
   Mobilde cihazın mağazası, masaüstünde iki mağaza düğmesi.
   ============================================================ */

:root {
    --ck-smart-banner-height: calc(68px + env(safe-area-inset-top, 0px));
}

.ck-smart-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040; /* menünün üstünde, Bootstrap modallarının (1050) altında */
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--ck-smart-banner-height);
    padding: env(safe-area-inset-top, 0px) 12px 0 4px; /* iOS çentik / güvenli alan */
    background-color: #2b312e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ck-smart-banner[hidden] {
    display: none;
}

.ck-smart-banner.ck-smart-banner--visible {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ck-smart-banner {
        transition: none;
    }
}

/* Banner görünürken sayfa içeriği aşağı itilir (menü sabit değil, akışta). */
html.ck-smart-banner-visible body {
    padding-top: var(--ck-smart-banner-height);
}

.ck-smart-banner__close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; /* erişilebilir dokunma alanı */
    min-height: 44px;
    background: none;
    border: none;
    padding: 0;
    color: #e3ebe7;
    cursor: pointer;
}

.ck-smart-banner__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.ck-smart-banner__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ck-smart-banner__title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ck-smart-banner__subtitle {
    font-size: 12px;
    line-height: 1.25;
    color: #e3ebe7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sitenin ana düğme rengi; #34bdd3 üzerinde beyaz yazı okunmuyor, koyu yazı kullanılıyor (ck.css ile aynı). */
.ck-smart-banner__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background-color: #34bdd3;
    color: #1f2523;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.ck-smart-banner__cta:hover,
.ck-smart-banner__cta:focus-visible {
    background-color: #2faec2;
    color: #1f2523;
    text-decoration: none;
}

/* --- Masaüstü: iki mağaza düğmesi ---------------------------- */

.ck-smart-banner__stores {
    display: none;
    flex: 0 0 auto;
    gap: 10px;
}

.ck-smart-banner--desktop {
    /* İçerik sitenin 1140px'lik container'ıyla hizalanır. */
    padding-left: max(4px, calc((100% - 1140px) / 2));
    padding-right: max(12px, calc((100% - 1140px) / 2));
}

.ck-smart-banner--desktop .ck-smart-banner__cta {
    display: none;
}

.ck-smart-banner--desktop .ck-smart-banner__stores {
    display: flex;
}

.ck-smart-banner__store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #1f2523;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease;
}

.ck-smart-banner__store[hidden] {
    display: none;
}

.ck-smart-banner__store:hover,
.ck-smart-banner__store:focus-visible {
    border-color: #34bdd3;
    color: #ffffff;
    text-decoration: none;
}
