﻿.votevlc-root {
    --votevlc-ink: #1f2933;
    --votevlc-muted: #5f6c7b;
    --votevlc-line: #d9e0e7;
    --votevlc-accent: #8a4b12;
    --votevlc-accent-dark: #6f370b;
    --votevlc-green: #2c5234;
    --votevlc-green-dark: #214028;
    --votevlc-red: #903333;
    --votevlc-tan: #f4efe6;
    --votevlc-tan-line: #d1c5b4;
    position: relative;
    color: var(--votevlc-ink);
}

.votevlc-status,
.votevlc-message {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--votevlc-line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--votevlc-ink);
    font-weight: 700;
}

.votevlc-status-message,
.votevlc-status-countdown {
    display: block;
}

.votevlc-status-countdown {
    margin-top: 8px;
    color: var(--votevlc-red);
    font-size: 16px;
    font-weight: 900;
}

.votevlc-status-countdown-label,
.votevlc-status-countdown-time {
    display: inline;
}

.votevlc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.votevlc-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--votevlc-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
}

.votevlc-card-media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f6;
}

.votevlc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 180ms ease;
}

.votevlc-card-media:hover img,
.votevlc-card-media:focus img {
    transform: scale(1.025);
}

.votevlc-hidden-lightbox-items {
    display: none;
}

.votevlc-recaptcha {
    display: flex;
    justify-content: flex-end;
    min-height: 78px;
    margin-top: 18px;
    overflow: hidden;
}

.votevlc-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.votevlc-card h3 {
    margin: 0 0 10px;
    color: var(--votevlc-green);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: 0;
}

.votevlc-card-body > p {
    margin: 0 0 18px;
    color: var(--votevlc-muted);
    line-height: 1.55;
}

.votevlc-vote-button {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    border: 1px solid var(--votevlc-accent);
    border-radius: 6px;
    background: var(--votevlc-accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.votevlc-vote-button:hover,
.votevlc-vote-button:focus {
    border-color: var(--votevlc-accent-dark);
    background: var(--votevlc-accent-dark);
}

.votevlc-vote-button:disabled {
    border-color: #aab4bf;
    background: #aab4bf;
    cursor: not-allowed;
}

.votevlc-root.votevlc-is-exhausted .votevlc-vote-button:disabled {
    opacity: 0.45;
    filter: grayscale(1);
    transform: none;
}

.votevlc-root.votevlc-has-overlay .votevlc-grid,
.votevlc-root.votevlc-has-overlay .votevlc-recaptcha {
    opacity: 0.34;
    filter: grayscale(0.35);
    pointer-events: none;
}

.votevlc-closed-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 520px;
    padding: 92px 20px 40px;
    background: rgba(244, 239, 230, 0.92);
}

.votevlc-closed-panel {
    width: min(100%, 680px);
    border: 1px solid var(--votevlc-tan-line);
    border-top: 6px solid var(--votevlc-green);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(31, 41, 51, 0.18);
    padding: 34px 28px;
    text-align: center;
}

.votevlc-closed-panel h2 {
    margin: 0 0 14px;
    color: var(--votevlc-green);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
}

.votevlc-countdown {
    display: grid;
    gap: 6px;
    margin: 0 auto 18px;
    padding: 16px 18px;
    border: 1px solid var(--votevlc-tan-line);
    border-radius: 8px;
    background: #f8fafc;
}

.votevlc-countdown-time {
    display: block;
    color: var(--votevlc-red);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.votevlc-countdown-label {
    color: var(--votevlc-green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.votevlc-closed-panel p {
    margin: 0 auto 12px;
    max-width: 560px;
    color: var(--votevlc-ink);
    font-size: 17px;
    line-height: 1.55;
}

.votevlc-modal {
    --votevlc-ink: #1f2933;
    --votevlc-green: #2c5234;
    --votevlc-green-dark: #214028;
    --votevlc-red: #903333;
    --votevlc-tan: #f4efe6;
    --votevlc-tan-line: #d1c5b4;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(37, 37, 32, 0.62);
}

.votevlc-modal[hidden] {
    display: none;
}

.votevlc-modal-panel {
    width: min(100%, 520px);
    border: 1px solid var(--votevlc-tan-line);
    border-top: 6px solid var(--votevlc-green);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(31, 41, 51, 0.28);
    padding: 28px;
}

.votevlc-modal-title {
    margin: 0 0 12px;
    color: var(--votevlc-green);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
}

.votevlc-modal-message {
    margin: 0;
    color: var(--votevlc-ink);
    font-size: 18px;
    line-height: 1.55;
}

.votevlc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.votevlc-modal-button {
    min-height: 44px;
    border-radius: 4px;
    padding: 11px 18px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.votevlc-modal-button-primary {
    border: 1px solid var(--votevlc-red);
    background: var(--votevlc-red);
    color: #ffffff;
}

.votevlc-modal-button-primary:hover,
.votevlc-modal-button-primary:focus {
    border-color: var(--votevlc-green-dark);
    background: var(--votevlc-green-dark);
}

.votevlc-modal-button-secondary {
    border: 1px solid var(--votevlc-tan-line);
    background: var(--votevlc-tan);
    color: var(--votevlc-green);
}

.votevlc-modal-button-secondary:hover,
.votevlc-modal-button-secondary:focus {
    border-color: var(--votevlc-green);
    background: #ffffff;
}

@media (max-width: 980px) {
    .votevlc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .votevlc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .votevlc-card-body {
        padding: 16px;
    }

    .votevlc-recaptcha {
        justify-content: center;
    }

    .votevlc-closed-overlay {
        min-height: 420px;
        padding: 56px 16px 28px;
    }

    .votevlc-closed-panel {
        padding: 26px 18px;
    }

    .votevlc-closed-panel h2 {
        font-size: 25px;
    }

    .votevlc-countdown-time {
        font-size: 28px;
    }

    .votevlc-modal-panel {
        padding: 22px;
    }

    .votevlc-modal-title {
        font-size: 24px;
    }

    .votevlc-modal-actions {
        flex-direction: column-reverse;
    }

    .votevlc-modal-button {
        width: 100%;
    }
}
