/* ============================================================================
   TICKER MESSAGES SECTION
   ============================================================================ */

/* Ticker Messages Container */
.ticker-messages-section {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    background-image: url('../images/news.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    opacity: 0.8;
    display: flex;
    justify-content: center;
}

.ticker-messages-container {
    width: 100%;
    max-width: 1480px;
    height: 100%;
    position: relative;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
}

.ticker-messages-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* News Icon */
.ticker-icon {
    flex-shrink: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(135deg, #e0192e, #c01729);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    z-index: 2;
    position: relative;
}

.ticker-icon i {
    font-size: 18px;
}

.ticker-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Ticker Content */
.ticker-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
    padding: 0 20px;
}

/* Ticker Messages */
.ticker-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 30px 0 0;
    white-space: nowrap;
}

.ticker-message-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.ticker-message-link:hover {
    color: #e0192e;
    text-decoration: none;
}

.ticker-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.ticker-date {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    background: rgba(224, 25, 46, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.ticker-separator {
    color: #e0192e;
    font-weight: bold;
    margin: 0 15px;
}

/* Ticker Animation - LTR (scrolls right to left) */
@keyframes tickerScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Ticker Animation - RTL (scrolls left to right) */
@keyframes tickerScrollRTL {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Apply RTL animation for RTL pages */
[dir="rtl"] .ticker-track {
    animation-name: tickerScrollRTL;
}

/* Pause animation on hover */
.ticker-content:hover .ticker-track {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1520px) {
    .ticker-messages-section {
        margin: 0 20px;
    }
    
    .ticker-messages-container {
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 1200px) {
    .ticker-messages-section {
        margin: 0 15px;
    }
    
    .ticker-messages-container {
        max-width: calc(100vw - 30px);
    }
    
    .ticker-icon {
        width: 100px;
    }
    
    .ticker-icon i {
        font-size: 16px;
    }
    
    .ticker-label {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .ticker-messages-section {
        height: 70px;
        margin: 0 10px;
    }
    
    .ticker-messages-container {
        max-width: calc(100vw - 20px);
    }
    
    .ticker-icon {
        width: 80px;
    }
    
    .ticker-icon i {
        font-size: 14px;
    }
    
    .ticker-label {
        font-size: 12px;
    }
    
    .ticker-text {
        font-size: 13px;
    }
    
    .ticker-date {
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .ticker-messages-section {
        height: 60px;
        margin: 0;
    }
    
    .ticker-messages-container {
        max-width: 100%;
    }
    
    .ticker-icon {
        width: 70px;
    }
    
    .ticker-icon i {
        font-size: 12px;
    }
    
    .ticker-label {
        font-size: 11px;
    }
    
    .ticker-text {
        font-size: 12px;
    }
    
    .ticker-date {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .ticker-track {
        padding: 0 15px;
    }
    
    .ticker-message {
        margin: 0 20px 0 0;
    }
}

@media (max-width: 575px) {
    .ticker-messages-section {
        height: 50px;
    }
    
    .ticker-icon {
        width: 60px;
        gap: 4px;
    }
    
    .ticker-icon i {
        font-size: 11px;
    }
    
    .ticker-label {
        font-size: 10px;
    }
    
    .ticker-text {
        font-size: 11px;
    }
    
    .ticker-track {
        padding: 0 10px;
    }
    
    .ticker-message {
        margin: 0 15px 0 0;
    }
}

/* RTL Support */
[dir="rtl"] .ticker-track {
    direction: rtl;
}

[dir="rtl"] .ticker-message {
    margin: 0 0 0 30px;
}

[dir="rtl"] .ticker-separator {
    margin: 0 15px;
}

@media (max-width: 767px) {
    [dir="rtl"] .ticker-message {
        margin: 0 0 0 20px;
    }
}

@media (max-width: 575px) {
    [dir="rtl"] .ticker-message {
        margin: 0 0 0 15px;
    }
}

/* Accessibility */
.ticker-message-link:focus {
    outline: 2px solid #e0192e;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Performance optimizations */
.ticker-track {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ============================================================================
   END TICKER MESSAGES SECTION
   ============================================================================ */
