/* Android App Install Banner */
/* Yukaridan asagi kayarak gozuken, kapatilabilir mini banner */

.app-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Sayfadaki sticky ogelerin (z-index ~90) ustunde ama tum modal/backdrop'larin
       (lp-modal-backdrop 1050, mp-modal-backdrop 2600) ALTINDA kalmali — aksi halde
       banner acik modallerin ustune biniyor (T-20260804 mobil "Detayli foto iste" raporu). */
    z-index: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 12px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    display: none;
}

.app-install-banner.is-visible {
    display: block;
    transform: translateY(0);
}

.app-install-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

.app-install-banner-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

    .app-install-banner-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.app-install-banner-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
}

.app-install-banner-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-install-banner-subtitle {
    font-size: 0.72rem;
    line-height: 1.2;
    margin: 1px 0 0 0;
    opacity: 0.88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-install-banner-cta {
    flex: 0 0 auto;
    background: #ffffff;
    color: #5a4fcf;
    border: 0;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

    .app-install-banner-cta:hover,
    .app-install-banner-cta:focus {
        background: #f1f3ff;
        color: #4338ca;
        text-decoration: none;
    }

    .app-install-banner-cta:active {
        transform: scale(0.97);
    }

.app-install-banner-close {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: #ffffff;
    opacity: 0.85;
    padding: 6px 6px;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

    .app-install-banner-close:hover,
    .app-install-banner-close:focus {
        opacity: 1;
    }

    .app-install-banner-close:active {
        transform: scale(0.92);
    }

/* Banner gorundugunde body'yi asagi it ki navbar gizlenmesin */
body.has-app-install-banner {
    padding-top: 56px;
}

/* Dark Theme */
.theme-dark .app-install-banner {
    background: linear-gradient(135deg, #4a5bb8 0%, #5a3b8a 100%);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.theme-dark .app-install-banner-icon {
    background: #e9ecf5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.theme-dark .app-install-banner-cta {
    background: #e9ecf5;
    color: #3b2e8a;
}

    .theme-dark .app-install-banner-cta:hover,
    .theme-dark .app-install-banner-cta:focus {
        background: #ffffff;
        color: #3b2e8a;
    }

/* Tablet ve uzeri ekranlarda gizle - sadece mobil icin */
@media (min-width: 768px) {
    .app-install-banner {
        display: none !important;
    }

    body.has-app-install-banner {
        padding-top: 0;
    }
}

/* Cok kucuk ekranlarda sikistir */
@media (max-width: 360px) {
    .app-install-banner-inner {
        gap: 8px;
    }

    .app-install-banner-icon {
        width: 34px;
        height: 34px;
    }

    .app-install-banner-cta {
        padding: 5px 12px;
        font-size: 0.74rem;
    }

    .app-install-banner-title {
        font-size: 0.8rem;
    }

    .app-install-banner-subtitle {
        font-size: 0.68rem;
    }
}
