
:root {
    --bg-base: #030305;
    --text-main: #FFFFFF;
    --text-muted: #A0A0AB;
    
    --accent-orange: #FF5E00;
    --accent-red: #EF4444;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    
    --card-bg: rgba(255, 255, 255, 0.02);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   INSIGHTS ENGINE STYLES
   ========================================================================== */

.insights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 24px 80px;
}

/* --- Header --- */
.insights-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.page-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Filter Dashboard --- */
.filter-dashboard {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-color);
}

.filter-btn.active {
    background: rgba(255, 94, 0, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 94, 0, 0.2);
}

/* --- Dynamic Grid --- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

/* --- Next-Gen Card Architecture --- */
.insight-card {
    position: relative;
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

/* The invisible spotlight layer that activates on JS mousemove */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 94, 0, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.insight-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 94, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.insight-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Meta Data (Tags & Read Time) */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.read-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Typography */
.card-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1; /* Pushes footer to the bottom */
}

/* Footer & Read More Link */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.insight-card:hover .read-more {
    transform: translateX(5px);
}

/* --- Responsive Formatting --- */
@media (max-width: 768px) {
    .page-title { font-size: 2.8rem; }
    .insights-grid { grid-template-columns: 1fr; }
}