/**
 * Landing v3 — latest cups section + recipe cards
 * Used by resources/views/landing/v3/components/latest-cups.blade.php
 */

/* Section */
.landing-latest-cups {
    position: relative;
    background: linear-gradient(135deg, #020617 0%, #0f172a 45%, #1e293b 78%, #1a2e05 100%);
}

/* Subtle wallpaper — silhouette (slight, readable under scrim) */
.lc-wallpaper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.lc-wallpaper-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.42;
    filter: grayscale(100%) contrast(1.2) brightness(0.5) saturate(0);
}

.lc-wallpaper-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.72) 0%,
        rgba(15, 23, 42, 0.68) 45%,
        rgba(30, 41, 59, 0.62) 78%,
        rgba(26, 46, 5, 0.7) 100%
    );
}

.lc-glow {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.lc-glow-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: 10%;
    background: rgba(132, 204, 22, 0.1);
}

.lc-glow-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: 5%;
    background: rgba(132, 204, 22, 0.06);
}

.lc-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b7d84b;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lc-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.lc-title-before {
    color: #fff;
}

.lc-title-highlight {
    color: #c4e538;
}

.lc-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

.lc-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: transparent;
    color: #b7d84b;
    border: 1.5px solid #84cc16;
    box-shadow: 0 0 0 1px rgba(132, 204, 22, 0.12);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.lc-browse-btn:hover {
    background: rgba(132, 204, 22, 0.12);
    border-color: #a3e635;
    color: #c4e538;
    box-shadow: 0 0 14px rgba(132, 204, 22, 0.28);
}

.lc-browse-btn i {
    color: #84cc16;
}

.lc-type-toggle {
    display: flex;
    width: 100%;
    max-width: 20rem;
    gap: 0.2rem;
    margin-bottom: 0.85rem;
    padding: 0.15rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(132, 204, 22, 0.2);
}

.lc-type-toggle-btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lc-type-toggle-btn:hover {
    color: #e2e8f0;
}

.lc-type-toggle-btn.is-active {
    color: #0f172a;
    background: #a6ff00;
    border-color: #84cc16;
    box-shadow: 0 0 8px rgba(166, 255, 0, 0.28);
}

.lc-type-toggle-btn i {
    font-size: 0.65rem;
}

@media (min-width: 768px) {
    .landing-latest-cups .lc-type-toggle {
        width: auto;
        max-width: none;
    }

    .landing-latest-cups .lc-type-toggle-btn {
        flex: 0 1 auto;
        padding: 0.35rem 0.85rem;
    }
}

.lc-events-pane:not(.is-active) {
    display: none;
}

.landing-latest-cups .v3-cup-recipe-status .v3-meetup-vibe-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.42rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.landing-latest-cups .v3-meetup-vibe-chip--casual {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.landing-latest-cups .v3-meetup-vibe-chip--competitive {
    background: #0f172a;
    color: #a6ff00;
    border-color: rgba(166, 255, 0, 0.35);
}

.landing-latest-cups .events-slider-container {
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
}

.lc-nav-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.lc-nav-btn:hover {
    background: rgba(132, 204, 22, 0.15);
    border-color: rgba(132, 204, 22, 0.3);
    color: #b7d84b;
}

.lc-nav-prev {
    left: -0.5rem;
    transform: translateY(-50%);
}

.lc-nav-next {
    right: -0.5rem;
    transform: translateY(-50%);
}

@media (min-width: 768px) {
    .lc-nav-prev {
        left: -1.25rem;
    }

    .lc-nav-next {
        right: -1.25rem;
    }
}

.lc-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.lc-dot.is-active {
    background: #b7d84b;
    box-shadow: 0 0 8px rgba(183, 216, 75, 0.4);
    width: 1.5rem;
    border-radius: 9999px;
}

.lc-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.lc-empty i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.lc-empty h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
}

.lc-empty p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Recipe cards (mirrors cup v3 index grid min 260px) */
.landing-latest-cups .lc-events-slide {
    flex-shrink: 0;
    width: 260px;
    max-width: 260px;
}

.landing-latest-cups .v3-cup-recipe-card {
    position: relative;
    cursor: pointer;
    border-radius: 1.35rem;
    background: linear-gradient(165deg, #1a1f28 0%, #141820 55%, #12161e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-latest-cups .v3-cup-recipe-card:hover {
    transform: translateY(-3px);
    border-color: rgba(132, 204, 22, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(132, 204, 22, 0.12);
}

.landing-latest-cups .v3-cup-recipe-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.landing-latest-cups .v3-cup-recipe-media {
    position: relative;
    height: 168px;
    border-radius: 1.05rem;
    overflow: hidden;
    margin: 0.65rem;
    margin-bottom: 0;
    background: linear-gradient(160deg, #0f172a 0%, #334155 100%);
}

.landing-latest-cups .v3-cup-recipe-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-latest-cups .v3-cup-recipe-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dbeafe;
    font-size: 2rem;
}

.landing-latest-cups .v3-cup-recipe-status {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 2;
}

.landing-latest-cups .v3-cup-recipe-status > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.42rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.landing-latest-cups .v3-cup-recipe-status .v3-status-open {
    background: #4ade80;
    color: #052e16;
    border-color: #22c55e;
}

.landing-latest-cups .v3-cup-recipe-status .v3-status-ongoing {
    background: #60a5fa;
    color: #0f172a;
    border-color: #3b82f6;
}

.landing-latest-cups .v3-cup-recipe-status .v3-status-finished {
    background: #94a3b8;
    color: #0f172a;
    border-color: #64748b;
}

.landing-latest-cups .v3-cup-recipe-status .v3-status-upcoming {
    background: #fbbf24;
    color: #451a03;
    border-color: #f59e0b;
}

.landing-latest-cups .v3-cup-recipe-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem 0.9rem;
    flex: 1 1 auto;
}

.landing-latest-cups .v3-cup-recipe-title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.12;
    font-weight: 800;
    color: #f8fafc;
}

.landing-latest-cups .v3-cup-recipe-head {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.landing-latest-cups .v3-cup-recipe-subline {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.3;
}

.landing-latest-cups .v3-cup-recipe-subline i {
    font-size: 0.7rem;
    margin-top: 0.12rem;
    color: rgba(132, 204, 22, 0.75);
    flex-shrink: 0;
}

.landing-latest-cups .v3-cup-recipe-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem;
    padding: 0.32rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-latest-cups .v3-cup-recipe-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    max-width: 100%;
    padding: 0.16rem 0.4rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    min-width: 0;
}

.landing-latest-cups .v3-cup-recipe-chip--level {
    color: #d9f99d;
    background: rgba(63, 98, 18, 0.42);
    border-color: rgba(166, 255, 0, 0.32);
}

.landing-latest-cups .v3-cup-recipe-chip--age {
    color: #bae6fd;
    background: rgba(12, 74, 110, 0.48);
    border-color: rgba(56, 189, 248, 0.38);
}

.landing-latest-cups .v3-cup-recipe-chip--gender {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.38);
    border-color: rgba(251, 191, 36, 0.32);
}

.landing-latest-cups .v3-cup-recipe-chip-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-latest-cups .v3-cup-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.landing-latest-cups .v3-cup-recipe-logos {
    margin-top: 0.05rem;
}

.landing-latest-cups .v3-cup-recipe-logo-item {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.26rem 0.38rem;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.landing-latest-cups .v3-cup-recipe-logo-dot {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    overflow: hidden;
    background: #1e293b;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.62rem;
}

.landing-latest-cups .v3-cup-recipe-logo-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-latest-cups .v3-cup-recipe-logo-text {
    min-width: 0;
}

.landing-latest-cups .v3-cup-recipe-logo-name {
    display: block;
    font-size: 0.65rem;
    color: #e2e8f0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .landing-latest-cups .lc-header {
        align-items: center;
        text-align: center;
    }

    .landing-latest-cups .lc-header-copy {
        width: 100%;
    }

    .landing-latest-cups .lc-eyebrow {
        justify-content: center;
    }

    .landing-latest-cups .lc-title {
        text-align: center;
    }

    .landing-latest-cups .lc-subtitle {
        text-align: center;
    }

    .landing-latest-cups .lc-browse-btn {
        align-self: center;
        justify-content: center;
    }

    .landing-latest-cups .lc-type-toggle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-latest-cups .v3-cup-recipe-title {
        text-align: center;
    }

    .landing-latest-cups .v3-cup-recipe-subline {
        justify-content: center;
        text-align: center;
    }

    .landing-latest-cups .v3-cup-recipe-subline i {
        margin-top: 0;
    }

    .landing-latest-cups .v3-cup-recipe-chips {
        justify-content: center;
    }

    .landing-latest-cups .v3-cup-recipe-status {
        left: 0.35rem;
        right: 0.35rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .landing-latest-cups .v3-cup-recipe-logo-item {
        justify-content: center;
    }

    .landing-latest-cups .v3-cup-recipe-logo-name {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .landing-latest-cups .lc-events-slide {
        width: min(100%, 260px);
        max-width: 260px;
    }

    .landing-latest-cups .v3-cup-recipe-media {
        height: 148px;
        margin: 0.5rem;
        margin-bottom: 0;
    }

    .landing-latest-cups .v3-cup-recipe-body {
        padding: 0.65rem 0.55rem 0.72rem;
    }

    .landing-latest-cups .v3-cup-recipe-title {
        font-size: 0.875rem;
    }

    .landing-latest-cups .v3-cup-recipe-subline {
        font-size: 0.68rem;
    }
}
