/* NameRiva — شريط تحميل برنامج الأيجنت (بنر أعلى الهيدر)
   Path: frontend/assets/css/download-banner.css */

.dl-strip {
    width: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 45%, #06b6d4 100%);
    color: #ffffff;
    padding: 7px 14px;
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    z-index: 1040;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
}

.dl-strip--inline {
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(79, 70, 229, .18);
}

.dl-strip-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.dl-strip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    flex: 0 0 auto;
}

.dl-strip-logo {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, .18);
    flex: 0 0 auto;
}

.dl-strip-text {
    font-weight: 600;
    letter-spacing: 0;
}

.dl-strip-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.dl-strip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 4px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #4338ca !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.dl-strip-btn:hover,
.dl-strip-btn:focus {
    background: #eef2ff;
    color: #3730a3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .24);
}

.dl-strip-btn i {
    font-size: 12px;
}

@media (max-width: 575.98px) {
    /* على الهاتف كان الشريط يحتاج 104px (ثلاثة أسطر) ويدفع كل الصفحة للأسفل.
       الآن سطر واحد: النص يُقصّ بثلاث نقاط وزر صغير ثابت في نفس السطر. */
    .dl-strip {
        font-size: 12px;
        padding: 6px 10px;
    }

    .dl-strip-inner {
        flex-wrap: nowrap;
        gap: 7px;
        text-align: start;
    }

    .dl-strip-icon,
    .dl-strip-logo {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .dl-strip-text {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        order: 0;
    }

    .dl-strip-badge {
        display: none;
    }

    .dl-strip-btn {
        flex: 0 0 auto;
        order: 0;
        padding: 4px 10px;
        font-size: 12px;
        box-shadow: none;
    }
}
