/* ============================================
   Tallybase - Insights Page Styles
   ============================================ */

/* --------------------------------------------
   Insights Hero
   -------------------------------------------- */
.insights-hero {
    padding: clamp(10rem, 18vh, 14rem) 0 clamp(4rem, 8vh, 6rem);
    background: var(--color-bg);
    position: relative;
}

.insights-hero-content {
    max-width: 700px;
}

.insights-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.insights-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.insights-hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --------------------------------------------
   Category Filter
   -------------------------------------------- */
.insights-filter {
    padding: 2rem 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 72px;
    z-index: 90;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

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

.filter-tab.active {
    color: var(--color-text-light);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* --------------------------------------------
   Featured Article
   -------------------------------------------- */
.featured-article {
    padding: clamp(4rem, 8vh, 6rem) 0;
    background: var(--color-bg-alt);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-image {
    aspect-ratio: 4/3;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-image-placeholder {
    width: 50%;
    color: var(--color-accent);
    opacity: 0.5;
}

.featured-image-placeholder svg {
    width: 100%;
    height: auto;
}

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

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 0.375rem 0.75rem;
    background: rgba(45, 90, 74, 0.1);
}

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

.featured-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.featured-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap 0.3s var(--ease-out);
}

.read-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more:hover svg {
    transform: translateX(4px);
}

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

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: all 0.4s var(--ease-out);
}

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

.insight-card-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.insight-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.insight-card h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    flex-grow: 0;
}

.insight-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.insight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.insight-footer .read-more {
    font-size: 0.875rem;
}

.insight-footer .read-more svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------
   Newsletter Section
   -------------------------------------------- */
.newsletter-section {
    padding: clamp(4rem, 8vh, 6rem) 0;
    background: var(--color-bg-alt);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-text h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    min-width: 280px;
    transition: all 0.3s var(--ease-out);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(45, 90, 74, 0.1);
}

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

.newsletter-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-accent);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.newsletter-form button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.newsletter-form button:hover {
    background: var(--color-accent-dark);
}

.newsletter-form button:hover svg {
    transform: translateX(4px);
}

/* --------------------------------------------
   Animations
   -------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------
   Responsive Styles
   -------------------------------------------- */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-image {
        aspect-ratio: 16/9;
    }
    
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 500px;
    }
    
    .newsletter-form input {
        flex-grow: 1;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .insights-filter {
        top: 64px;
    }
    
    .filter-tabs {
        gap: 0.375rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 0;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}