/* ==========================================================================
   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;
}

/* Ambient neon glow behind the hero image — bleeds color into the dark bg */
.ln-hero--has-bg::before {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(233, 30, 140, 0.15), transparent 60%),
        radial-gradient(ellipse at 30% 60%, rgba(157, 78, 221, 0.12), transparent 50%),
        radial-gradient(ellipse at 70% 40%, rgba(0, 229, 255, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

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

/* Feather the image edges into the dark background with colored glow */
.ln-hero__image-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        /* Bottom fade — blends into text/dark area */
        linear-gradient(to top, var(--ln-bg-primary) 0%, rgba(10, 10, 15, 0.6) 15%, transparent 35%),
        /* Top fade */
        linear-gradient(to bottom, var(--ln-bg-primary) 0%, transparent 12%),
        /* Left fade with magenta tint */
        linear-gradient(to right, var(--ln-bg-primary) 0%, rgba(233, 30, 140, 0.05) 8%, transparent 18%),
        /* Right fade with purple tint */
        linear-gradient(to left, var(--ln-bg-primary) 0%, rgba(157, 78, 221, 0.05) 8%, transparent 18%);
}

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

.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;
    /* Soft neon glow on the title text */
    text-shadow:
        0 0 20px rgba(233, 30, 140, 0.3),
        0 0 60px rgba(233, 30, 140, 0.15),
        0 0 120px rgba(157, 78, 221, 0.1);
}

.ln-hero__subtitle {
    display: block;
    width: 100%;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--ln-text-secondary);
    margin-bottom: 1.5rem;
    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);
}

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

.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: 2.5rem 0 3rem;
    margin-top: 0;
}

.ln-new-products .ln-divider {
    margin: 1rem 0 1.5rem;
}

.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 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 > .ast-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ln-activity .ln-section__heading,
.ln-activity .ln-divider {
    width: 100%;
}

.ln-activity__grid {
    width: 100%;
    margin-top: 2rem;
}

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

.ln-socials > .ast-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ln-socials .ln-section__heading,
.ln-socials .ln-divider {
    width: 100%;
}

/* Responsive — Tablet landscape / small desktop */
@media (max-width: 1024px) {
    .ln-new-products .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.25rem;
    }
}

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

    .ln-new-products > .ast-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .ln-new-products {
        padding: 2rem 0 2.5rem;
    }

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

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

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

/* Responsive — Phone */
@media (max-width: 600px) {
    /* Hide hero on phones — too tall for small screens */
    .ln-hero {
        display: none !important;
    }

    .ln-section__heading {
        font-size: 1.35rem;
    }

    .ln-new-products > .ast-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

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