/* =====================================================
   EXODIA TOURNAMENTS LIST
   Shortcode: [list_tournaments_v2]
   ===================================================== */

.exodia-list-tournaments,
.exodia-list-tournaments * {
    box-sizing: border-box;
}

.exodia-list-tournaments {
    --exodia-red: #ff2b20;
    --exodia-red-dark: #b91410;
    --exodia-black: #050505;
    --exodia-card: #0d0d0d;
    --exodia-card-2: #141414;
    --exodia-border: rgba(255,255,255,.14);
    --exodia-border-strong: rgba(255,255,255,.24);
    --exodia-text: #ffffff;
    --exodia-muted: rgba(255,255,255,.68);
    --exodia-muted-2: rgba(255,255,255,.46);
    --exodia-font-display: "Barlow Condensed", Arial, sans-serif;
    --exodia-font-body: "Barlow", Arial, sans-serif;

    width: 100%;
    color: var(--exodia-text);
    font-family: var(--exodia-font-body);
    padding: 40px;
}

/* Group */
.exodia-tournament-group {
    position: relative;
    margin-bottom: 68px;
}

.exodia-tournament-group:last-child {
    margin-bottom: 0;
}

.exodia-tournament-group__header {
    margin-bottom: 24px;
}

.exodia-tournament-group__kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--exodia-red);
    font-family: var(--exodia-font-display);
    font-size: 13px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.exodia-tournament-group__header h2 {
    position: relative;
    margin: 0;
    color: #fff;
    font-family: var(--exodia-font-display);
    font-size: clamp(38px, 4vw, 64px);
    font-weight: 900;
    font-style: italic;
    line-height: .86;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.exodia-tournament-group__header h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 14px;
    background: var(--exodia-red);
    box-shadow: 0 0 18px rgba(255,43,32,.75);
}

/* Grid */
.exodia-tournament-group__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Card */
.exodia-tournament-card {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--exodia-border);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
        var(--exodia-card);
    box-shadow:
        0 18px 50px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.05);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.exodia-tournament-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,43,32,.48);
    box-shadow:
        0 24px 70px rgba(0,0,0,.44),
        0 0 0 1px rgba(255,43,32,.12),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.exodia-tournament-card__media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: #111;
}

.exodia-tournament-card__image,
.exodia-tournament-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    filter: saturate(.95) contrast(1.08) brightness(.74);
    transition: transform .45s ease, filter .45s ease;
}

.exodia-tournament-card:hover .exodia-tournament-card__image {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.12) brightness(.84);
}

.exodia-tournament-card__image-placeholder {
    background:
        radial-gradient(circle at 25% 20%, rgba(255,43,32,.35), transparent 34%),
        linear-gradient(135deg, #252525, #080808);
}

.exodia-tournament-card__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(255,43,32,.22), transparent 26%),
        linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.58) 42%, rgba(0,0,0,.94) 100%);
    pointer-events: none;
}

.exodia-tournament-card__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    min-width: 42px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--exodia-red), #ff4a22);
    color: #fff;
    font-family: var(--exodia-font-display);
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: .04em;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(255,43,32,.28);
}

.exodia-tournament-card__ribbon {
    position: absolute;
    top: 18px;
    right: -46px;
    z-index: 3;
    width: 170px;
    padding: 7px 0;
    transform: rotate(35deg);
    background: #111;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    text-align: center;
    font-family: var(--exodia-font-display);
    font-size: 12px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Content */
.exodia-tournament-card__content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 84px 20px 20px;
}

.exodia-tournament-card__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.82);
    font-family: var(--exodia-font-display);
    font-size: 15px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.exodia-tournament-card__title {
    margin: 0 0 13px;
    color: #fff;
    font-family: var(--exodia-font-display);
    font-size: clamp(30px, 2.6vw, 42px);
    font-weight: 900;
    font-style: italic;
    line-height: .82;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.exodia-tournament-card__title a {
    color: inherit;
    text-decoration: none;
}

.exodia-tournament-card__title a:hover {
    color: #fff;
}

.exodia-tournament-card__meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.exodia-tournament-card__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--exodia-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.exodia-tournament-card__small-meta {
    color: var(--exodia-muted-2) !important;
    font-size: 12px !important;
}

.exodia-tournament-card__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: var(--exodia-red);
    box-shadow: 0 0 14px rgba(255,43,32,.8);
}

.exodia-tournament-card__calendar {
    width: 12px;
    flex: 0 0 12px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
}

/* Actions */
.exodia-tournament-card__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.exodia-tournament-card__button,
.exodia-tournament-card__status {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-family: var(--exodia-font-display);
    font-size: 13px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.exodia-tournament-card__button {
    gap: 12px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(0,0,0,.18);
    color: #fff;
    transition: .22s ease;
}

.exodia-tournament-card__button:hover {
    border-color: var(--exodia-red);
    background: rgba(255,43,32,.12);
    color: #fff;
}

.exodia-tournament-card__status {
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.76);
}

.exodia-tournament-card__status.is-open,
.exodia-tournament-card__status.is-current {
    border-color: rgba(255,43,32,.75);
    background: var(--exodia-red);
    color: #fff;
}

.exodia-tournament-card__status.is-coming {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.1);
    color: #fff;
}

.exodia-tournament-card__status.is-suspended,
.exodia-tournament-card__status.is-closed,
.exodia-tournament-card__status.is-paused {
    border-color: rgba(255,255,255,.16);
    background: rgba(0,0,0,.45);
    color: rgba(255,255,255,.72);
}

/* Empty */
.exodia-tournaments-empty {
    padding: 28px;
    border: 1px solid var(--exodia-border);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    color: var(--exodia-muted);
    text-align: center;
    font-size: 15px;
}

/* Compatibility: remove old nested shortcode spacing if theme CSS still exists */
.exodia-list-tournaments .widget-tournaments,
.exodia-list-tournaments .container-grid-widget,
.exodia-list-tournaments .container-grid-element,
.exodia-list-tournaments .container-grid,
.exodia-list-tournaments .item {
    all: unset;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1180px) {
    .exodia-tournament-group__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .exodia-list-tournaments{
        padding: 10px;
    }
    .exodia-tournament-group {
        margin-bottom: 54px;
    }

    .exodia-tournament-group__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .exodia-tournament-card,
    .exodia-tournament-card__content {
        min-height: 290px;
    }
}

@media (max-width: 640px) {
    .exodia-tournament-group__header {
        margin-bottom: 18px;
    }

    .exodia-tournament-group__header h2 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .exodia-tournament-group__grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 2px 14px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .exodia-tournament-group__grid::-webkit-scrollbar {
        display: none;
    }

    .exodia-tournament-card {
        width: 82vw;
        min-width: 82vw;
        max-width: 82vw;
        scroll-snap-align: start;
        border-radius: 16px;
    }

    .exodia-tournament-card,
    .exodia-tournament-card__content {
        min-height: 310px;
    }

    .exodia-tournament-card__content {
        padding: 78px 17px 17px;
    }

    .exodia-tournament-card__title {
        font-size: 36px;
    }

    .exodia-tournament-card__actions {
        grid-template-columns: 1fr;
    }

    .exodia-tournament-card__status {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .exodia-tournament-card {
        width: 86vw;
        min-width: 86vw;
        max-width: 86vw;
    }

    .exodia-tournament-card__title {
        font-size: 32px;
    }

    .exodia-tournament-card__meta span {
        font-size: 12px;
    }
}