/* Vote cards — shared by event detail & elections listings */
.tigsi-vote-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px color-mix(in srgb, var(--theme-color) 12%, transparent);
    transition: transform .35s ease, box-shadow .35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid color-mix(in srgb, var(--theme-color) 10%, transparent);
}

.tigsi-vote-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px color-mix(in srgb, var(--theme-color) 18%, transparent);
}

.tigsi-vote-card .vote-image-wrapper {
    position: relative;
    padding-top: 70%;
    overflow: hidden;
    background: var(--theme-bg-light, #f5f5f5);
}

.tigsi-vote-card .vote-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tigsi-vote-card:hover .vote-image-wrapper img {
    transform: scale(1.06);
}

.tigsi-vote-card .vote-countdown-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: color-mix(in srgb, var(--theme-color2) 92%, transparent);
    color: #fff;
    padding: .65rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    max-width: calc(100% - 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    z-index: 1;
}

.tigsi-vote-card .vote-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tigsi-vote-card .vote-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.3;
}

.tigsi-vote-card .vote-description {
    color: var(--body-text-color, #555);
    line-height: 1.7;
    font-size: .95rem;
    margin: 0;
    flex: 1;
}

.tigsi-vote-card .vote-meta {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid color-mix(in srgb, var(--theme-color) 12%, transparent);
    flex-wrap: wrap;
}

.tigsi-vote-card .vote-meta .meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--body-text-color, #555);
    font-size: .9rem;
    font-weight: 600;
}

.tigsi-vote-card .vote-meta .meta-item i {
    color: var(--theme-color);
    font-size: 1rem;
}

.tigsi-vote-card .vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 1.5rem;
    background: var(--theme-gradient);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    margin-top: auto;
}

.tigsi-vote-card .vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-color) 35%, transparent);
    color: #fff;
}

@media (max-width: 390px) {
    .tigsi-vote-card .vote-countdown-badge {
        font-size: .75rem;
        padding: .5rem .875rem;
    }

    .tigsi-vote-card .vote-content {
        padding: 1.25rem;
    }

    .tigsi-vote-card .vote-title {
        font-size: 1.1rem;
    }

    .tigsi-vote-card .vote-meta {
        flex-direction: column;
        gap: .5rem;
    }
}
