/**
 * RC Flyer Activity Ticker Styles
 *
 * Colors are driven by CSS custom properties set inline on the ticker element.
 * Defaults match the original dark theme so the ticker works without any config.
 */

/* Main Container */
.rc-activity-ticker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 15px 0;
}

/* Background Styles */
.rcfat-bg-gradient {
    background: linear-gradient(135deg, var(--rcfat-bg, #1a1a2e) 0%, var(--rcfat-bg-end, #16213e) 100%);
}

.rcfat-bg-solid {
    background: var(--rcfat-bg, #1a1a2e);
}

.rcfat-bg-transparent {
    background: color-mix(in srgb, var(--rcfat-bg, #1a1a2e) 90%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Inner Layout */
.rcfat-inner {
    display: flex;
    align-items: center;
    height: 48px;
}

/* Live Label */
.rcfat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--rcfat-label, #667eea), var(--rcfat-label-end, #764ba2));
    height: 100%;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.rcfat-label-icon {
    font-size: 14px;
    animation: rcfat-pulse 2s ease-in-out infinite;
}

@keyframes rcfat-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.rcfat-label-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--rcfat-text, #ffffff);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Track */
.rcfat-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

/* Content */
.rcfat-content {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
}

.rcfat-content.animating {
    animation: rcfat-scroll var(--scroll-duration, 30s) linear infinite;
}

.rcfat-content.paused {
    animation-play-state: paused;
}

@keyframes rcfat-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Loading State */
.rcfat-loading {
    color: color-mix(in srgb, var(--rcfat-text, #ffffff) 50%, transparent);
    font-size: 13px;
    padding: 0 20px;
}

/* Individual Item */
.rcfat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    color: color-mix(in srgb, var(--rcfat-text, #ffffff) 90%, transparent);
    font-size: 14px;
    border-right: 1px solid color-mix(in srgb, var(--rcfat-text, #ffffff) 10%, transparent);
}

.rcfat-item:last-child {
    border-right: none;
}

.rcfat-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.rcfat-item-text {
    line-height: 1.4;
}

.rcfat-item-text strong {
    color: var(--rcfat-text, #ffffff);
    font-weight: 600;
}

/* Item Type Variations */
.rcfat-item-welcome .rcfat-item-icon {
    animation: rcfat-wave 1s ease-in-out infinite;
}

@keyframes rcfat-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.rcfat-item-speed .rcfat-item-text strong:last-of-type {
    color: var(--rcfat-speed, #f5576c);
}

.rcfat-item-altitude .rcfat-item-text strong:last-of-type {
    color: var(--rcfat-altitude, #667eea);
}

/* Separator Dots */
.rcfat-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4px;
    height: 4px;
    background: color-mix(in srgb, var(--rcfat-text, #ffffff) 30%, transparent);
    border-radius: 50%;
    margin: 0 12px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .rcfat-inner {
        height: 42px;
    }

    .rcfat-label {
        padding: 0 12px;
    }

    .rcfat-label-text {
        font-size: 10px;
    }

    .rcfat-item {
        font-size: 13px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .rcfat-label-text {
        display: none;
    }

    .rcfat-label {
        padding: 0 10px;
    }

    .rcfat-item {
        font-size: 12px;
        padding: 0 12px;
    }
}
