/* ═══════════════════════════════════════
   WATCHLIST CARD TILE
   Uses MudBlazor CSS variables injected at runtime by MudThemeProvider
═══════════════════════════════════════ */

.wlc-tile {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    display: block;
}

.wlc-tile:hover {
    transform: scale(1.02);
}

/* Cover image */
.wlc-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient backgrounds (used when no cover image) */
.wlc-grad-0 { background: linear-gradient(145deg, #2997ff 0%, #a855f7 100%); }
.wlc-grad-1 { background: linear-gradient(145deg, #a855f7 0%, #ec4899 100%); }
.wlc-grad-2 { background: linear-gradient(145deg, #2dd4bf 0%, #2997ff 100%); }
.wlc-grad-3 { background: linear-gradient(145deg, #f59e0b 0%, #ec4899 100%); }
.wlc-grad-4 { background: linear-gradient(145deg, #3dcb6c 0%, #2997ff 100%); }

/* Gradient fill (absolute, behind scrim) */
.wlc-fill {
    position: absolute;
    inset: 0;
}

/* Scrim for readability of text on image/gradient */
.wlc-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, transparent 60%);
}

/* Bottom overlay with name, count, and menu */
.wlc-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 4px 10px 14px;
}

.wlc-overlay-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.wlc-tile-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.wlc-tile-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════
   WATCHLIST PAGE HEADER
═══════════════════════════════════════ */

.wlc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.wlc-page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--mud-palette-text-primary);
}

.wlc-btn-create {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--mud-palette-primary);
    color: #fff;
    border: none;
    border-radius: 980px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.wlc-btn-create:hover {
    opacity: 0.88;
}

/* Selected tile ring */
.wlc-tile-selected {
    outline: 3px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════
   WATCHLIST DETAIL HEADER BANNER
═══════════════════════════════════════ */

.wlc-detail-header {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 160px;
    margin-bottom: 20px;
}

.wlc-detail-header-bg {
    position: absolute;
    inset: 0;
}

.wlc-detail-header-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(0px);
}

.wlc-detail-header-content {
    position: absolute;
    inset: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wlc-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wlc-btn-back {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    opacity: 0.9;
    transition: opacity 0.15s;
}

.wlc-btn-back:hover {
    opacity: 1;
}

.wlc-btn-add {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 980px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.wlc-btn-add:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wlc-detail-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.wlc-detail-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

/* ═══════════════════════════════════════
   STOCK SIDEBAR LIST
═══════════════════════════════════════ */

.wlc-stock-sidebar {
    background: color-mix(in srgb, var(--mud-palette-text-primary) 4%, transparent);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    overflow: hidden;
}

.wlc-stock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    cursor: pointer;
    transition: background 0.15s;
}

.wlc-stock-row:last-child {
    border-bottom: none;
}

.wlc-stock-row:hover {
    background: color-mix(in srgb, var(--mud-palette-text-primary) 5%, transparent);
}

.wlc-stock-row-selected {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent) !important;
}

.wlc-stock-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.wlc-stock-info {
    flex: 1;
    min-width: 0;
}

.wlc-stock-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wlc-stock-ticker {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    margin-top: 1px;
}

.wlc-stock-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.wlc-stock-actions .mud-icon-button:hover {
    background-color: color-mix(in srgb, var(--mud-palette-text-primary) 10%, transparent);
}

/* ═══════════════════════════════════════
   WATCHLIST CARD SKELETON
═══════════════════════════════════════ */

.wlc-skeleton {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-text-primary) 8%, transparent);
}

.wlc-skeleton-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px;
}
