/*
 * ENERGY 106 — COMPETITIONS REBUILD
 * Fully isolated public listing styles.
 */

.ecomp,
.ecomp * {
    box-sizing: border-box;
}

.ecomp {
    --pink: var(--vibe-button-bg, #ed1584);
    --purple: #230637;
    --border: var(--vibe-border-medium, rgba(255, 255, 255, 0.10));
    --muted: #c8b0d4;

    width: 100%;
    min-width: 0;
    color: #fff;
    container-type: inline-size;
}

.ecomp a {
    text-decoration: none;
}

.ecomp__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 22px;
}

.ecomp__heading-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 17px;
}

.ecomp__heading-title > span {
    width: 6px;
    height: 46px;
    flex: 0 0 6px;
    background: var(--pink);
}

.ecomp__heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.ecomp__entries {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    transition: border-color .2s, background .2s;
}

.ecomp__entries:hover {
    border-color: var(--pink);
    background: rgba(237,21,132,.11);
}

.ecomp__entries svg {
    width: 17px;
    height: 17px;
    stroke: var(--pink);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ecomp__feature {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--vibe-bg-card, #250638);
    align-items: stretch;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.ecomp__feature-media,
.ecomp__card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    background: var(--vibe-bg-card-deep, #170621);
}

.ecomp__feature-media {
    aspect-ratio: auto;
    background: var(--vibe-bg-card-deep, #170621);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 280px;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 0;
}

.ecomp__feature-media img,
.ecomp__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    min-width: 0;
}

.ecomp__media-label {
    position: absolute;
    left: 15px;
    top: 15px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: rgba(28,3,41,.92);
    border-left: 3px solid var(--pink);
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
}

.ecomp__media-label svg {
    width: 16px;
    height: 16px;
    stroke: var(--pink);
    stroke-width: 2;
    stroke-linejoin: round;
}

.ecomp__feature-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px 26px;
    border-left: 1px solid var(--border);
    justify-content: center;
    background: var(--vibe-bg-card, #250638);
    position: relative;
    z-index: 1;
    align-items: flex-start;
    max-width: 100%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.ecomp__overline {
    margin-bottom: 13px;
    color: var(--pink);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .09em;
}

.ecomp__feature-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.5vw, 35px);
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    letter-spacing: -.5px;
}

.ecomp__feature-content h2 a,
.ecomp__card h3 a {
    color: inherit;
}

.ecomp__feature-description {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.ecomp__feature-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: auto;
    padding-top: 18px;
}

.ecomp__date {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.ecomp__date svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    stroke: var(--pink);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ecomp__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 47px;
    padding: 12px 23px;
    border: 1px solid var(--pink);
    border-radius: 4px;
    background: var(--pink);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: background .2s, border-color .2s;
}

.ecomp__button:hover {
    background: #c9006a;
    border-color: #c9006a;
    color: #fff;
}

.ecomp__button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ecomp__art-empty {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 170px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    background: var(--vibe-bg-card-deep, #170621);
    color: var(--pink);
}

.ecomp__art-empty svg {
    width: 75px;
    height: 75px;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.ecomp__art-empty span {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

/* EMPTY COMPETITION STATE */

.ecomp__empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    gap: 20px;
    min-height: 195px;
    padding: 27px 33px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--vibe-bg-card, #250638);
}

.ecomp__empty h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 2.8vw, 36px);
    font-weight: 950;
    line-height: 1.08;
}

.ecomp__empty p {
    max-width: 48ch;
    margin: 12px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.ecomp__empty-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.ecomp__empty-link span {
    color: var(--pink);
    font-size: 20px;
}

.ecomp__empty-art {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ecomp__empty-art svg {
    width: 130px;
    height: 130px;
    stroke: var(--pink);
    stroke-width: 2;
    stroke-linejoin: round;
}

/* MORE COMPETITIONS */

.ecomp__more,
.ecomp__how,
.ecomp__winners {
    margin-top: 30px;
}

.ecomp__section-heading {
    margin-bottom: 16px;
}

.ecomp__section-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--pink);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.ecomp__section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 950;
    line-height: 1.15;
}

.ecomp__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.ecomp__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--vibe-bg-card, #250638);
}

.ecomp__card-media {
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--border);
}

.ecomp__card-label {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 6px 12px;
    background: var(--pink);
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.ecomp__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 21px;
}

.ecomp__card h3 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.12;
}

.ecomp__card-body > p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.ecomp__card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

.ecomp__card .ecomp__button {
    min-height: 43px;
}

/* COMPACT ENTRY INSTRUCTIONS */

.ecomp__how {
    padding: 19px 21px 22px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--vibe-bg-card, #250638);
    height: auto;
    min-height: 0;
    margin-top: 22px;
}

.ecomp__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-rows: none;
    grid-auto-rows: auto;
    align-items: stretch;
    align-content: start;
    width: 100%;
    height: auto;
    min-height: 0;
}

.ecomp__steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--vibe-border-medium, rgba(255, 255, 255, 0.10));
    border-radius: 4px;
    background: var(--vibe-bg-card, #250638);
    min-height: 0;
    margin: 0;
    box-shadow: none;
    align-self: stretch;
    height: auto;
    max-height: none;
    box-sizing: border-box;
}

.ecomp__step-number {
    color: #ed1584;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.ecomp__steps h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.ecomp__steps p {
    margin: 0;
    color: #ceb8d6;
    font-size: 12px;
    line-height: 1.5;
}

/* REAL WINNERS ONLY */

.ecomp__winners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.ecomp__winner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #300940;
}

.ecomp__winner-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #541167;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
}

.ecomp__winner h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.ecomp__winner p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 12px;
}

.ecomp__winner span {
    color: var(--pink);
    font-size: 11px;
}

/* TERMS */

.ecomp__terms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px 20px;
    margin-top: 18px;
    padding: 15px 19px;
    border: 1px solid var(--vibe-border-medium, rgba(255, 255, 255, 0.10));
    border-radius: 4px;
    background: var(--vibe-bg-card, #250638);
    min-height: 0;
    height: auto;
}

.ecomp__terms strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.ecomp__terms p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.ecomp__terms a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: color .18s ease;
    border-bottom: 0;
}

.ecomp__terms a:hover,
.ecomp__terms a:focus-visible {
    color: var(--pink);
    text-decoration: none;
    border-bottom: 0;
    transform: none;
}


.ecomp__terms a span {
    color: var(--pink);
    font-size: 20px;
    transition: none;
    transform: none;
    text-decoration: none;
}

/* RESPONSIVE — ACTUAL CONTENT WIDTH */

@container (max-width: 850px) {
    .ecomp__feature {
        grid-template-columns:
            minmax(0, 1.08fr) minmax(0, 1fr) !important;
    }

    .ecomp__feature-content {
        min-width: 0;
        padding: 20px;
    }

    .ecomp__feature-content h2 {
        font-size: 25px;
        line-height: 1.15;
    }

    .ecomp__steps {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
        grid-auto-rows: auto;
        align-items: stretch;
        gap: 10px;
    }

    .ecomp__steps li {
        align-self: stretch;
        height: auto;
        min-height: 0;
        padding: 12px;
    }
}

@container (max-width: 650px) {
    .ecomp__feature {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
        min-height: 0 !important;
        border-radius: 4px;
    }

    .ecomp__feature-media {
        display: block;
        align-self: stretch;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
        overflow: hidden;
    }

    .ecomp__feature-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .ecomp__feature-content {
        min-width: 0;
        padding: 17px 15px;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .ecomp__feature-content h2 {
        font-size: clamp(21px, 5.5vw, 25px);
        line-height: 1.16;
        overflow-wrap: anywhere;
    }

    .ecomp__feature-description {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.55;
    }

    .ecomp__feature-bottom {
        margin-top: 12px;
        padding-top: 0;
        gap: 11px;
    }

    .ecomp__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        border-radius: 4px;
    }

    .ecomp__grid,
    .ecomp__winners-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .ecomp__card {
        min-width: 0;
        border-radius: 4px;
    }

    .ecomp__card-media {
        height: auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .ecomp__card-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .ecomp__card-body {
        min-width: 0;
        padding: 15px;
    }

    .ecomp__card h3 {
        font-size: 19px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .ecomp__card-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ecomp__more,
    .ecomp__how,
    .ecomp__winners {
        margin-top: 20px;
    }

    .ecomp__how {
        padding: 16px;
        border-radius: 4px;
    }

    .ecomp__steps {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-rows: auto;
        gap: 10px;
    }

    .ecomp__steps li {
        display: flex;
        align-items: flex-start;
        align-self: stretch;
        gap: 12px;
        width: 100%;
        min-height: 0;
        height: auto;
        padding: 12px;
        border-radius: 4px;
    }

    .ecomp__step-number {
        flex: 0 0 auto;
        font-size: 23px;
        line-height: 1;
    }

    .ecomp__terms {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        padding: 15px;
        border-radius: 4px;
    }

    .ecomp__terms a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        max-width: 100%;
        gap: 10px;
    }

    .ecomp__empty {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 20px;
    }

    .ecomp__empty-art {
        display: none;
    }
}

@container (max-width: 430px) {
    .ecomp__heading {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
    }

    .ecomp__heading-title {
        min-width: 0;
        gap: 11px;
    }

    /* Standard Vibe controls heading font and bar. */

    .ecomp__entries {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        max-width: 100%;
        padding: 10px 12px;
        font-size: 11px;
        border-radius: 4px;
    }

    .ecomp__feature-content {
        padding: 15px 13px;
    }

    .ecomp__feature-content h2 {
        font-size: 21px;
        line-height: 1.17;
    }

    .ecomp__media-label {
        top: 9px;
        left: 9px;
        padding: 7px 9px;
        font-size: 9px;
    }

    .ecomp__card-body {
        padding: 13px;
    }

    .ecomp__how,
    .ecomp__terms {
        padding: 13px;
    }

    .ecomp__steps li {
        padding: 11px;
    }

    .ecomp__step-number {
        font-size: 23px;
    }
}


