/* ============================================
   EA EventAgro — Barra de Informações
   Clima + Câmbio + Ticker de Commodities CEPEA
   ============================================ */

.ea-info-bar {
    background: #0a1c18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-display);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    height: 32px;
    overflow: hidden;
}

/* ─── Inner ─── */
.info-bar-inner {
    display: flex;
    align-items: center;
    height: 32px;
    gap: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* ─── Seções fixas ─── */
.info-bar-section {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 0 12px;
    height: 100%;
}

.info-bar-section:first-child { padding-left: 0; }

/* ─── Separadores ─── */
.info-bar-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.info-bar-sep-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ─── Labels e Valores ─── */
.info-bar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.38);
}

.info-bar-value {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.info-bar-unit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-left: -2px;
}

.info-bar-trend {
    font-size: 10px;
    font-weight: 700;
    margin-left: 1px;
    line-height: 1;
}

.info-bar-trend.is-up   { color: #7EC13C; }
.info-bar-trend.is-down { color: #f87171; }

.info-bar-pair {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ─── Clima ─── */
.info-bar-weather-icon {
    font-size: 13px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

.info-bar-weather-city {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.info-bar-weather-temp {
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.info-bar-weather-range {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.38);
    margin-left: -3px;
    display: none;
}

.info-bar-weather-desc {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.45);
    margin-left: -2px;
    display: none;
}

/* ─── Ticker de Commodities ─── */

/* Wrapper expande para ocupar o espaço restante */
.info-bar-commodities-wrap {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 0 0 14px;
    height: 100%;
}

/* Label "AGR" verde */
.info-bar-ticker-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--color-accent, #7EC13C);
    color: #0F2420;
    padding: 1px 6px 2px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-right: 10px;
    line-height: 14px;
}

/* Container do ticker com overflow hidden */
.info-bar-ticker-outer {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Fades nas bordas para look profissional */
.info-bar-ticker-outer::before,
.info-bar-ticker-outer::after {
    content: '';
    position: absolute;
    top: 0;
    width: 16px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.info-bar-ticker-outer::before {
    left: 0;
    background: linear-gradient(to right, #0a1c18, transparent);
}

.info-bar-ticker-outer::after {
    right: 0;
    background: linear-gradient(to left, #0a1c18, transparent);
}

/* Track animado */
.info-bar-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ea-ticker-scroll 28s linear infinite;
    will-change: transform;
}

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

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

/* Item individual do ticker */
.info-bar-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    flex-shrink: 0;
}

/* Separador entre itens do ticker */
.info-bar-ticker-sep {
    display: inline-block;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    flex-shrink: 0;
}

/* Estado de loading */
.info-bar-ticker-loading {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.28);
    padding: 0 8px;
    animation: info-bar-pulse 1.4s ease-in-out infinite;
}

@keyframes info-bar-pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}

/* ─── Sidebar Card de Cotações ──────────────────────────────────────────────── */

.sidebar-cotacoes-card {
    background: #0a1c18;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

/* Header */
.scc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.scc-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--color-accent, #7EC13C);
    color: #0F2420;
    padding: 2px 6px 3px;
    border-radius: 2px;
    flex-shrink: 0;
    line-height: 14px;
}

.scc-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    line-height: 1;
}

/* Câmbio */
.scc-currency {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scc-currency-pair {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    padding: 10px 14px;
}

.scc-currency-pair + .scc-currency-pair {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.scc-cur-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.35);
}

.scc-cur-value {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.scc-trend {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.scc-trend.is-up   { color: #7EC13C; }
.scc-trend.is-down { color: #f87171; }

/* Lista de commodities */
.scc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scc-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.scc-item:last-child {
    border-bottom: none;
}

.scc-com-label {
    flex: 0 0 76px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.scc-com-value {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}

.scc-com-unit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 2px;
    font-weight: 400;
}

.scc-item .scc-trend {
    flex-shrink: 0;
    margin-left: 4px;
}

/* Loading / empty states */
.scc-loading,
.scc-empty {
    padding: 12px 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
}

.scc-loading {
    animation: info-bar-pulse 1.4s ease-in-out infinite;
}

/* Footer */
.scc-footer {
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .info-bar-commodities-wrap,
    .info-bar-sep-desktop {
        display: none;
    }
}

@media (max-width: 640px) {
    .ea-info-bar {
        height: 28px;
        font-size: 11px;
    }

    .info-bar-inner { height: 28px; }

    .info-bar-section { gap: 4px; padding: 0 8px; }

    .info-bar-weather-desc { display: none !important; }

    .info-bar-weather-temp { font-size: 12px; }

    /* Mobile: mantém só USD */
    .info-bar-currency .info-bar-pair:last-child,
    .info-bar-currency .info-bar-sep-dot { display: none; }
}
