/* Insights/Blog Styles */

/* Insights Listing Hero */
.insights-hero {
    padding: 12rem 0 6rem;
    background: linear-gradient(180deg, var(--color-bg-main) 0%, var(--color-bg-card) 100%);
    position: relative;
    overflow: hidden;
}

.insights-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/insights/hero.jpg') center/cover no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

.insights-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 28, 0.5) 0%,
        rgba(10, 15, 28, 0.7) 50%,
        rgba(10, 15, 28, 0.9) 100%
    );
    pointer-events: none;
}

.insights-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.insights-hero-title {
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text-light) 0%, var(--color-accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Featured Article */
.featured-article-section {
    padding: 4rem 0 6rem;
    background: var(--color-bg-main);
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--color-bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-article-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #1a2744 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-article-image svg {
    width: 70%;
    height: 70%;
    opacity: 0.6;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-article-content {
    padding: 3rem;
}

.featured-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(56, 124, 241, 0.15);
    color: var(--color-accent-cyan);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.featured-article-title {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-article-excerpt {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.featured-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    text-decoration: none;
}

.insight-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 124, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.insight-card-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #1a2744 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.insight-card-image svg {
    width: 60%;
    height: 60%;
    opacity: 0.5;
}

.insight-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.insight-card-content {
    padding: 2rem;
}

.insight-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(56, 124, 241, 0.15);
    color: var(--color-accent-cyan);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.insight-card-title {
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.insight-card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.insight-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Article Detail Page */
.article-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(180deg, var(--color-bg-main) 0%, var(--color-bg-card) 100%);
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(56, 124, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.article-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.article-back-link:hover {
    color: var(--color-accent-cyan);
}

.article-back-link svg {
    width: 18px;
    height: 18px;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(56, 124, 241, 0.15);
    color: var(--color-accent-cyan);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(56, 124, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-cyan);
}

.article-author-info {
    display: flex;
    flex-direction: column;
}

.article-author-name {
    color: var(--color-text-light);
    font-weight: 500;
}

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

/* Article Content */
.article-content {
    padding: 6rem 0;
    background: var(--color-bg-main);
}

.article-content .container {
    max-width: 800px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-text-muted);
}

.article-body h2 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 3rem 0 1.5rem;
}

.article-body h3 {
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 2.5rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-accent-blue);
    background: rgba(56, 124, 241, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-body code {
    background: rgba(56, 124, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--color-accent-cyan);
}

.article-body pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    padding: 0;
}

/* Related Articles */
.related-articles {
    padding: 6rem 0;
    background: var(--color-bg-card);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Newsletter CTA */
.newsletter-cta {
    padding: 6rem 0;
    background: var(--color-bg-main);
}

.newsletter-card {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(56, 124, 241, 0.1) 0%, rgba(55, 243, 255, 0.05) 100%);
    border-radius: 24px;
    border: 1px solid rgba(56, 124, 241, 0.2);
}

.newsletter-title {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.newsletter-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    background: var(--color-bg-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent-blue);
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article-image {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .insights-hero {
        padding: 10rem 0 4rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .featured-article-content {
        padding: 2rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .newsletter-card {
        padding: 3rem 2rem;
    }
}
