/* ==================== Watchlist ==================== */

/* Watch toggle button */
.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--fg);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.watch-btn:hover {
    background: var(--hover-overlay);
}

.watch-btn--active {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
}

.watch-btn--active:hover {
    opacity: 0.9;
}

/* Nav notification badge */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 4px;
    border-radius: 99px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

/* Watchlist page */
.watchlist-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.watchlist-header {
    margin-bottom: 1.5rem;
}

.watchlist-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.watchlist-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

.watchlist-empty {
    font-size: 0.875rem;
    color: var(--muted);
    padding: 2rem 0;
    text-align: center;
}

/* Watchlist item row */
.watchlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s, background 0.15s;
}

.watchlist-item:first-child {
    border-top: 1px solid var(--border);
}

.watchlist-item__info {
    flex: 1;
    min-width: 0;
}

.watchlist-item__address {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.watchlist-item__link {
    color: inherit;
    text-decoration: none;
}

a.watchlist-item__link:hover {
    text-decoration: underline;
}

.watchlist-item__value {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.watchlist-item__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.watchlist-dismiss-btn,
.watchlist-remove-btn {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--fg);
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
}

.watchlist-dismiss-btn:hover,
.watchlist-remove-btn:hover {
    background: var(--hover-overlay);
}

/* Highlighted value change indicator */
.watchlist-change {
    background: rgba(229, 62, 62, 0.06);
}


.watchlist-change-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 0.35rem;
    vertical-align: middle;
}
