/* ── Grouped sidebar accordion ───────────────────────────────────── */
.cat-group-details { margin-bottom:6px; }
.sidebar-group-hidden { display:none; }
#sidebarShowMore:hover { background:rgba(190,155,63,.06); border-color:#be9b3f; }
.cat-group-summary {
    font-size:.68rem; font-weight:800; color:#be9b3f; text-transform:uppercase;
    letter-spacing:.9px; padding:9px 4px; cursor:pointer; list-style:none;
    display:flex; align-items:center; justify-content:space-between;
    border-bottom:2px solid rgba(190,155,63,.2); margin-bottom:4px;
    user-select:none;
}
.cat-group-summary::-webkit-details-marker { display:none; }
.cat-group-chevron { font-size:.58rem; opacity:.7; transition:transform .2s; }
.cat-group-details[open] .cat-group-chevron { transform:rotate(180deg); }
.cat-group-body { padding-top:2px; }

/* ── Category nav ────────────────────────────────────────────────── */
.cat-nav .nav-link {
    color: #000000; padding: 10px 16px; font-size: .88rem; font-weight: 600;
    border-radius: 6px; margin-bottom: 4px; border: 1px solid #eee;
    background: #fafafa; transition: all .25s; display: flex; align-items: center; gap: 8px;
}
.cat-nav .nav-link.active { background: #be9b3f; border-color: #be9b3f; color: #fff; }
.cat-nav .nav-link:hover:not(.active) { background: #fff8ee; border-color: #be9b3f; color: #be9b3f; }
.cat-nav .nav-link .count-badge {
    margin-left: auto; background: rgba(190,155,63,0.12); color: #be9b3f;
    border-radius: 20px; font-size: .7rem; font-weight: 700; padding: 2px 8px;
}
.cat-nav .nav-link.active .count-badge { background: rgba(255,255,255,0.25); color: #fff; }

/* ── Nominee cards ───────────────────────────────────────────────── */
.nominee-card {
    background: #fff; border-radius: 12px; padding: 28px 20px 20px;
    text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform .3s, box-shadow .3s; height: 100%;
    display: flex; flex-direction: column; cursor: pointer; position: relative;
}
.nominee-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.nominee-photo {
    width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 18px; border: 4px solid #f9fafc;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1); display: block;
}
.nominee-initials {
    width: 110px; height: 110px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 18px;
    font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: 1px;
}
.nominee-name { font-size: 1.05rem; color: #000000; margin-bottom: 4px; font-weight: 700; line-height: 1.3; }
.nominee-title { font-size: .82rem; color: #be9b3f; font-weight: 600; margin-bottom: 4px; }
.nominee-location { font-size: .8rem; color: #999; margin-bottom: 16px; }
.nominee-location i { color: #be9b3f; margin-right: 3px; }
.vote-bar-container { background: #f0f0f0; border-radius: 10px; height: 7px; width: 100%; margin-bottom: 6px; overflow: hidden; }
.vote-bar-fill { background: linear-gradient(90deg, #be9b3f, #000000); height: 100%; border-radius: 10px; transition: width 1s ease-in-out; }
.vote-stats { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; color: #888; margin-bottom: 16px; }
.vote-stats .vote-count { color: #be9b3f; }
.nominee-card-footer { margin-top: auto; }

/* ── Countdown widget ────────────────────────────────────────────── */
.countdown-widget { background: linear-gradient(135deg, #000000, #be9b3f); border-radius: 10px; padding: 24px; color: #fff; text-align: center; margin-bottom: 30px; }
.countdown-widget h6 { font-size: .88rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: .85; margin-bottom: 12px; }
.countdown-boxes { display: flex; gap: 8px; justify-content: center; }
.countdown-box { background: rgba(255,255,255,0.18); border-radius: 8px; padding: 10px 14px; min-width: 52px; }
.countdown-box .num { font-size: 1.6rem; font-weight: 800; display: block; line-height: 1; }
.countdown-box .lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
.countdown-closed { font-size: .92rem; opacity: .88; }

/* ── Event selector ──────────────────────────────────────────────── */
.event-selector { margin-bottom: 28px; }
.event-selector label { font-weight: 600; color: #000000; margin-bottom: 8px; display: block; }
.event-selector select { border: 2px solid #eee; border-radius: 8px; padding: 9px 14px; font-size: .9rem; width: 100%; max-width: 420px; color: #333; }
.event-selector select:focus { border-color: #be9b3f; outline: none; box-shadow: 0 0 0 3px rgba(190,155,63,0.12); }

/* ── Nominee filter row ──────────────────────────────────────────── */
.nom-filter-row { display: flex; gap: 12px; margin-bottom: 24px; align-items: stretch; }
.nom-search-wrap { position: relative; flex: 1 1 0; min-width: 0; }
.nom-search-wrap input { width: 100%; border: 2px solid #eee; border-radius: 10px; padding: 11px 44px 11px 16px; font-size: .9rem; color: #333; transition: border-color .2s; height: 46px; box-sizing: border-box; }
.nom-search-wrap input:focus { border-color: #be9b3f; outline: none; box-shadow: 0 0 0 3px rgba(190,155,63,.1); }
.nom-search-wrap .search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #aaa; pointer-events: none; }
.nom-search-wrap .search-clear { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #aaa; cursor: pointer; display: none; font-size: .85rem; }
.nom-group-wrap { flex: 0 0 160px; }
.nom-group-wrap .select2-container { width: 100% !important; }
.nom-group-wrap .select2-container--default .select2-selection--single { height: 46px; border: 2px solid #eee; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; font-size: .9rem; }
.nom-group-wrap .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: normal; padding: 0; color: #333; }
.nom-group-wrap .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.nom-group-wrap .select2-container--default.select2-container--open .select2-selection--single,
.nom-group-wrap .select2-container--default.select2-container--focus .select2-selection--single { border-color: #be9b3f; box-shadow: 0 0 0 3px rgba(190,155,63,.1); outline: none; }
.nom-cat-wrap { flex: 0 0 200px; }
.nom-cat-wrap .select2-container { width: 100% !important; }
.nom-cat-wrap .select2-container--default .select2-selection--single { height: 46px; border: 2px solid #eee; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; font-size: .9rem; }
.nom-cat-wrap .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: normal; padding: 0; color: #333; }
.nom-cat-wrap .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.nom-cat-wrap .select2-container--default.select2-container--open .select2-selection--single,
.nom-cat-wrap .select2-container--default.select2-container--focus .select2-selection--single { border-color: #be9b3f; box-shadow: 0 0 0 3px rgba(190,155,63,.1); outline: none; }
.select2-dropdown { border: 2px solid #be9b3f; border-radius: 10px; font-size: .9rem; }
.select2-results__option--highlighted { background: #be9b3f !important; }
@media (max-width: 576px) { .nom-filter-row { flex-direction: column; } .nom-group-wrap, .nom-cat-wrap { flex: none; } }
#nom-no-results { display: none; text-align: center; padding: 60px 0; color: #aaa; }

/* ── Animated vote count ─────────────────────────────────────────── */
@keyframes voteFlash { 0%{background:rgba(190,155,63,.15)} 100%{background:transparent} }
.vote-updated { animation: voteFlash .8s ease-out; border-radius: 4px; }

/* ── Velocity badge ──────────────────────────────────────────────── */
.velocity-badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff;
    padding: 2px 8px; border-radius: 20px; margin-left: 6px;
}

/* ── Winner badge ────────────────────────────────────────────────── */
.winner-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff;
    font-size: .65rem; font-weight: 800; padding: 3px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245,158,11,.4);
}

/* Search-all mode: force every tab-pane visible so search spans all categories */
#nomineeTabContent.search-all .tab-pane { opacity: 1 !important; }
#nomineeTabContent.search-all .tab-pane + .tab-pane { border-top: 1px solid #f0f0f0; padding-top: 24px; margin-top: 8px; }
