/* --- AI INSIGHTS PAGE SPECIFIC STYLES --- */
:root {
    --ai-neon: #6366f1;
    --ai-neon-violet: #8b5cf6;
    --ai-cyan: #06b6d4;
    --bg-deep: #020205;
}

body.ai-page {
    background-color: var(--bg-deep);
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Nav Adjustment for Separate Page */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 2, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links a.active {
    color: var(--accent-1);
}

/* AI Hero Section */
.ai-hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.4;
}

.ai-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ai-glitch-text {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 15px;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    position: relative;
}

.hero-subtitle {
    font-family: 'Fira Code', monospace;
    color: var(--ai-cyan);
    font-size: 1rem;
    margin-top: 20px;
    opacity: 0.8;
}

/* Simulation Section */
.simulation-section {
    margin-top: -120px;
    position: relative;
    z-index: 10;
    padding: 40px;
    margin-bottom: 60px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.graph-container {
    width: 100%;
    height: 350px;
    margin: 30px 0;
    position: relative;
}

#simulation-graph {
    width: 100%;
    height: 100%;
}

.graph-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.graph-footer .stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.stat span:last-child {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--accent-1);
    font-weight: bold;
}

/* Category Filters */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: var(--ai-neon);
    color: #fff;
    background: rgba(99, 102, 241, 0.1);
}

.filter-btn.active {
    background: var(--ai-neon);
    color: #fff;
    border-color: var(--ai-neon);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 100px;
    position: relative;
    z-index: 5;
}

.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--ai-neon);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}

.blog-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.neural-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(2, 2, 5, 0.8);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-family: 'Fira Code', monospace;
    color: var(--ai-cyan);
    border: 1px solid var(--ai-cyan);
    z-index: 5;
}

.new-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    z-index: 5;
}

.blog-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-meta .dot {
    width: 4px;
    height: 4px;
    background: var(--ai-neon-violet);
    border-radius: 50%;
}

.category-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--ai-neon);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: auto;
}

.blog-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.read-btn {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--ai-cyan);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: gap 0.3s ease;
    margin-top: auto;
    text-decoration: none;
}

.blog-card:hover .read-btn {
    gap: 20px;
}

/* Footer Section */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: 1fr; }
    .ai-glitch-text { font-size: 3.5rem; letter-spacing: 5px; }
    .simulation-section { margin-top: 0; padding: 25px; }
}

@media (max-width: 768px) {
    .graph-footer { grid-template-columns: 1fr; }
    .ai-hero { height: 60vh; }
}
