﻿/* =========================================================
   GEDIAN SPORTS - PUBLIC VOTING DETAILS
   ========================================================= */

.voting-details-page {
    --vd-green: #5B8C3B;
    --vd-green-dark: #416d29;
    --vd-green-soft: #edf5e9;
    --vd-navy: #102a43;
    --vd-text: #33444d;
    --vd-muted: #7e8a91;
    --vd-line: #dfe6dc;
    --vd-bg: #f6f8f5;
    --vd-white: #ffffff;
    --vd-purple: #74568a;
    --vd-warning: #9d741d;
    --vd-danger: #a54a4a;
    min-height: 72vh;
    padding: 14px 0 44px;
    background: radial-gradient(circle at 0 0,rgba(91,140,59,.065),transparent 28rem), var(--vd-bg);
    color: var(--vd-text);
    font-family: "Tajawal", sans-serif;
}

.vd-shell {
    width: min(1440px,calc(100% - 20px));
    margin: 0 auto;
}


/* =========================================================
   NOT FOUND
   ========================================================= */

.vd-not-found {
    max-width: 620px;
    margin: 8vh auto 0;
    padding: 34px 20px;
    border: 1px solid var(--vd-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16,42,67,.06);
    text-align: center;
}

.vd-not-found-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 8px;
    place-items: center;
    border-radius: 16px;
    background: var(--vd-green-soft);
    font-size: 1.25rem;
}

.vd-not-found h1 {
    margin: 4px 0 0;
    color: var(--vd-navy);
    font-size: 1.2rem;
    font-weight: 800;
}

.vd-not-found p {
    margin: 6px 0 16px;
    color: var(--vd-muted);
    font-size: .68rem;
}


/* =========================================================
   HERO
   ========================================================= */

.vd-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e2d2;
    border-radius: 18px;
    background: radial-gradient(circle at 8% 0,rgba(91,140,59,.13),transparent 23rem), linear-gradient(135deg,#fff,#f8fbf6);
    box-shadow: 0 9px 24px rgba(16,42,67,.045);
}

    .vd-hero.has-cover {
        background-image: var(--vd-cover);
        background-position: center;
        background-size: cover;
    }

.vd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 56%, rgba(255,255,255,.83) 100%);
}

.vd-hero-inner {
    position: relative;
    z-index: 1;
    padding: 16px;
}

.vd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    color: #8a958e;
    font-size: .39rem;
}

    .vd-breadcrumb a {
        color: var(--vd-green-dark);
        font-weight: 800;
        text-decoration: none;
    }

.vd-hero-grid {
    display: grid;
    gap: 13px;
    margin-top: 13px;
}

.vd-state-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.vd-state,
.vd-featured,
.vd-sport {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: .34rem;
    font-weight: 800;
}

    .vd-state i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
    }

    .vd-state.is-open {
        background: #eaf7e5;
        color: #3f812e;
    }

    .vd-state.is-suspended {
        background: #fff4df;
        color: var(--vd-warning);
    }

    .vd-state.is-closed {
        background: #eef1f2;
        color: #65747c;
    }

    .vd-state.is-audit {
        background: #f4eef9;
        color: var(--vd-purple);
    }

    .vd-state.is-finalized {
        background: #ece9f5;
        color: #654f80;
    }

    .vd-state.is-upcoming {
        background: #edf4fb;
        color: #4d7398;
    }

.vd-featured {
    background: #fff2be;
    color: #806714;
}

.vd-sport {
    background: #eef2ed;
    color: #68756d;
}

.vd-eyebrow {
    display: block;
    margin-top: 10px;
    color: var(--vd-green-dark);
    font-size: .41rem;
    font-weight: 900;
    letter-spacing: .08em;
    direction: ltr;
    text-align: right;
}

.vd-hero h1 {
    margin: 4px 0 0;
    color: var(--vd-navy);
    font-size: clamp(1.22rem,3vw,2rem);
    font-weight: 800;
    line-height: 1.25;
}

.vd-title-en {
    margin-top: 2px;
    color: #89949a;
    font-family: Arial,sans-serif;
    font-size: .52rem;
    text-align: right;
}

.vd-hero-description {
    max-width: 850px;
    margin: 9px 0 0;
    color: #68776e;
    font-size: .62rem;
    line-height: 1.85;
    white-space: pre-line;
}

.vd-hero-meta {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

    .vd-hero-meta > span {
        padding: 8px 9px;
        border: 1px solid rgba(91,140,59,.13);
        border-radius: 9px;
        background: rgba(255,255,255,.72);
        backdrop-filter: blur(5px);
    }

    .vd-hero-meta small,
    .vd-hero-meta strong,
    .vd-hero-meta em {
        display: block;
    }

    .vd-hero-meta small {
        color: #89958e;
        font-size: .31rem;
    }

    .vd-hero-meta strong {
        margin-top: 2px;
        color: #526159;
        font-size: .43rem;
        font-weight: 800;
    }

    .vd-hero-meta em {
        margin-top: 1px;
        color: #9aa29d;
        font-size: .28rem;
        font-style: normal;
    }

.vd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.vd-primary-button,
.vd-vote-now-button,
.vd-secondary-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: .45rem;
    font-weight: 800;
    text-decoration: none;
}

.vd-primary-button,
.vd-vote-now-button {
    border: 1px solid var(--vd-green);
    background: var(--vd-green);
    color: #fff;
}

    .vd-primary-button:hover,
    .vd-vote-now-button:hover {
        border-color: var(--vd-green-dark);
        background: var(--vd-green-dark);
        color: #fff;
    }

.vd-secondary-button {
    border: 1px solid #d5dfd2;
    background: #fff;
    color: var(--vd-green-dark);
}

    .vd-secondary-button:hover {
        border-color: var(--vd-green);
        color: var(--vd-green-dark);
    }

.vd-award-card {
    padding: 13px;
    border: 1px solid rgba(91,140,59,.17);
    border-radius: 13px;
    background: rgba(250,253,248,.88);
    backdrop-filter: blur(7px);
}

.vd-award-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #fff2c5;
    font-size: 1rem;
}

.vd-award-card > span,
.vd-award-card > strong,
.vd-award-card > small,
.vd-award-card > em,
.vd-award-card > code {
    display: block;
}

.vd-award-card > span {
    margin-top: 7px;
    color: #89958e;
    font-size: .33rem;
}

.vd-award-card > strong {
    margin-top: 2px;
    color: var(--vd-navy);
    font-size: .58rem;
    font-weight: 800;
}

.vd-award-card > small {
    margin-top: 1px;
    color: #959da2;
    font-family: Arial,sans-serif;
    font-size: .31rem;
    text-align: right;
}

.vd-award-card > em {
    margin-top: 5px;
    color: var(--vd-green-dark);
    font-size: .34rem;
    font-style: normal;
    font-weight: 700;
}

.vd-award-card > code {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    margin-top: 6px;
    padding: 3px 5px;
    border-radius: 5px;
    background: #eef2ed;
    color: #6b776f;
    font-size: .29rem;
    text-overflow: ellipsis;
}


/* =========================================================
   SECTION HEAD
   ========================================================= */

.vd-section-heading {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-between;
}

.vd-section-kicker {
    display: block;
    color: var(--vd-green-dark);
    font-size: .35rem;
    font-weight: 900;
    letter-spacing: .06em;
    direction: ltr;
    text-align: right;
}

.vd-section-heading h2 {
    margin: 2px 0 0;
    color: var(--vd-navy);
    font-size: .76rem;
    font-weight: 800;
}

.vd-section-heading p {
    margin: 2px 0 0;
    color: #89958e;
    font-size: .37rem;
}


/* =========================================================
   FINAL RESULT
   ========================================================= */

.vd-final-result {
    margin-top: 10px;
    padding: 13px;
    border: 1px solid #cadfc1;
    border-radius: 13px;
    background: radial-gradient(circle at 100% 0,rgba(255,210,91,.15),transparent 18rem), #fff;
}

.vd-final-seal {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eaf6e5;
    color: #3f812e;
    font-size: .32rem;
    font-weight: 800;
}

.vd-winner-grid {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.vd-winner-card {
    display: grid;
    grid-template-columns: 43px minmax(0,1fr);
    gap: 8px;
    align-items: center;
    padding: 9px;
    border: 1px solid #dce6d8;
    border-radius: 10px;
    background: #fff;
}

.vd-winner-rank {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg,#fff2be,#f0dc99);
    color: #715b16;
    font-size: .48rem;
    font-weight: 800;
}

.vd-winner-main > span {
    display: block;
    color: #8b978f;
    font-size: .29rem;
}

.vd-winner-main h3 {
    margin: 2px 0 0;
    color: var(--vd-navy);
    font-size: .52rem;
    font-weight: 800;
}

.vd-winner-main > small {
    display: block;
    margin-top: 1px;
    color: #969ea2;
    font-family: Arial,sans-serif;
    font-size: .30rem;
    text-align: right;
}

.vd-winner-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

    .vd-winner-stats b {
        display: inline-flex;
        min-height: 19px;
        align-items: center;
        padding: 2px 5px;
        border-radius: 999px;
        background: #f1f4f0;
        color: #66736b;
        font-size: .28rem;
        font-weight: 800;
    }

    .vd-winner-stats .is-joint {
        background: #f6edf9;
        color: #78558d;
    }


/* =========================================================
   SUMMARY
   ========================================================= */

.vd-summary-strip {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
    margin-top: 10px;
}

    .vd-summary-strip article {
        min-height: 76px;
        padding: 9px;
        border: 1px solid var(--vd-line);
        border-radius: 10px;
        background: #fff;
    }

    .vd-summary-strip span,
    .vd-summary-strip strong,
    .vd-summary-strip small {
        display: block;
    }

    .vd-summary-strip span {
        color: #8c9790;
        font-size: .32rem;
    }

    .vd-summary-strip strong {
        margin-top: 2px;
        color: var(--vd-navy);
        font-size: .76rem;
        font-weight: 800;
    }

    .vd-summary-strip small {
        margin-top: 2px;
        color: #9ba39e;
        font-size: .27rem;
    }


/* =========================================================
   CONTENT
   ========================================================= */

.vd-content-grid {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.vd-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--vd-line);
    border-radius: 12px;
    background: #fff;
}

.vd-candidate-search {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    gap: 4px;
    align-items: center;
    min-width: 250px;
    min-height: 33px;
    padding: 0 7px;
    border: 1px solid #d9e2d6;
    border-radius: 7px;
    background: #fafcfa;
}

    .vd-candidate-search span {
        color: #849088;
        font-size: .46rem;
    }

    .vd-candidate-search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: #536159;
        font-family: inherit;
        font-size: .40rem;
    }


/* =========================================================
   CANDIDATES
   ========================================================= */

.vd-candidate-grid {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.vd-candidate-card {
    display: grid;
    grid-template-columns: 72px minmax(0,1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid #dfe6dd;
    border-radius: 10px;
    background: #fff;
}

.vd-candidate-media {
    position: relative;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(145deg,#eaf3e6,#f8faf7);
}

    .vd-candidate-media img,
    .vd-candidate-initials {
        width: 100%;
        height: 100%;
    }

    .vd-candidate-media img {
        object-fit: cover;
    }

.vd-candidate-initials {
    display: grid;
    place-items: center;
    color: var(--vd-green-dark);
    font-size: .88rem;
    font-weight: 800;
}

.vd-candidate-rank {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: inline-flex;
    min-height: 19px;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(16,42,67,.88);
    color: #fff;
    font-size: .27rem;
    font-weight: 800;
}

    .vd-candidate-rank small {
        color: rgba(255,255,255,.76);
        font-size: .23rem;
    }

.vd-candidate-type {
    display: inline-flex;
    min-height: 18px;
    align-items: center;
    padding: 2px 5px;
    border-radius: 999px;
    background: #eef2ed;
    color: #68756d;
    font-size: .28rem;
    font-weight: 800;
}

.vd-candidate-body h3 {
    margin: 4px 0 0;
    color: var(--vd-navy);
    font-size: .51rem;
    font-weight: 800;
}

.vd-candidate-body > small {
    display: block;
    margin-top: 1px;
    color: #949da1;
    font-family: Arial,sans-serif;
    font-size: .29rem;
    text-align: right;
}

.vd-candidate-result {
    margin-top: 7px;
}

    .vd-candidate-result > div {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }

        .vd-candidate-result > div span {
            color: #89958e;
            font-size: .29rem;
        }

        .vd-candidate-result > div strong {
            color: #526159;
            font-size: .35rem;
            font-weight: 800;
        }

.vd-result-track {
    display: block;
    overflow: hidden;
    height: 5px;
    margin-top: 5px;
    border-radius: 999px;
    background: #e5eae3;
}

    .vd-result-track i {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--vd-green);
    }

.vd-candidate-result > small {
    display: block;
    margin-top: 3px;
    color: #929c96;
    font-size: .27rem;
}

.vd-hidden-result {
    display: inline-flex;
    margin-top: 7px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #f3f5f4;
    color: #849089;
    font-size: .29rem;
    font-weight: 700;
}

.vd-search-empty {
    margin-top: 8px;
    padding: 20px 10px;
    border: 1px dashed #d8e1d5;
    border-radius: 9px;
    background: #fafcfa;
    color: #89958e;
    font-size: .38rem;
    text-align: center;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.vd-sidebar {
    display: grid;
    gap: 8px;
    align-content: start;
}

.vd-side-title {
    margin: 2px 0 0;
    color: var(--vd-navy);
    font-size: .62rem;
    font-weight: 800;
}

.vd-rules-list {
    margin: 8px 0 0;
}

    .vd-rules-list > div {
        display: grid;
        grid-template-columns: 82px minmax(0,1fr);
        gap: 6px;
        padding: 6px 0;
        border-bottom: 1px solid #edf0ec;
    }

        .vd-rules-list > div:last-child {
            border-bottom: 0;
        }

    .vd-rules-list dt {
        color: #8e9992;
        font-size: .32rem;
        font-weight: 600;
    }

    .vd-rules-list dd {
        margin: 0;
        color: #526159;
        font-size: .35rem;
        font-weight: 700;
        text-align: left;
    }

.vd-instructions {
    margin: 7px 0 0;
    color: #718078;
    font-size: .36rem;
    line-height: 1.8;
    white-space: pre-line;
}

.vd-privacy-note {
    display: grid;
    grid-template-columns: 35px minmax(0,1fr);
    gap: 8px;
    align-items: start;
    background: linear-gradient(135deg,#fff,#f8fbf6);
}

    .vd-privacy-note > span {
        display: grid;
        width: 35px;
        height: 35px;
        place-items: center;
        border-radius: 10px;
        background: var(--vd-green-soft);
        font-size: .72rem;
    }

    .vd-privacy-note strong {
        color: var(--vd-navy);
        font-size: .42rem;
        font-weight: 800;
    }

    .vd-privacy-note p {
        margin: 3px 0 0;
        color: #748179;
        font-size: .32rem;
        line-height: 1.65;
    }


/* =========================================================
   EMPTY
   ========================================================= */

.vd-empty {
    margin-top: 9px;
    padding: 24px 12px;
    border: 1px dashed #d8e0d5;
    border-radius: 9px;
    background: #fafcfa;
    text-align: center;
}

    .vd-empty span,
    .vd-empty strong {
        display: block;
    }

    .vd-empty span {
        font-size: 1rem;
    }

    .vd-empty strong {
        margin-top: 4px;
        color: var(--vd-navy);
        font-size: .48rem;
        font-weight: 800;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 620px) {

    .vd-hero-meta {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .vd-summary-strip {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .vd-candidate-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .vd-winner-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}


@media (min-width: 900px) {

    .vd-hero-grid {
        grid-template-columns: minmax(0,1fr) 285px;
        align-items: center;
    }

    .vd-content-grid {
        grid-template-columns: minmax(0,1fr) 310px;
        align-items: start;
    }

    .vd-sidebar {
        position: sticky;
        top: 12px;
    }
}


@media (min-width: 1240px) {

    .vd-candidate-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}


@media (max-width: 560px) {

    .vd-shell {
        width: min(100% - 10px,1440px);
    }

    .vd-hero-inner,
    .vd-card,
    .vd-final-result {
        padding: 10px;
    }

    .vd-section-heading {
        display: grid;
    }

    .vd-candidate-search {
        min-width: 0;
        width: 100%;
    }

    .vd-candidate-grid {
        grid-template-columns: 1fr;
    }

    .vd-candidate-card {
        grid-template-columns: 64px minmax(0,1fr);
    }

    .vd-candidate-media {
        width: 64px;
        height: 64px;
    }
}
