/* ==============================================================================
 * includes/frontend/user_profiles/tabs/tab-activity/tab-activity.css
 * VERSION 4.1.0 - COMPLETE WATCHLIST, CARDS, SPARKLINES & 10 QUICK SETS STYLES
 * ============================================================================== */

.etea-tab-section-title {
    font-size: 11px;
    color: var(--fin-text-muted, #8b949e);
    letter-spacing: 1px;
    font-family: 'Share Tech Mono', monospace;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.etea-recent-scans-grid {
    margin-bottom: 35px;
}

/* 1. Header Bar de la Watchlist */
.etea-wl-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.etea-wl-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
}

.etea-wl-counter-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--fin-text-muted, #8b949e);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
}

/* 2. Cartes de Watchlist */
.etea-wl-card {
    background: var(--fin-panel, #121826);
    border: 1px solid var(--fin-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.2s ease;
}

.etea-wl-card:hover {
    border-color: var(--fin-blue, #2962ff);
    background: rgba(41, 98, 255, 0.04);
    transform: translateX(3px);
}

.etea-wl-identity-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    flex: 1;
    min-width: 0;
}

.etea-wl-logo-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.etea-wl-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.etea-wl-logo-box.fallback {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 12px;
}

.etea-wl-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.etea-wl-ticker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.etea-wl-ticker-symbol {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.etea-wl-company-name {
    font-size: 11px;
    color: var(--fin-text-muted, #8b949e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.etea-wl-sparkline-col {
    flex-shrink: 0;
}

.etea-wl-metrics-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.etea-wl-pnl-val {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13.5px;
    font-weight: 800;
}

.etea-wl-pnl-val.bullish { color: #089981; }
.etea-wl-pnl-val.bearish { color: #f23645; }

.etea-wl-tag-pill {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.etea-remove-wl {
    background: transparent;
    border: none;
    color: var(--fin-gold, #ffd700);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.etea-remove-wl:hover {
    color: var(--fin-red, #f23645);
    transform: scale(1.2);
}

.etea-empty-wl-msg {
    text-align: center;
    padding: 35px 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--fin-text-muted, #8b949e);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
}

/* 3. Quick Sets Container & Buttons */
.etea-wl-quick-sets {
    margin-top: 30px;
    background: rgba(18, 24, 38, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px;
}

.etea-qs-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.etea-qs-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11.5px;
    font-weight: bold;
    color: #ffffff;
}

.etea-qs-autosync-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.etea-qs-autosync-wrapper.locked {
    opacity: 0.5;
    pointer-events: none;
}

.etea-qs-autosync-wrapper .txt {
    font-size: 11px;
    color: var(--fin-text-muted, #8b949e);
}

/* Switch Toggle (Mini) */
.etea-qs-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}

.etea-qs-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.etea-qs-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #30363d;
    transition: .3s;
    border-radius: 18px;
}

.etea-qs-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .etea-qs-slider {
    background-color: #089981;
}

input:checked + .etea-qs-slider:before {
    transform: translateX(16px);
}

/* Grille des 10 boutons Quick Sets */
.etea-qs-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.etea-qs-btn {
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c9d1d9;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.etea-qs-btn:hover {
    border-color: var(--fin-blue, #2962ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.etea-qs-btn.active {
    background: #2962ff !important;
    color: #ffffff !important;
    border-color: #2962ff !important;
    box-shadow: 0 0 12px rgba(41, 98, 255, 0.5);
}

/* Variantes Néon Spécifiques */
.etea-qs-btn.highlight-gold { border-color: rgba(255, 215, 0, 0.35); color: #ffd700; }
.etea-qs-btn.highlight-gold:hover, .etea-qs-btn.highlight-gold.active { background: rgba(255, 215, 0, 0.2) !important; border-color: #ffd700 !important; color: #ffd700 !important; box-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }

.etea-qs-btn.highlight-purple { border-color: rgba(183, 148, 244, 0.35); color: #b794f4; }
.etea-qs-btn.highlight-purple:hover, .etea-qs-btn.highlight-purple.active { background: rgba(183, 148, 244, 0.2) !important; border-color: #b794f4 !important; color: #b794f4 !important; box-shadow: 0 0 12px rgba(183, 148, 244, 0.4); }

.etea-qs-btn.highlight-blue { border-color: rgba(41, 98, 255, 0.35); color: #63b3ed; }
.etea-qs-btn.highlight-blue:hover, .etea-qs-btn.highlight-blue.active { background: rgba(41, 98, 255, 0.2) !important; border-color: #2962ff !important; color: #63b3ed !important; box-shadow: 0 0 12px rgba(41, 98, 255, 0.4); }

.etea-qs-btn.highlight-cyan { border-color: rgba(0, 240, 255, 0.35); color: #00f0ff; }
.etea-qs-btn.highlight-cyan:hover, .etea-qs-btn.highlight-cyan.active { background: rgba(0, 240, 255, 0.2) !important; border-color: #00f0ff !important; color: #00f0ff !important; box-shadow: 0 0 12px rgba(0, 240, 255, 0.4); }

/* Badges de Leaderboard (Top Performers) */
.etea-perf-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.etea-perf-badge.badge-gold { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.4); }
.etea-perf-badge.badge-purple { background: rgba(183, 148, 244, 0.15); color: #b794f4; border: 1px solid rgba(183, 148, 244, 0.4); }
.etea-perf-badge.badge-blue { background: rgba(41, 98, 255, 0.15); color: #63b3ed; border: 1px solid rgba(41, 98, 255, 0.4); }
.etea-perf-badge.badge-cyan { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.4); }
.etea-perf-badge.badge-green { background: rgba(8, 153, 129, 0.15); color: #089981; border: 1px solid rgba(8, 153, 129, 0.4); }
.etea-perf-badge.badge-locked { background: rgba(255, 215, 0, 0.08); color: #ffd700; border: 1px dashed rgba(255, 215, 0, 0.4); }