/* 
 * Ticker Section Styles
 * Uses theme palette: --primary-gold (#BA9E82), dark bg, warm tones
 */

.mivida-ticker {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #0c0a09 0%, #1a1714 50%, #0c0a09 100%);
    padding: 18px 0;
    border-top: 1px solid rgba(186, 158, 130, 0.25);
    border-bottom: 1px solid rgba(186, 158, 130, 0.25);
    display: flex;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
}

/* Subtle edge fade for seamless scroll illusion */
.mivida-ticker::before,
.mivida-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.mivida-ticker::before {
    left: 0;
    background: linear-gradient(to right, #0c0a09 0%, transparent 100%);
}

.mivida-ticker::after {
    right: 0;
    background: linear-gradient(to left, #0c0a09 0%, transparent 100%);
}

.mivida-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: mivida-marquee 30s linear infinite;
    will-change: transform;
}

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

.mivida-ticker-item {
    font-family: 'Avenir', 'Avenir Next', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ticker-text-color, rgba(186, 158, 130, 0.9)) !important;
    transition: color 0.3s ease;
}

.mivida-ticker-item:hover {
    color: #d4b896;
}

.mivida-ticker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ticker-text-color, rgba(186, 158, 130, 0.55)) !important;
    opacity: 0.7 !important;
    flex-shrink: 0;
}

.mivida-ticker-icon svg {
    width: 18px;
    height: 18px;
}

.mivida-ticker-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(186, 158, 130, 0.3);
    margin: 0 32px;
    flex-shrink: 0;
}

@keyframes mivida-marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .mivida-ticker {
        padding: 14px 0;
    }
    .mivida-ticker::before,
    .mivida-ticker::after {
        width: 40px;
    }
    .mivida-ticker-item {
        font-size: 0.78rem;
        letter-spacing: 1.5px;
    }
    .mivida-ticker-icon svg {
        width: 15px;
        height: 15px;
    }
    .mivida-ticker-sep {
        margin: 0 22px;
    }
}
