/* ==========================================================================
   شريط أعلام الدول العربية
   ========================================================================== */
.flags-strip {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    border-top: 1px solid var(--color-border-light);
}

.flags-marquee {
    width: 100%;
    overflow: hidden;
    padding: 6px 0;
    direction: ltr;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.flags-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: flags-scroll 45s linear infinite;
}

.flags-marquee:hover .flags-track {
    animation-play-state: paused;
}

.flag-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    position: relative;
}

.flag-item img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s ease;
    cursor: pointer;
}

.flag-item img:hover {
    transform: scale(1.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

.flag-dot {
    flex-shrink: 0;
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0.35);
    margin: 0 3px;
}

@keyframes flags-scroll {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* --------------------------------------------------------------------------
   تابلت
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .flag-item img {
        width: 32px;
        height: 22px;
    }

    .flag-item {
        margin: 0 4px;
    }
}

/* --------------------------------------------------------------------------
   موبايل
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .flags-marquee {
        padding: 5px 0;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
    }

    .flag-item img {
        width: 28px;
        height: 19px;
        border-radius: 2px;
    }

    .flag-item {
        margin: 0 3px;
    }

    .flag-dot {
        width: 2px;
        height: 2px;
        margin: 0 2px;
    }

    .flags-track {
        animation-duration: 30s;
    }
}
