@import url("./common.css");

/* Gradient accent text */
.insight-gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skeleton loading pulse */
.insight-skeleton>div {
    animation: insight-pulse 1.8s ease-in-out infinite;
}

@keyframes insight-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Vision banner gradient blobs */
.insight-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.insight-blob--tl {
    width: 16rem;
    height: 16rem;
    background: rgba(23, 102, 82, 0.3);
    top: -4rem;
    left: -4rem;
}

.insight-blob--br {
    width: 20rem;
    height: 20rem;
    background: rgba(100, 213, 179, 0.15);
    bottom: -5rem;
    right: -5rem;
}

/* News card */
.insight-news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.insight-news-card img {
    transition: transform 0.5s ease;
}

.insight-news-card:hover img {
    transform: scale(1.05);
}

/* Scroll reveal (matches site convention from reveal.js) */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .insight-blob--tl {
        width: 10rem;
        height: 10rem;
    }

    .insight-blob--br {
        width: 12rem;
        height: 12rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .insight-skeleton>div {
        animation: none;
    }

    .insight-news-card,
    .insight-news-card img {
        transition: none;
    }
}