/**
 * Charlvon Oil & Gas Ticker — Frontend Styles
 * Fonts: Barlow Condensed (headers), Inter (body)
 * Accent: #e38717
 */

.cot-ticker-wrapper {
    --cot-bg: #111111;
    --cot-accent: #e38717;
    --cot-text: #ffffff;
    background: var(--cot-bg);
    color: var(--cot-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    line-height: 1;
}

/* ── Padding variants ── */
.cot-padding-compact .cot-ticker-marquee { padding: 1px 0; }
.cot-padding-compact .cot-ticker-title   { padding: 1px 12px 0; font-size: 9px; line-height: 1; }

.cot-padding-medium .cot-ticker-marquee  { padding: 6px 0; }
.cot-padding-medium .cot-ticker-title    { padding: 4px 16px 0; font-size: 11px; line-height: 1; }

.cot-padding-large .cot-ticker-marquee   { padding: 12px 0; }
.cot-padding-large .cot-ticker-title     { padding: 8px 20px 0; font-size: 12px; line-height: 1; }

.cot-ticker-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--cot-accent);
    margin: 0;
}

.cot-ticker-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin: 0;
}

.cot-ticker-track {
    display: inline-flex;
    align-items: center;
    will-change: transform;
    animation: cot-marquee linear infinite;
    margin: 0;
    padding: 0;
}

/* Speed variants */
.cot-speed-slow .cot-ticker-track   { animation-duration: 45s; }
.cot-speed-normal .cot-ticker-track { animation-duration: 28s; }
.cot-speed-fast .cot-ticker-track   { animation-duration: 16s; }

.cot-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

.cot-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.cot-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--cot-accent);
    line-height: 1;
}

.cot-unit {
    font-size: 9px;
    opacity: 0.55;
    font-weight: 400;
}

.cot-change {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
}

.cot-up {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.12);
}

.cot-down {
    color: #f44336;
    background: rgba(244, 67, 54, 0.12);
}

.cot-ticker-separator {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* Pause on hover */
.cot-ticker-marquee:hover .cot-ticker-track {
    animation-play-state: paused;
}

/* Error state */
.cot-ticker-error {
    background: #1a1a1a;
    color: #888;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-align: center;
    margin: 0;
}

/* Keyframes */
@keyframes cot-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .cot-ticker-item {
        padding: 0 10px;
        font-size: 12px;
        gap: 4px;
    }
    .cot-price {
        font-size: 14px;
    }
    .cot-label {
        font-size: 10px;
    }
    .cot-change {
        font-size: 10px;
        padding: 1px 4px;
    }
    .cot-ticker-separator {
        height: 12px;
    }
    .cot-padding-compact .cot-ticker-marquee { padding: 1px 0; }
    .cot-padding-medium  .cot-ticker-marquee { padding: 5px 0; }
    .cot-padding-large   .cot-ticker-marquee { padding: 10px 0; }
}

@media (max-width: 480px) {
    .cot-ticker-item {
        padding: 0 8px;
        font-size: 11px;
        gap: 3px;
    }
    .cot-price {
        font-size: 13px;
    }
    .cot-label {
        font-size: 9px;
    }
    .cot-padding-compact .cot-ticker-marquee { padding: 1px 0; }
    .cot-padding-medium  .cot-ticker-marquee { padding: 4px 0; }
    .cot-padding-large   .cot-ticker-marquee { padding: 8px 0; }
}
