﻿
/* Voting - iOS Glass Design
================================================== */

.voting-page {
    min-height: 100vh;
    padding: 90px 24px 70px;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

    .voting-page::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: radial-gradient(ellipse at 8% 20%, rgba(245, 105, 190, .26), transparent 42%), radial-gradient(ellipse at 85% 12%, rgba(55, 145, 255, .3), transparent 44%), radial-gradient(ellipse at 50% 95%, rgba(145, 75, 255, .22), transparent 50%);
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
    }

.voting-categories {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header
================================================== */

.voting-heading {
    text-align: center;
    margin-bottom: 58px;
}

.voting-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, .75);
}

    .voting-eyebrow span {
        width: 48px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65));
    }

        .voting-eyebrow span:last-child {
            transform: rotate(180deg);
        }

.voting-heading h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -2px;
    color: #fff;
}

.voting-heading p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .7);
}

/* Category Grid
================================================== */

.voting-category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
}

.voting-category-card {
    flex: 0 1 calc((100% - 52px) / 3);
    min-width: 0;
}

/* Glass Card
================================================== */

.voting-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 220px;
    padding: 30px;
    overflow: hidden;
    text-align: left;
    color: #fff;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .27);
    border-radius: 30px;
    background: linear-gradient( 135deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .07) );
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .06);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease, background .35s ease;
    -webkit-tap-highlight-color: transparent;
}

    .voting-category-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 55%;
        pointer-events: none;
        background: linear-gradient( 180deg, rgba(255, 255, 255, .12), transparent );
    }

    .voting-category-card:nth-child(3n+1) {
        background-color: rgba(190, 70, 185, .15);
    }

    .voting-category-card:nth-child(3n+2) {
        background-color: rgba(40, 120, 235, .17);
    }

    .voting-category-card:nth-child(3n+3) {
        background-color: rgba(130, 125, 220, .13);
    }

    .voting-category-card:hover {
        transform: translateY(-8px) scale(1.015);
        border-color: rgba(255, 255, 255, .55);
        box-shadow: 0 28px 65px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
    }

    .voting-category-card:active {
        transform: scale(.97);
    }

    .voting-category-card:focus-visible {
        outline: 3px solid rgba(255, 255, 255, .85);
        outline-offset: 4px;
    }

/* Icon
================================================== */

.voting-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: linear-gradient( 135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .09) );
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

    .voting-category-icon i {
        font-size: 28px;
        color: #fff;
    }

/* Card Content
================================================== */

.voting-category-content {
    position: relative;
    z-index: 1;
    padding-right: 35px;
}

    .voting-category-content h2 {
        margin: 0 0 8px;
        font-size: 23px;
        line-height: 1.3;
        font-weight: 700;
        letter-spacing: -.5px;
        color: #fff;
    }

    .voting-category-content p {
        margin: 0;
        font-size: 14px;
        line-height: 1.55;
        color: rgba(255, 255, 255, .7);
    }

/* Arrow
================================================== */

.voting-category-arrow {
    position: absolute;
    right: 26px;
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .3s ease, background .3s ease;
}

    .voting-category-arrow i {
        font-size: 25px;
    }

.voting-category-card:hover .voting-category-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, .25);
}

/* Empty State
================================================== */

.voting-empty {
    padding: 45px 20px;
    text-align: center;
    color: rgba(255, 255, 255, .7);
}

/* Responsive
================================================== */

@media (max-width: 991px) {
    .voting-category-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .voting-page {
        padding: 65px 18px 50px;
    }

    .voting-heading {
        margin-bottom: 38px;
    }

        .voting-heading h1 {
            font-size: 34px;
            letter-spacing: -1.2px;
        }

        .voting-heading p {
            font-size: 15px;
        }

    .voting-category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .voting-category-card {
        min-height: 160px;
        padding: 23px;
        border-radius: 25px;
    }

    .voting-category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 18px;
        border-radius: 17px;
    }

        .voting-category-icon i {
            font-size: 22px;
        }

    .voting-category-content h2 {
        font-size: 20px;
    }

    .voting-category-arrow {
        right: 20px;
        bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .voting-category-card,
    .voting-category-arrow {
        transition: none;
    }
}


/* Voting - Nominees
================================================== */

.voting-nominees {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.voting-back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}

    .voting-back-button i {
        font-size: 22px;
    }

    .voting-back-button:hover {
        background: rgba(255, 255, 255, .23);
        transform: translateX(-4px);
    }

/* Nominee Grid
================================================== */

.voting-nominee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
}

/* Nominee Glass Card
================================================== */

.voting-nominee-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .07));
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .35s ease, box-shadow .35s ease;
    flex: 0 1 calc((100% - 52px) / 3);
    min-width: 0;
}

    .voting-nominee-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 28px 65px rgba(0, 0, 0, .25);
    }

/* Nominee Photo
================================================== */

.voting-nominee-photo {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
}

    .voting-nominee-photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .5s ease;
    }

.voting-nominee-card:hover .voting-nominee-photo img {
    transform: scale(1.06);
}

.voting-nominee-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(194, 90, 215, .35), rgba(60, 125, 235, .3));
}

    .voting-nominee-placeholder i {
        font-size: 75px;
        color: rgba(255, 255, 255, .7);
    }

/* Nominee Content
================================================== */

.voting-nominee-content {
    padding: 26px;
}

    .voting-nominee-content h2 {
        margin: 0 0 10px;
        color: #fff;
        font-size: 23px;
        font-weight: 700;
        letter-spacing: -.5px;
    }

    .voting-nominee-content p {
        min-height: 45px;
        margin: 0 0 24px;
        color: rgba(255, 255, 255, .75);
        font-size: 14px;
        line-height: 1.6;
    }

/* Vote Button
================================================== */

.voting-nominee-vote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    color: #24243a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}

    .voting-nominee-vote:hover {
        background: #fff;
        transform: translateY(-2px);
    }

    .voting-nominee-vote:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
    }

    .voting-nominee-vote i {
        font-size: 15px;
    }

/* Responsive
================================================== */

@media (max-width: 991px) {
    .voting-category-card {
        flex-basis: 100%;
    }
}

@media (max-width: 600px) {
    .voting-back-button {
        margin-bottom: 25px;
    }

    .voting-nominee-grid {
        gap: 18px;
    }

    .voting-nominee-card {
        border-radius: 25px;
        flex-basis: 100%;
    }

    .voting-nominee-photo {
        height: 230px;
    }

    .voting-nominee-content {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .voting-back-button,
    .voting-nominee-card,
    .voting-nominee-photo img,
    .voting-nominee-vote {
        transition: none;
    }
}


/* Floating Back Button - Mobile
================================================== */

@media (max-width: 600px) {
    .voting-back-button {
        position: fixed;
        bottom: calc(22px + env(safe-area-inset-bottom, 0px));
        left: 20px;
        z-index: 999;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 14px 22px;
        border: 1px solid rgba(255, 255, 255, .4);
        border-radius: 50px;
        background: rgba(255, 255, 255, .25);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        backdrop-filter: blur(30px) saturate(180%);
        box-shadow: 0 8px 32px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .3);
        color: #fff;
        font-size: 14px;
        font-weight: 600;
    }

        .voting-back-button i {
            font-size: 22px;
        }

        .voting-back-button:hover {
            transform: none;
        }

    .voting-nominees {
        padding-bottom: 90px;
    }
}


/* Sticky Navigation - Mobile
================================================== */

@media (max-width: 600px) {
    .voting-page {
        overflow: visible;
    }

    .voting-nominees {
        padding-bottom: 30px;
    }

    .voting-nominee-nav {
        position: sticky;
        top: 12px;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        margin-bottom: 25px;
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 22px;
        background: rgba(45, 35, 65, .65);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        backdrop-filter: blur(25px) saturate(180%);
        box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    }

    .voting-back-button {
        position: static;
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 10px 14px;
        border-radius: 14px;
        background: rgba(255, 255, 255, .18);
        box-shadow: none;
        font-size: 13px;
    }

        .voting-back-button i {
            font-size: 20px;
        }

    .voting-nav-title {
        overflow: hidden;
        color: rgba(255, 255, 255, .9);
        font-size: 13px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* Nominee Navigation - Desktop
================================================== */

@media (min-width: 601px) {
    .voting-nominee-nav {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 35px;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .voting-back-button {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin: 0;
        padding: 13px 22px;
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 50px;
        background: rgba(255, 255, 255, .12);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
        color: #fff;
        transition: background .3s ease, transform .3s ease;
    }

        .voting-back-button:hover {
            background: rgba(255, 255, 255, .25);
            transform: translateX(-5px);
        }

    .voting-nav-title {
        display: none;
    }
}

/* Nominee Navigation - Mobile
================================================== */

@media (max-width: 600px) {
    .voting-nominee-nav {
        position: sticky;
        top: 12px;
        z-index: 100;
    }
}


/* Voting Modal - iOS Glassmorphism
================================================== */

.voting-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 10, 28, .55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    animation: votingModalFade .25s ease both;
}

.voting-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 42px 34px 30px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .12));
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
    color: #fff;
    animation: votingModalEnter .35s cubic-bezier(.2, .8, .2, 1) both;
}

.voting-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.voting-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 26px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .1));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

    .voting-modal-icon i {
        font-size: 28px;
    }

.voting-modal-heading {
    margin-bottom: 30px;
    text-align: center;
}

    .voting-modal-heading .voting-eyebrow {
        margin-bottom: 15px;
        font-size: 10px;
    }

    .voting-modal-heading h2 {
        margin: 0 0 14px;
        font-size: 28px;
        font-weight: 750;
        letter-spacing: -.8px;
    }

    .voting-modal-heading p {
        margin: 0;
        color: rgba(255, 255, 255, .8);
        font-size: 14px;
        line-height: 1.7;
    }

    .voting-modal-heading strong {
        color: #fff;
    }

.voting-modal-field {
    margin-bottom: 22px;
}

    .voting-modal-field label {
        display: block;
        margin-bottom: 10px;
        font-size: 13px;
        font-weight: 600;
    }

.voting-modal-input {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    transition: border-color .2s ease, background .2s ease;
}

    .voting-modal-input:focus-within {
        border-color: rgba(255, 255, 255, .8);
        background: rgba(255, 255, 255, .2);
    }

    .voting-modal-input i {
        color: rgba(255, 255, 255, .7);
        font-size: 17px;
    }

    .voting-modal-input input {
        flex: 1;
        min-width: 0;
        height: 100%;
        padding: 0;
        border: none;
        outline: none;
        background: transparent;
        color: #fff;
        font-size: 16px;
    }

        .voting-modal-input input::placeholder {
            color: rgba(255, 255, 255, .55);
        }

.voting-modal-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 16px 22px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, .95);
    color: #25243b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

    .voting-modal-submit:hover:not(:disabled) {
        background: #fff;
        transform: translateY(-2px);
    }

    .voting-modal-submit:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.voting-modal-error {
    margin: 0 0 16px;
    color: #ffd5d5;
    font-size: 13px;
}

.voting-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    text-align: center;
}

@keyframes votingModalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes votingModalEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .voting-modal-overlay {
        padding: 16px;
    }

    .voting-modal {
        padding: 40px 24px 26px;
        border-radius: 30px;
    }

    .voting-modal-heading h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .voting-modal-overlay,
    .voting-modal {
        animation: none;
    }
}


.voting-modal-code-input input {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 8px;
}

.voting-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

    .voting-modal-actions button {
        padding: 0;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, .85);
        font-size: 12px;
        cursor: pointer;
    }

        .voting-modal-actions button:disabled {
            opacity: .5;
            cursor: not-allowed;
        }

.voting-modal-info {
    margin-top: 16px;
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    text-align: center;
}

.voting-modal-success {
    text-align: center;
}

    .voting-modal-success > i {
        display: block;
        margin-bottom: 30px;
        color: #b8ffd5;
        font-size: 64px;
    }


/* Voting Modal - iPhone Touch Fix
================================================== */

.voting-modal-overlay {
    pointer-events: auto;
}

.voting-modal-input input {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
    touch-action: manipulation;
}

@media (max-width: 600px) {
    .voting-modal-overlay {
        z-index: 99999;
    }

    .voting-modal {
        animation: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (max-width: 600px) {
    .voting-modal-overlay {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        animation: none !important;
    }

    .voting-modal {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        animation: none !important;
        transform: none !important;
        overflow-y: visible;
    }

    .voting-modal-input input {
        position: relative;
        z-index: 10;
        pointer-events: auto;
        -webkit-user-select: text;
        user-select: text;
    }
}

/* iOS Verification Code - Single visible input
================================================== */

.voting-otp {
    width: 100%;
    margin: 12px 0 24px;
}

.voting-otp-input {
    display: block;
    position: static;
    box-sizing: border-box;
    width: 100%;
    height: 64px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 16px;
    outline: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    opacity: 1;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

    .voting-otp-input:focus {
        border-color: #fff;
        background: rgba(255, 255, 255, .22);
    }

.voting-modal form.ng-leave,
.voting-modal form.ng-leave-active {
    display: none !important;
}

.voting-modal .ng-hide {
    display: none !important;
}

html.voting-no-scroll,
body.voting-no-scroll {
    scrollbar-width: none;
}

    html.voting-no-scroll::-webkit-scrollbar,
    body.voting-no-scroll::-webkit-scrollbar {
        display: none;
    }