/* ═══════════════════════════════════════════════════════════════
   OpusWebcam V4 - Bandeau d'annonces défilant (Ticker)
   Fichier: ticker.css
   ═══════════════════════════════════════════════════════════════ */

/* Container du ticker */
.announcement-ticker {
    background: transparent;
    overflow: hidden;
    position: relative;
    height: 36px;
    margin: 0 -20px;
    padding: 0 20px;
}

/* Effet de fondu aux extrémités - désactivé pour fond transparent */
/*
.announcement-ticker::before,
.announcement-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
*/

/* Contenu défilant */
.ticker-content {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

/* Animation de défilement continu */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Message individuel */
.ticker-message {
    display: inline-flex;
    align-items: center;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0 15px;
}

/* Séparateur Pokéball */
.ticker-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 20px;
    position: relative;
}

/* Pokéball CSS */
.pokeball {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(
        to bottom,
        #ff1a1a 0%,
        #ff1a1a 45%,
        #1a1a2e 45%,
        #1a1a2e 55%,
        #ffffff 55%,
        #ffffff 100%
    );
    border: 2px solid #333;
    position: relative;
    animation: pokeball-spin 3s ease-in-out infinite;
}

.pokeball::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 50%;
}

.pokeball::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(102, 126, 234, 0.8);
}

@keyframes pokeball-spin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(15deg) scale(1.05);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    75% {
        transform: rotate(-15deg) scale(1.05);
    }
}

/* Highlight pour les dates/mots importants */
.ticker-highlight {
    color: #667eea;
    font-weight: 600;
}

.ticker-highlight-warning {
    color: #ffc107;
    font-weight: 600;
}

.ticker-highlight-success {
    color: #28a745;
    font-weight: 600;
}

/* Icône avant le message */
.ticker-icon {
    margin-right: 8px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .announcement-ticker {
        height: 32px;
    }

    .ticker-message {
        font-size: 0.8rem;
    }

    .pokeball {
        width: 16px;
        height: 16px;
    }

    .ticker-separator {
        margin: 0 12px;
    }
}

/* Mode sans annonce - caché */
.announcement-ticker.hidden {
    display: none !important;
}
