/* ================================================
   LOISTE STUDIO - PREMIUM INSIGHTS PAGE
   Editorial Magazine Design with Rustic Western Touch
   ================================================ */

/* ============================================
   1. INSIGHTS HEADER - Editorial Layout
   ============================================ */
.insights-header {
    margin-top: 10rem;
    padding-bottom: 8rem;
    position: relative;
}

.insights-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-bronze), transparent);
}

.insights-breadcrumb {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-brown-muted);
    margin-bottom: 4rem;
    font-weight: 600;
}

.breadcrumb-separator {
    margin: 0 1rem;
    opacity: 0.5;
}

.insights-hero-content {
    max-width: 1100px;
}

.insights-hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 8vw, 12rem);
    line-height: 0.95;
    font-weight: 200;
    margin: 3rem 0 4rem;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 3rem;
}

.insights-hero-text h1::first-letter {
    font-size: 1.3em;
    color: var(--neutral-dark);
}

.insights-hero-text h1 em {
    font-style: italic;
    color: var(--neutral-dark);
}

.insights-tagline {
    font-size: 2.2rem;
    line-height: 1.75;
    color: var(--color-brown-muted);
    max-width: 720px;
    margin-bottom: 5rem;
    font-weight: 300;
    border-left: 3px solid var(--color-bronze);
    padding-left: 2.5rem;
    font-style: italic;
}

/* Editorial Quote */
.editorial-quote {
    position: relative;
    margin-top: 4rem;
    padding: 0;
}

.quote-mark {
    width: 40px;
    height: auto;
    color: var(--neutral-dark);
    margin-bottom: 1.5rem;
}

.editorial-quote p {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    line-height: 1.5;
    font-weight: 300;
    font-style: italic;
    color: var(--color-charcoal);
    max-width: 650px;
}


/* ============================================
   2. SEARCH & FILTER CONTROLS
   ============================================ */
.insights-controls {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.insights-search {
    position: relative;
    flex: 0 0 350px;
}

.search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-brown-muted);
    opacity: 0.6;
}

.search-input {
    width: 100%;
    padding: 1.6rem 2rem 1.6rem 5rem;
    font-size: 1.5rem;
    background: var(--chalk-beige);
    border: 1px solid transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-bronze);
    background: var(--white-beige);
    box-shadow: 0 5px 20px rgba(193, 182, 164, 0.15);
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1.5px solid var(--neutral);
    background: transparent;
    color: var(--color-charcoal);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: var(--color-bronze);
    background: var(--peach-cream);
    transform: translateY(-2px);
}

.filter-pill.active {
    background: var(--color-bronze);
    border-color: var(--color-bronze);
    color: var(--white-beige);
}

/* ============================================
   3. FEATURED INSIGHT HERO
   ============================================ */
.featured-insight-hero {
    padding: 0 0 8rem 0;
}

.featured-hero-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 700px;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.featured-hero-card:hover {
    transform: scale(1.01);
}

.featured-hero-image {
    position: absolute;
    inset: 0;
}

.featured-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.featured-hero-card:hover .featured-hero-image img {
    transform: scale(1.05);
}

.featured-hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6rem;
    color: #fff;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.category-badge {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    opacity: 0.9;
}

.reading-time svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.featured-hero-overlay h2 {
    font-family: var(--font-heading);
    font-size: 6.5rem;
    line-height: 1.1;
    font-weight: 200;
    margin-bottom: 2.5rem;
    max-width: 900px;
    letter-spacing: -0.02em;
}

.featured-hero-overlay p {
    font-size: 1.9rem;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0.95;
    margin-bottom: 3rem;
}

/* ============================================
   4. INSIGHTS MASONRY GRID
   ============================================ */
.insights-grid-section {
    padding: 4rem 0 8rem 0;
}

.insights-masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    grid-auto-flow: dense;
}

/* Insight Cards */
.insight-card {
    background: var(--white-beige);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(193, 182, 164, 0.12);
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    border-color: var(--color-bronze);
}

.insight-card-large {
    grid-column: span 2;
    flex-direction: row;
}

.insight-image {
    position: relative;
    overflow: hidden;
    background: var(--neutral);
}

.insight-card:not(.insight-card-large) .insight-image {
    height: 320px;
}

.insight-card-large .insight-image {
    flex: 0 0 55%;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.insight-card:hover .insight-image img {
    transform: scale(1.08);
}

.insight-content {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-card-large .insight-content {
    padding: 5rem;
    justify-content: center;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insight-meta .category-badge {
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-charcoal);
}

/* Category Badge Colors */
.badge-strategy {
    background: rgba(193, 182, 164, 0.15);
    color: #4b2f2b;
}

.badge-design {
    background: rgba(113, 98, 79, 0.12);
    color: #71624f;
}

.badge-trends {
    background: rgba(205, 133, 63, 0.12);
    color: #8B6F47;
}

.badge-philosophy {
    background: rgba(188, 143, 143, 0.12);
    color: #8B4513;
}

.insight-meta .reading-time {
    font-size: 1.2rem;
    color: var(--color-brown-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-content h3 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 200;
    line-height: 1.25;
    margin-bottom: 2rem;
    color: var(--color-charcoal);
    letter-spacing: -0.01em;
}

.insight-card-large .insight-content h3 {
    font-size: 5rem;
    margin-bottom: 2.5rem;
    line-height: 1.15;
}

.insight-content p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-brown-muted);
    margin-bottom: 2.5rem;
    flex: 1;
}

.read-insight-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-insight-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.insight-card:hover .read-insight-link {
    color: var(--neutral-dark);
}

.insight-card:hover .read-insight-link svg {
    transform: translateX(5px);
}

/* ============================================
   5. NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(to bottom, var(--white-beige) 0%, var(--peach-cream) 50%, var(--white-beige) 100%);
    padding: 12rem 0;
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-bronze), transparent);
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-family: var(--font-heading);
    font-size: 6.5rem;
    font-weight: 200;
    line-height: 1.15;
    margin: 2.5rem 0 3rem;
    letter-spacing: -0.02em;
}

.newsletter-content h2 em {
    font-style: italic;
    color: var(--neutral-dark);
}

.newsletter-content p {
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--color-brown-muted);
    margin-bottom: 4rem;
}

.newsletter-form {
    margin-top: 4rem;
}

.newsletter-input-group {
    display: flex;
    gap: 1.5rem;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.newsletter-input-group .form-input {
    flex: 1;
    padding: 1.8rem 2.5rem;
    font-size: 1.6rem;
    background: var(--white-beige);
    border: 1px solid transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.newsletter-input-group .form-input:focus {
    outline: none;
    border-color: var(--color-bronze);
    box-shadow: 0 5px 20px rgba(193, 182, 164, 0.15);
}

.newsletter-disclaimer {
    font-size: 1.3rem;
    color: var(--color-brown-muted);
    opacity: 0.7;
    margin-top: 1.5rem;
}

/* ============================================
   6. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .insights-hero-text h1 {
        font-size: 7rem;
    }

    .featured-hero-overlay h2 {
        font-size: 4.5rem;
    }

    .insights-masonry-grid {
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    .insights-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .insights-search {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }

    .category-filters {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .featured-hero-card {
        height: 550px;
    }

    .featured-hero-overlay {
        padding: 4rem;
    }

    .insight-card-large {
        flex-direction: column;
    }

    .insight-card-large .insight-image {
        flex: 0 0 auto;
        height: 400px;
    }

    .insights-masonry-grid {
        grid-template-columns: 1fr;
    }

    .insight-card-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .insights-header {
        margin-top: 8rem;
        padding-bottom: 4rem;
    }

    .insights-hero-text h1 {
        font-size: 4.5rem;
        margin: 1.5rem 0 2rem;
    }

    .insights-tagline {
        font-size: 1.7rem;
        margin-bottom: 3rem;
    }

    .insights-breadcrumb {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .featured-hero-card {
        height: 500px;
    }

    .featured-hero-overlay {
        padding: 3rem;
    }

    .featured-hero-overlay h2 {
        font-size: 3.2rem;
    }

    .featured-hero-overlay p {
        font-size: 1.6rem;
    }

    .insights-masonry-grid {
        gap: 2.5rem;
    }

    .insight-content {
        padding: 3rem;
    }

    .insight-card-large .insight-content {
        padding: 3.5rem;
    }

    .insight-content h3 {
        font-size: 2.4rem;
    }

    .insight-card-large .insight-content h3 {
        font-size: 3rem;
    }

    .newsletter-content h2 {
        font-size: 4rem;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 1.5rem;
    }

    .newsletter-input-group .premium-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .insights-hero-text h1 {
        font-size: 3.5rem;
    }

    .filter-pill {
        font-size: 1.15rem;
        padding: 1rem 2rem;
    }

    .featured-hero-card {
        height: 450px;
    }

    .featured-hero-overlay {
        padding: 2.5rem;
    }

    .featured-hero-overlay h2 {
        font-size: 2.6rem;
        margin-bottom: 1.5rem;
    }

    .featured-hero-overlay p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .insight-card:not(.insight-card-large) .insight-image {
        height: 260px;
    }

    .insight-card-large .insight-image {
        height: 320px;
    }

    .newsletter-content h2 {
        font-size: 3.2rem;
    }

    .newsletter-content p {
        font-size: 1.6rem;
    }
}

/* ============================================
   7. FILTER STATES (for JavaScript)
   ============================================ */
.insight-card.hidden {
    display: none;
}

.insight-card.filtering-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}