/* ==========================================================================
   FRONT PAGE
   ========================================================================== */

/* Hero */
.ln-hero {
    position: relative;
    overflow: hidden;
    background: var(--ln-bg-primary);
    margin-bottom: 0;
}

/* No-image fallback */
.ln-hero:not(.ln-hero--has-bg) {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ln-hero:not(.ln-hero--has-bg)::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, var(--ln-glow-magenta), transparent 60%),
        radial-gradient(ellipse at 70% 50%, var(--ln-glow-purple), transparent 60%);
    opacity: 0.3;
    pointer-events: none;
}

/* Hero image - displays at natural proportions, full width */
.ln-hero__image-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
}

.ln-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Feather the image edges into the dark background */
.ln-hero__image-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        /* Bottom fade into text area */
        linear-gradient(to top, var(--ln-bg-primary) 0%, transparent 30%),
        /* Top fade */
        linear-gradient(to bottom, var(--ln-bg-primary) 0%, transparent 15%),
        /* Left fade */
        linear-gradient(to right, var(--ln-bg-primary) 0%, transparent 15%),
        /* Right fade */
        linear-gradient(to left, var(--ln-bg-primary) 0%, transparent 15%);
}

.ln-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem 2.5rem;
    margin-top: -4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Neon glow behind text area */
.ln-hero--has-bg .ln-hero__content::before {
    content: "";
    position: absolute;
    inset: -2rem -5rem;
    background:
        radial-gradient(ellipse at 30% 50%, var(--ln-glow-magenta), transparent 60%),
        radial-gradient(ellipse at 70% 50%, var(--ln-glow-purple), transparent 60%);
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

.ln-hero__title {
    display: block;
    width: 100%;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.ln-hero__subtitle {
    display: block;
    width: 100%;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--ln-text-secondary);
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.ln-hero__actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Buttons */
.ln-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--ln-radius-sm);
    text-decoration: none;
    transition: all var(--ln-transition);
    cursor: pointer;
}

.ln-btn--primary {
    background: linear-gradient(135deg, var(--ln-accent-magenta), var(--ln-accent-purple));
    color: #ffffff;
    border: none;
}

.ln-btn--primary:hover {
    box-shadow: 0 0 25px var(--ln-glow-magenta), 0 0 50px var(--ln-glow-purple);
    transform: translateY(-2px);
    color: #ffffff;
}

.ln-btn--outline {
    background: transparent;
    color: var(--ln-accent-cyan);
    border: 2px solid var(--ln-accent-cyan);
}

.ln-btn--outline:hover {
    background: var(--ln-accent-cyan);
    color: var(--ln-bg-primary);
    box-shadow: 0 0 25px var(--ln-glow-cyan);
    transform: translateY(-2px);
}

/* Sections */
.ln-section {
    padding: var(--ln-section-gap) 0;
}

.ln-section__heading {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
}

.ln-section__heading a {
    text-decoration: underline;
    text-decoration-color: var(--ln-accent-magenta);
    text-underline-offset: 4px;
}

.ln-section__cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    clear: both;
}

/* New Products section */
.ln-new-products {
    background: var(--ln-bg-secondary);
    padding: 3rem 0 4rem;
    margin-top: 0;
}

.ln-new-products > .ast-container {
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Force WooCommerce shortcode wrapper to full width */
.ln-new-products .woocommerce {
    width: 100%;
    clear: both;
}

/* Give products grid breathing room from View All button */
.ln-new-products .woocommerce ul.products {
    margin-bottom: 2rem !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100% !important;
}

.ln-new-products .woocommerce ul.products::after {
    content: "";
    display: block;
    clear: both;
}

.ln-new-products .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Ensure CTA sits fully below the product grid */
.ln-new-products .ln-section__cta {
    width: 100%;
    margin-top: 2.5rem;
}

/* Activity section */
.ln-activity__grid {
    margin-top: 2rem;
}

/* Socials section */
.ln-socials {
    text-align: center;
    padding-bottom: 4rem;
}

.ln-socials__list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 2rem;
}

.ln-socials__list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--ln-text-secondary);
    font-size: 0;
    transition: all var(--ln-transition);
}

.ln-socials__list li a:hover {
    border-color: var(--ln-accent-cyan);
    color: var(--ln-accent-cyan);
    box-shadow: 0 0 20px var(--ln-glow-cyan);
}

/* Responsive */
@media (max-width: 768px) {
    .ln-new-products .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ln-hero {
        min-height: 60vh;
        align-items: flex-end;
    }

    /* Hide entire hero on mobile */
    .ln-hero {
        display: none !important;
    }

    .ln-hero__content {
        padding: 4rem 1.5rem 2rem;
    }

    .ln-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .ln-btn {
        width: 100%;
        max-width: 280px;
    }

    .ln-socials__list {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .ln-new-products .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .ln-hero__content {
        padding: 3rem 1rem 1.5rem;
    }

    .ln-hero__title {
        font-size: 2.25rem;
    }
}
