/* TrackAI — Custom Styles (melengkapi Tailwind) */

/* Scrollbar kustom (Bloomberg-style) */
* { scrollbar-width: thin; scrollbar-color: #2b3340 transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #2b3340; border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: #3b4658; }
*::-webkit-scrollbar-corner { background: transparent; }

/* Feed article rows */
.article-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}
.article-row:hover {
    background: #121620;
    border-color: #1b212c;
}
.article-row.is-new {
    border-left: 3px solid #fb8b1e;
}

/* Article meta bar */
.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #8b94a2;
}
.article-meta .time {
    color: #fb8b1e;
    font-weight: 700;
}
.article-meta .source {
    color: #b8691a;
}
.article-meta .category-tag {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.category-tag.industri { background: #1a3a5c; color: #34c6ff; }
.category-tag.riset { background: #2d1b69; color: #b98bff; }
.category-tag.opensource { background: #1a3a2a; color: #4af6c3; }
.category-tag.tools { background: #3a2a1a; color: #fb8b1e; }
.category-tag.agent { background: #3a1a2a; color: #ff6b9d; }
.category-tang.generatif { background: #2a3a1a; color: #a8e06b; }
.category-tag.funding { background: #2a2a1a; color: #ffd700; }
.category-tag.regulasi { background: #2a1a3a; color: #d4a0ff; }

/* Article title */
.article-title {
    font-size: 12px;
    line-height: 1.4;
    color: #d7dde6;
}

/* Bookmark button */
.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.3;
    transition: opacity 0.15s;
}
.bookmark-btn:hover,
.bookmark-btn.active {
    opacity: 1;
}

/* Summary modal transitions */
#summary-modal {
    transition: opacity 0.2s ease;
}

/* Search loading */
.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
