/* Контейнер бегущей строки */
.island-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(18, 18, 18, 0.98) 100%);
    backdrop-filter: blur(12px) saturate(150%);
    border-top: 2px solid rgba(255, 140, 60, 0.35);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 998;
    overflow: hidden;
}

/* Обёртка для анимации */
.island-ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    will-change: transform;
}

/* Элементы строки */
.ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 30px;
    font-family: 'Montserrat', -apple-system, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Иконки */
.ticker-icon {
    margin-right: 6px;
    font-size: 16px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
}

/* Разделитель - УБИРАЕМ ТОЧКУ */
.ticker-separator {
    display: none; /* Скрываем разделитель */
}

/* Акцентные элементы (дата, заголовки событий/новостей) */
.ticker-item.highlight {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* События */
.ticker-item.event {
    color: #ff8c3c;
}

/* Новости - выравниваем под остальное */
.ticker-item.news-header {
    color: #FFD700; /* Тот же цвет что у highlight */
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    /* Убираем особые стили */
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

.ticker-item.news-item {
    color: #ffffff; /* Белый как обычные элементы */
    font-weight: 600; /* Обычная жирность */
    /* Убираем особые стили */
    padding-left: 0;
    border: none;
}

.ticker-item.news-item .ticker-icon {
    color: #ffffff; /* Белый как у обычных иконок */
    margin-right: 6px; /* Стандартный отступ */
}

/* Цвета качества воздуха */
.ticker-item[data-air="good"] { color: #8df28d; }
.ticker-item[data-air="moderate"] { color: #9be49b; }
.ticker-item[data-air="unhealthy"] { color: #ffd36b; }
.ticker-item[data-air="very-unhealthy"] { color: #ff9b4a; }
.ticker-item[data-air="hazardous"] { color: #d24bff; }

/* Затухание по краям */
.island-ticker::before,
.island-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 1;
    pointer-events: none;
}

.island-ticker::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

.island-ticker::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

/* Состояние загрузки */
.island-ticker.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 140, 60, 0.6);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .island-ticker {
        height: 44px;
    }
    
    .ticker-item {
        font-size: 12px;
        margin: 0 20px;
    }
    
    .ticker-icon {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .island-ticker::before,
    .island-ticker::after {
        width: 60px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .island-ticker {
        height: 40px;
    }
    
    .ticker-item {
        font-size: 11px;
        margin: 0 15px;
    }
}

/* Стили для объявлений */
.ticker-item.announcement {
    color: #ff8c3c !important; /* Оранжевый цвет как в дизайне */
    font-weight: 600;
    background: rgba(255, 140, 60, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
    border-left: 3px solid rgba(255, 140, 60, 0.5);
}

.ticker-item.announcement .ticker-icon {
    color: #ff8c3c;
    margin-right: 6px;
}

/* При наведении на объявление */
.ticker-item.announcement:hover {
    background: rgba(255, 140, 60, 0.15);
    transform: translateY(-1px);
}

/* Праздник - яркий стиль */
.ticker-item.holiday {
    color: #FFD700;
    font-weight: 800;
    animation: holiday-glow 2s ease-in-out infinite;
}

@keyframes holiday-glow {
    0%, 100% {
        text-shadow: 
            0 0 8px rgba(255, 215, 0, 0.6),
            0 0 12px rgba(255, 215, 0, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 12px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Иконка праздника */
.ticker-item.holiday .ticker-icon {
    animation: holiday-bounce 1s ease-in-out infinite;
}

@keyframes holiday-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Особые праздники с анимацией */
.ticker-item.holiday[data-special="songkran"] .ticker-icon {
    animation: water-splash 1.5s ease-in-out infinite;
}

@keyframes water-splash {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

.ticker-item.holiday[data-special="halloween"] .ticker-icon {
    animation: spooky-float 2s ease-in-out infinite;
}

@keyframes spooky-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ticker-item.holiday[data-special="christmas"] .ticker-icon {
    animation: jingle 1s ease-in-out infinite;
}

@keyframes jingle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

