﻿/* ============================================
   БЕГУЩАЯ СТРОКА - MARQUEE.CSS
   ============================================ */

.notice-marquee-container {
    width: 100%;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
    overflow: hidden;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-main {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.notice-label {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    font-size: 14px;
    min-width: 120px;
}

.icon-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

.icon-left::before {
    content: "\f0f3"; /* Font Awesome bell icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 12px;
}

/* --- Marquee Section --- */
.marquee_box {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.custom-marquee {
    height: 100%;
    display: flex;
    align-items: center;
    animation: marquee 60s linear infinite;
    transition: animation-play-state 0.3s ease;
}

.custom-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.notice_list {
    list-style: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    gap: 0;
}

.notice_list li {
    padding: 0 50px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice_list li:hover {
    color: #f1c40f;
}

/* Иконки для разных типов уведомлений */
.notice_list li .fa-mobile-alt {
    color: #3498db;
}

.notice_list li .fa-star {
    color: #f1c40f;
}

.notice_list li .fa-handshake {
    color: #2ecc71;
}

.notice_list li .fa-coins {
    color: #f39c12;
}

.notice_list li .fa-globe {
    color: #9b59b6;
}

.notice_list li .fa-trophy {
    color: #e74c3c;
}

.notice_list li .fa-money-bill-wave {
    color: #27ae60;
}

.notice_list li .fa-leaf {
    color: #2ecc71;
}

/* Стили для разных типов уведомлений */
.notice_list li.highlight {
    color: #f1c40f;
    font-weight: bold;
}

.notice_list li.winner {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    position: relative;
}

.notice_list li.winner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(243, 156, 18, 0.1), rgba(231, 76, 60, 0.1));
    border-radius: 4px;
    z-index: -1;
}

.notice_list li.app-download {
    color: #3498db;
    font-weight: 600;
}

.notice_list li.referral {
    color: #2ecc71;
    font-weight: 600;
}

.notice_list li.commission {
    color: #f39c12;
    font-weight: 600;
}

.notice_list li.official-site {
    color: #9b59b6;
    font-weight: 600;
}

/* Кнопка действия */
.notice-action-icon {
    flex-shrink: 0;
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notice-action-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.notice-action-icon:hover::before {
    left: 100%;
}

.notice-action-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.icon-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.4);
    transition: all 0.3s ease;
}

.icon-right::before {
    content: "\f3cd"; /* Font Awesome mobile-alt icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 14px;
}

.notice-action-icon:hover .icon-right {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.6);
}

/* Эффекты анимации */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
    }
}

.icon-left {
    animation: glow 3s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .notice-main {
        height: 50px;
    }
    
    .notice-label {
        padding: 0 10px;
        min-width: 80px;
        font-size: 12px;
    }
    
    .notice-label span:last-child {
        display: none;
    }
    
    .notice-action-icon {
        width: 50px;
    }
    
    .notice_list li {
        font-size: 12px;
        padding: 0 30px;
    }
    
    .icon-left,
    .icon-right {
        width: 20px;
        height: 20px;
    }
    
    .icon-left::before,
    .icon-right::before {
        font-size: 10px;
    }
    
    .custom-marquee {
        animation-duration: 45s;
    }
}

@media (max-width: 480px) {
    .notice-marquee-container {
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .notice-main {
        height: 45px;
    }
    
    .notice-label {
        padding: 0 8px;
        min-width: 60px;
    }
    
    .notice-action-icon {
        width: 45px;
    }
    
    .notice_list li {
        font-size: 11px;
        padding: 0 25px;
    }
    
    .custom-marquee {
        animation-duration: 40s;
    }
}

/* Специальные эффекты для мобильных устройств */
@media (hover: none) {
    .custom-marquee:active {
        animation-play-state: paused;
    }
    
    .notice_list li:active {
        color: #f1c40f;
        transform: scale(0.95);
    }
    
    .notice-action-icon:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .notice-marquee-container {
        background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .notice-label {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .notice-action-icon {
        background: rgba(0, 0, 0, 0.5);
    }
}
