:root {
    --primary-color: #4a90e2;
    --primary-hover-color: #357abd;
    --secondary-color: #f5f7fa;
    --text-color: #333;
    --light-text-color: #666;
    --border-color: #e0e0e0;
    --background-color: #ffffff;
    --card-background: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.vote-page {
    background-color: var(--secondary-color);
    font-family: var(--font-family);
}

.vote-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Vote Header */
.vote-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.vote-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.vote-header__description {
    font-size: 1.1rem;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto 1rem;
}

.vote-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.vote-meta__item {
    display: flex;
    align-items: center;
}

.vote-meta__icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Instructions Card */
.instructions-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.instructions-card__title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.instruction-steps {
    display: flex;
    gap: 2rem;
    text-align: left;
    margin-bottom: 2.5rem;
}

.instruction-step {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.instruction-step__number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.instruction-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instruction-step p {
    color: var(--light-text-color);
    line-height: 1.6;
}

.instructions-card__actions .btn {
    margin-bottom: 1rem;
}

.instructions-card__note {
    color: var(--light-text-color);
    font-size: 0.9rem;
}

/* Vote Comparison */
.vote-comparison {
    animation: fadeIn 0.5s ease-in-out;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comparison-counter {
    color: var(--light-text-color);
}

.comparison-items {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text-color);
    padding: 0 1rem;
}

.comparison-item {
    flex: 1;
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.comparison-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.comparison-item.selected {
    border-color: var(--success-color);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.comparison-item__image {
    width: 100%;
    height: 250px;
    background-color: var(--secondary-color);
}

.comparison-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-item__info {
    padding: 1.5rem;
}

.comparison-item__name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comparison-item__description {
    color: var(--light-text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    height: 4.5em; /* Limit to 3 lines */
    overflow: hidden;
}

.comparison-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.comparison-item:hover .comparison-item__overlay {
    opacity: 1;
}

.comparison-item__button {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-actions {
    text-align: center;
}

/* Vote Complete */
.vote-complete {
    animation: fadeIn 0.5s ease-in-out;
}

.complete-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.complete-card__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.complete-card__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.complete-card__message {
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-bottom: 2rem;
}

.complete-card__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.complete-stat__number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.complete-stat__label {
    color: var(--light-text-color);
}

.complete-card__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Progress Bar */
.vote-progress {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.progress-bar {
    background: var(--card-background);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.progress-bar__track {
    background-color: var(--secondary-color);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar__fill {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-bar__text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 0.5rem;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 0.75rem;
    padding: 0 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .vote-container {
        padding: 1rem;
    }

    .instruction-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .comparison-items {
        flex-direction: column;
    }

    .comparison-vs {
        margin: 1rem 0;
    }

    .complete-card__stats {
        gap: 1.5rem;
    }

    .complete-card__actions {
        flex-direction: column;
    }
}