/* ================================================================
   UBA Nominations Page
   Design ref: Figma node 437:131
   Colors: #202224 (bg), #d2ee4e (accent)
   Fonts:  Bebas Neue Cyrillic (display) · Manrope (body)
   ================================================================ */

.uba-nom-page {
    background: #202224;
    color: #fff;
    padding-bottom: 80px;
}

/* ── Hero: top-level category navigation ───────────────────────── */

.uba-nom-hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.uba-nom-hero__cats {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 36px;
}

.uba-nom-hero__left {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 48px;
    padding-top: 22px;
    padding-right: 48px;
}

.uba-nom-hero__right {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 48px;
    padding-top: 22px;
    padding-left: 48px;
}

/* Active / center category – big display title */
.uba-nom-hero__cat--active {
    flex: 0 0 auto;
    font-family: 'Bebas Neue', 'Bebas Neue Cyrillic', sans-serif;
    font-size: 100px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    user-select: none;
    white-space: nowrap;
}

/* Non-active categories – small side labels with underline */
.uba-nom-hero__cat--side {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.uba-nom-hero__cat--side:hover {
    opacity: 0.75;
    background: none;
    box-shadow: none;
}

.uba-nom-hero__cat--side > span {
    font-family: 'Bebas Neue', 'Bebas Neue Cyrillic', sans-serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.64px;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.uba-nom-hero__cat-line {
    height: 2px;
    background: #fff;
    margin-top: 6px;
    width: 80px;
}

.uba-nom-hero__desc {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 100%;
    margin: 0 auto;
}

.uba-nom-hero__desc p {
    margin: 0 0 0.75em;
}

.uba-nom-hero__desc p:last-child {
    margin-bottom: 0;
}

/* Hide WP page title hero — nominations-page.css is only loaded on this page */
.uba-page-hero {
    display: none;
}

.uba-nom-desc-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: none;
    border: 1.5px solid #d2ee4e;
    border-radius: 30px;
    padding: 10px 22px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #d2ee4e;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s;
}

.uba-nom-desc-open[hidden] { display: none !important; }

.uba-nom-desc-open:hover {
    background: #d2ee4e;
    color: #000;
}

/* ── Category description modal ─────────────────────────────────── */

.uba-nom-desc-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.uba-nom-desc-overlay[hidden] { display: none !important; }

.uba-nom-desc-modal-box {
    background: #1c1e21;
    border-radius: 16px;
    padding: 40px 44px 36px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.uba-nom-desc-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

.uba-nom-desc-modal-close:hover { color: #fff; }

.uba-nom-desc-modal-content p {
    margin: 0 0 1em;
    color: rgba(255, 255, 255, 0.85);
}

.uba-nom-desc-modal-content p:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
    .uba-nom-desc-modal-box {
        padding: 32px 24px 28px;
        border-radius: 12px;
    }
}

/* ── Subcategory tabs ───────────────────────────────────────────── */

.uba-nom-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    min-height: 64px; /* keeps layout stable while AJAX loads */
}

.uba-nom-tabs {
    display: inline-flex;
    gap: 10px;
    background: #fff;
    border-radius: 50px;
    padding: 10px;
    flex-wrap: wrap;
    justify-content: center;
}


.uba-nom-tab {
    font-family: 'Bebas Neue', 'Bebas Neue Cyrillic', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #000;
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 17px 40px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.uba-nom-tab.is-active {
    background: #d2ee4e;
    color: #202224;
}

.uba-nom-tab:hover:not(.is-active) {
    background: rgba(0, 0, 0, 0.08);
}

/* ── Section title ──────────────────────────────────────────────── */

.uba-nom-section-title {
    font-family: 'Bebas Neue', 'Bebas Neue Cyrillic', sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.96px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 48px;
}

/* ── Content wrapper ────────────────────────────────────────────── */

.uba-nom-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 62px;
}

/* ── Nominations list ───────────────────────────────────────────── */

.uba-nom-list {
    transition: opacity 0.2s;
}

.uba-nom-list--loading {
    opacity: 0.35;
    pointer-events: none;
}

/* ── Nomination card ────────────────────────────────────────────── */

.uba-nom-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.uba-nom-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Thumbnail */
.uba-nom-card__thumb {
    flex-shrink: 0;
    width: 144px;
    height: 192px;
    border-radius: 12px;
    overflow: hidden;
}

.uba-nom-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info */
.uba-nom-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.uba-nom-card__title {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    margin: 0;
    text-transform: capitalize;
}

.uba-nom-card__desc {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Actions */
.uba-nom-card__actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.uba-nom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 77px;
    border-radius: 33px;
    font-family: 'Bebas Neue', 'Bebas Neue Cyrillic', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.8px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    padding: 0 42px;
    min-width: 260px;
}

.uba-nom-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.uba-nom-btn--primary {
    background: #d2ee4e;
    color: #202224;
    border: none;
}

.uba-nom-btn--secondary {
    background: #202224;
    color: #d2ee4e;
    border: 1px solid #d2ee4e;
}

.uba-nom-arrow {
    flex-shrink: 0;
}

/* ── Empty / loading states ─────────────────────────────────────── */

.uba-nom-empty {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    padding: 60px 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .uba-nom-content {
        padding: 0 32px;
    }
}

@media (max-width: 900px) {
    .uba-nom-hero__cat--active {
        font-size: 72px;
    }

    .uba-nom-hero__cat--side > span {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    /* ── Hero ──────────────────────────────────── */
    .uba-nom-hero {
        padding: 60px 20px 40px;
    }

    .uba-nom-hero__cats {
        position: relative;
        min-height: 180px;
        align-items: center;
        justify-content: center;
    }

    /* Left-side items: absolute top-left */
    .uba-nom-hero__left {
        position: absolute;
        top: 0;
        flex: none;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0;
    }

    /* Right-side items: absolute bottom-left */
    .uba-nom-hero__right {
        position: absolute;
        bottom: 0;
        flex: none;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0;
    }

    .uba-nom-hero__cat--side > span {
        font-size: 20px;
    }

    .uba-nom-hero__cat--active {
        font-size: 56px;
    }

    /* ── Subcategory tabs — vertical list ──────── */
    .uba-nom-tabs-wrap {
        overflow-x: visible;
        scroll-behavior: auto;
    }

    .uba-nom-tabs {
        flex-direction: column;
        flex-wrap: nowrap;
        border-radius: 12px;
        align-items: stretch;
        justify-content: flex-start;
        width: min(300px, calc(100vw - 40px));
    }

    .uba-nom-tab {
        font-size: 18px;
        letter-spacing: 0.36px;
        padding: 17px 40px;
        text-align: center;
        width: 100%;
        border-radius: 50px;
    }

    /* ── Nominations content ───────────────────── */
    .uba-nom-content {
        padding: 0 16px;
    }

    .uba-nom-section-title {
        font-size: 30px;
    }

    .uba-nom-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .uba-nom-card__thumb {
        width: 100%;
        height: 192px;
        border-radius: 16px;
    }

    .uba-nom-card__title {
        font-size: 20px;
        text-align: center;
        width: 100%;
    }

    .uba-nom-card__desc {
        font-size: 14px;
    }

    .uba-nom-card__info {
        width: 100%;
    }

    .uba-nom-card__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .uba-nom-btn {
        height: 52px;
        font-size: 16px;
        min-width: 0;
        width: 100%;
        flex: none;
    }
    
    .uba-nom-card__thumb img {
        width: auto;
        margin: 0 auto;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .uba-nom-hero {
        padding:  100px 16px 36px;
    }

    .uba-nom-hero__cat--active {
        font-size: 40px;
    }

    .uba-nom-hero__cats {
        min-height: 150px;
    }
}
