/*
  ============================================
  ==  SECTION: EDITOR'S PICKS SHOWCASE
  ============================================
*/
.lg-ep {
    position: relative;
    z-index: 25;
    margin-top: -100px;
    background-color: #000;
    padding: 80px 0;
    overflow: hidden;
    --lg-font-body: 'Inter', sans-serif;
    --lg-font-heading: 'Space Grotesk', sans-serif;
    font-family: var(--lg-font-body);
}

@media (min-width: 992px) {
    .lg-ep {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .lg-ep {
        margin-top: 0;
    }
}

/* Row wrapper */
.lg-ep__row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.lg-ep__row + .lg-ep__row {
    margin-top: 20px;
}

/* Track: horizontal flex, duplicated items for seamless loop */
.lg-ep__track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

/* Row 1: slide right to left */
.lg-ep__track--left {
    animation: lgEpScrollLeft 30s linear infinite;
}

/* Row 2: slide left to right (same keyframes, reversed) */
.lg-ep__track--right {
    animation: lgEpScrollLeft 35s linear infinite reverse;
}

@keyframes lgEpScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover */
.lg-ep__row:hover .lg-ep__track {
    animation-play-state: paused;
}

/* Individual item */
.lg-ep__item {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.lg-ep__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lg-ep__item:hover img {
    transform: scale(1.05);
}

/* Prompt buttons */
.lg-ep__item {
    position: relative;
}

.lg-ep__btn-group {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2;
}

.lg-ep__item:hover .lg-ep__btn-group {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lg-ep__use-prompt,
.lg-ep__remix-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #C8FF5C;
    border: 1px solid rgba(200, 255, 92, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-family: var(--lg-font-heading);
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lg-ep__use-prompt:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.lg-ep__remix-btn,
.lg-ep__remix-btn:link,
.lg-ep__remix-btn:visited,
.lg-ep__remix-btn:focus,
.lg-ep__remix-btn:active {
    text-decoration: none !important;
}
.lg-ep__remix-btn:hover {
    background: #C8FF5C !important;
    color: black !important;
}

/* Editor placeholder items */
.lg-ep__item--placeholder {
    background: #111;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.lg-ep__item-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .lg-ep {
        margin-top: -72px;
        padding: 50px 0;
    }

    .lg-ep__item {
        width: 160px;
        height: 160px;
        border-radius: 12px;
    }

    .lg-ep__track {
        gap: 14px;
    }

    .lg-ep__row + .lg-ep__row {
        margin-top: 14px;
    }
}

@media (max-width: 480px) {
    .lg-ep {
        margin-top: -60px;
    }

    .lg-ep__item {
        width: 130px;
        height: 130px;
    }

    .lg-ep__track {
        gap: 10px;
    }
}

/* Gutenberg editor */
.wp-block-logogen-editors-picks {
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 991.98px) {
    .lg-ep {
        margin-top: 0 !important;
        padding-top: 150px !important;
    }
}
