/* Scoped all CSS to .feedback-card to only style the card component */
.feedback-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    max-width: 600px;
    margin: 20px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.feedback-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.feedback-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.vote-container {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.feedback-card .vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 70px;
}

.feedback-card .vote-btn:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 4px;
    border-radius: 8px;
}

.vote-arrow {
    width: 48px;
    height: 48px;
    background: #f0f2f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    transition: all 0.2s ease;
}

.feedback-card .vote-btn:hover .vote-arrow {
    background: #e8eaed;
    border-color: #d0d0d0;
}

.feedback-card .vote-btn.upvote.active .vote-arrow {
    background: #e3f2fd;
    border-color: #2196F3;
    color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.feedback-card .vote-btn.downvote.active .vote-arrow {
    background: #ffebee;
    border-color: #f44336;
    color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.vote-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin: 0;
}

.feedback-card .vote-btn.upvote.active .vote-label {
    color: #2196F3;
}

.feedback-card .vote-btn.downvote.active .vote-label {
    color: #f44336;
}

/* Improved vote count display with better positioning */
.vote-count-container {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #f0f2f5;
}

.vote-count-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.vote-count {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.feedback-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.feedback-footer-text {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin: 0;
}

.feedback-footer-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.feedback-footer-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .feedback-card {
        padding: 24px;
    }

    .feedback-card h2 {
        font-size: 16px;
    }

    .vote-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .vote-count {
        font-size: 28px;
    }
}

.vote-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}