/**
 * watchlist_widget.css
 * BEM namespace: .watchlist-widget
 *
 * Right-rail watchlist card with live-tick price flashes.
 */

.watchlist-widget {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.watchlist-widget__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.watchlist-widget__title-action {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: var(--iris);
    text-decoration: none;
}
.watchlist-widget__title-action:hover { text-decoration: underline; }

.watchlist-widget__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.watchlist-widget__row {
    display: grid;
    grid-template-columns: 58px 1fr 70px;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.3s;
}
.watchlist-widget__row:hover { background: var(--surface-2); }

.watchlist-widget__row--flash-up {
    background: var(--green-tint);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 25%, transparent);
}
.watchlist-widget__row--flash-down {
    background: var(--red-tint);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 25%, transparent);
}

.watchlist-widget__symbol {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.watchlist-widget__name {
    font-size: 11px;
    color: var(--text-3);
}

.watchlist-widget__spark {
    width: 56px;
    height: 24px;
}

.watchlist-widget__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.watchlist-widget__price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-feature-settings: "tnum";
}

.watchlist-widget__change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-feature-settings: "tnum";
}
.watchlist-widget__change--up { color: var(--green-2); }
.watchlist-widget__change--down { color: var(--red); }
