/* Insights Tags Color System */

/* Base tag styling - MUST BE FIRST */
.tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
    /* Default gray style for uncategorized tags */
    background-color: rgba(95, 99, 115, 0.1);
    color: #353646;
    border: 1px solid rgba(95, 99, 115, 0.2);
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* AI/Technology Tags - Neo Mint */
.tag-ai,
.tag-evolutionary-agents,
.tag-ai-agents,
.tag-autonomous-ai,
.tag-ai-feedback-loop,
.tag-financial-ai {
    background-color: rgba(177, 244, 207, 0.2);
    color: #16A34A;
    border: 1px solid rgba(177, 244, 207, 0.5);
}

/* Infrastructure/Architecture Tags - Lumen Blue */
.tag-infrastructure,
.tag-ai-infrastructure,
.tag-mcp,
.tag-fmaas,
.tag-memos,
.tag-api-architecture,
.tag-multi-agent,
.tag-agentic {
    background-color: rgba(166, 212, 255, 0.2);
    color: #0369A1;
    border: 1px solid rgba(166, 212, 255, 0.5);
}

/* Trading/Investment Tags - Coral */
.tag-trading,
.tag-algorithmic-trading,
.tag-adaptive-trading,
.tag-tax-optimization,
.tag-portfolio-management,
.tag-investing,
.tag-ai-investing {
    background-color: rgba(255, 177, 164, 0.2);
    color: #DC2626;
    border: 1px solid rgba(255, 177, 164, 0.5);
}

/* Market/24-7 Tags - Purple */
.tag-markets,
.tag-24-7-trading,
.tag-continuous-trading,
.tag-global-markets,
.tag-crypto-trading {
    background-color: rgba(196, 181, 253, 0.2);
    color: #7C3AED;
    border: 1px solid rgba(196, 181, 253, 0.5);
}

/* Memory/Models Tags - Orange */
.tag-memory,
.tag-sub-quadratic-models,
.tag-financial-memory,
.tag-persistent-memory,
.tag-context-windows {
    background-color: rgba(251, 191, 36, 0.2);
    color: #D97706;
    border: 1px solid rgba(251, 191, 36, 0.5);
}

/* Developer/API Tags - Indigo */
.tag-developers,
.tag-api,
.tag-rest-api,
.tag-fix-protocol,
.tag-financial-development {
    background-color: rgba(129, 140, 248, 0.2);
    color: #4F46E5;
    border: 1px solid rgba(129, 140, 248, 0.5);
}