/* Alpha-Hunter — Custom styles beyond Tailwind */

/* ─── Scanline Overlay ──────────────────────────────────────────────────────── */
.scanline-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 136, 0.008) 2px,
        rgba(0, 255, 136, 0.008) 4px
    );
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0e17;
}
::-webkit-scrollbar-thumb {
    background: #1c2640;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a3654;
}

/* ─── Filter Buttons ────────────────────────────────────────────────────────── */
.filter-btn {
    background: rgba(21, 29, 46, 0.5);
    border: 1px solid rgba(28, 38, 64, 0.3);
    color: #6b7280;
    cursor: pointer;
}
.filter-btn:hover {
    background: rgba(28, 38, 64, 0.8);
    color: #d1d5db;
    border-color: rgba(0, 212, 255, 0.2);
}
.filter-btn.active {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

/* ─── News Card ─────────────────────────────────────────────────────────────── */
.news-card {
    padding: 12px 16px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.news-card:hover {
    background: rgba(21, 29, 46, 0.5);
}
.news-card.hot {
    border-left-color: #ff3366;
    background: rgba(255, 51, 102, 0.03);
    animation: pulseHot 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.news-card.hot:hover {
    background: rgba(255, 51, 102, 0.08);
}
.news-card.score-high {
    border-left-color: #ff8800;
}
.news-card.score-mid {
    border-left-color: #00d4ff;
}
.news-card.score-low {
    border-left-color: transparent;
}

/* ─── Score Badge ───────────────────────────────────────────────────────────── */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.score-badge.hot {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.3);
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.2);
}
.score-badge.high {
    background: rgba(255, 136, 0, 0.12);
    color: #ff8800;
    border: 1px solid rgba(255, 136, 0, 0.2);
}
.score-badge.mid {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.15);
}
.score-badge.low {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

/* ─── Ticker Tag ────────────────────────────────────────────────────────────── */
.ticker-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 255, 136, 0.08);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* ─── Exchange Tag ──────────────────────────────────────────────────────────── */
.exchange-tag {
    display: inline-flex;
    align-items: center;
    padding: 0px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    margin-left: 2px;
}

/* ─── Source Tag ─────────────────────────────────────────────────────────────── */
.source-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

/* ─── Category Tag ──────────────────────────────────────────────────────────── */
.cat-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}
.cat-tag.AI_COMPUTE { background: rgba(191, 95, 255, 0.1); color: #bf5fff; border: 1px solid rgba(191, 95, 255, 0.2); }
.cat-tag.FINANCING { background: rgba(0, 212, 255, 0.1); color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.2); }
.cat-tag.PARTNERSHIPS { background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.2); }
.cat-tag.BIOTECH_FDA { background: rgba(255, 136, 0, 0.1); color: #ff8800; border: 1px solid rgba(255, 136, 0, 0.15); }
.cat-tag.CONTRACTS { background: rgba(255, 214, 0, 0.1); color: #ffd600; border: 1px solid rgba(255, 214, 0, 0.15); }
.cat-tag.MA_ACQUISITION { background: rgba(255, 51, 102, 0.1); color: #ff3366; border: 1px solid rgba(255, 51, 102, 0.15); }
.cat-tag.GENERAL { background: rgba(107, 114, 128, 0.1); color: #6b7280; border: 1px solid rgba(107, 114, 128, 0.1); }

/* ─── Source Status Dot ─────────────────────────────────────────────────────── */
.source-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.source-dot.ok { background: #00ff88; box-shadow: 0 0 6px rgba(0, 255, 136, 0.4); }
.source-dot.error { background: #ff3366; box-shadow: 0 0 6px rgba(255, 51, 102, 0.4); }
.source-dot.pending { background: #ffd600; box-shadow: 0 0 6px rgba(255, 214, 0, 0.3); }

/* ─── Hot Alert Sidebar Card ────────────────────────────────────────────────── */
.hot-sidebar-card {
    padding: 10px 14px;
    transition: background 0.2s;
    cursor: pointer;
}
.hot-sidebar-card:hover {
    background: rgba(255, 51, 102, 0.05);
}

/* ─── Animations ────────────────────────────────────────────────────────────── */
@keyframes pulseHot {
    0%, 100% { box-shadow: inset 0 0 0 rgba(255, 51, 102, 0); }
    50% { box-shadow: inset 0 0 30px rgba(255, 51, 102, 0.04); }
}

@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-slide {
    animation: fadeSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Category Bar ──────────────────────────────────────────────────────────── */
.cat-bar {
    height: 4px;
    border-radius: 2px;
    transition: width 0.5s ease;
}
