/* News Ticker Styles - Responsive - متوافق مع ستايل المشروع */
/* عرض خبر واحد في كل مرة مع انتقال سلس */

.news-ticker-wrapper {
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow: hidden;
    position: relative;
    z-index: 999;
    direction: rtl;
}

.news-ticker-container {
    display: flex;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    flex-direction: row-reverse;
}

.news-ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-clr, #3b71de);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.news-ticker-label::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 15px 20px 0;
    border-color: transparent var(--primary-clr, #3b71de) transparent transparent;
}

.news-ticker-label i {
    font-size: 14px;
    animation: bell-ring 2s ease-in-out infinite;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-5deg); }
    50% { transform: rotate(0deg); }
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-right: 20px;
    padding-left: 20px;
}

/* عرض خبر واحد في كل مرة */
.news-ticker-items {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.news-item {
    position: absolute !important;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #262d34;
    font-size: 14px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-30px);
    transition: all 0.5s ease-in-out;
    white-space: nowrap;
    padding: 10px 0;
}

.news-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.news-item.leaving {
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
}

a.news-item {
    cursor: pointer;
}

a.news-item:hover {
    color: var(--primary-clr, #3b71de);
    text-decoration: none;
}

.news-bullet {
    color: var(--primary-clr, #3b71de);
    font-size: 10px;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .news-ticker-label {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .news-ticker-label span {
        display: none;
    }
    
    .news-ticker-label::after {
        border-width: 17px 12px 17px 0;
    }
    
    .news-item {
        font-size: 13px;
    }
    
    .news-ticker-items {
        height: 34px;
    }
}

@media (max-width: 767px) {
    .news-ticker-wrapper {
        display: block;
    }
    
    .news-ticker-container {
        flex-direction: row-reverse;
    }
    
    .news-ticker-label {
        padding: 8px 12px;
    }
    
    .news-ticker-label::after {
        display: none;
    }
    
    .news-ticker-content {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .news-item {
        font-size: 12px;
        gap: 6px;
    }
    
    .news-ticker-items {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .news-ticker-label {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .news-ticker-label i {
        font-size: 12px;
    }
    
    .news-item {
        font-size: 11px;
    }
    
    .news-bullet {
        font-size: 8px;
    }
    
    .news-ticker-items {
        height: 30px;
    }
}
