/* Insights Page Styling */

/* Page Header */
.page-header {
    margin-top: 80px;
    padding: 6rem 0 3rem;
    text-align: center;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Insights Grid */
.insights-grid-section {
    padding: 4rem 0 8rem;
    background: var(--color-bg);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Featured Article Style (Full Width First Item) */
.featured-insight {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    border: 1px solid var(--color-secondary-500);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(11, 15, 25, 0.8));
}

@media (min-width: 768px) {
    .featured-insight {
        align-items: flex-start;
    }
}

.insight-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary-500);
    box-shadow: var(--shadow-glow-secondary);
}

.insight-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.insight-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.insight-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-insight .insight-title {
    font-size: 2.5rem;
}

.insight-excerpt {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.insight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary-400);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.insight-link:hover {
    color: var(--color-secondary-300);
}

.insight-link.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* Newsletter */
.insights-newsletter {
    background: var(--color-surface-light);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-light);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-secondary-500);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.loading-state p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.loading-state p::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-secondary-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Insight Card Image */
.insight-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.insight-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--color-surface-light), var(--color-surface));
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-image-placeholder .insight-icon {
    font-size: 3rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .featured-insight .insight-title {
        font-size: 1.75rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}