/* Post Review Finger - Frontend Styles */

.prf-review-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.prf-review-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.prf-review-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.prf-vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    outline: none;
}

.prf-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prf-vote-btn:active {
    transform: translateY(0);
}

.prf-vote-btn.prf-vote-up {
    border-color: #4CAF50;
}

.prf-vote-btn.prf-vote-up:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.prf-vote-btn.prf-vote-up.prf-voted {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.prf-vote-btn.prf-vote-down {
    border-color: #f44336;
}

.prf-vote-btn.prf-vote-down:hover {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.prf-vote-btn.prf-vote-down.prf-voted {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.prf-emoji {
    font-size: 18px;
    line-height: 1;
}

.prf-count {
    font-weight: 600;
    min-width: 20px;
}

.prf-vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.prf-message {
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.prf-message.success {
    color: #4CAF50;
    font-weight: 500;
}

.prf-message.error {
    color: #f44336;
    font-weight: 500;
}

.prf-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .prf-review-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .prf-vote-btn {
        width: 200px;
        justify-content: center;
    }
}

/* Animation for vote count updates */
@keyframes prf-count-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.prf-count.prf-updated {
    animation: prf-count-update 0.3s ease;
}

/* Theme compatibility - allow themes to override */
.prf-review-container.prf-theme-override {
    background: transparent;
    border: none;
    padding: 15px 0;
}

.prf-review-container.prf-theme-override .prf-vote-btn {
    background: var(--prf-button-bg, #fff);
    border-color: var(--prf-button-border, #ddd);
    color: var(--prf-button-text, #666);
}

.prf-review-container.prf-theme-override .prf-vote-btn.prf-vote-up:hover,
.prf-review-container.prf-theme-override .prf-vote-btn.prf-vote-up.prf-voted {
    background: var(--prf-up-bg, #4CAF50);
    border-color: var(--prf-up-border, #4CAF50);
    color: var(--prf-up-text, white);
}

.prf-review-container.prf-theme-override .prf-vote-btn.prf-vote-down:hover,
.prf-review-container.prf-theme-override .prf-vote-btn.prf-vote-down.prf-voted {
    background: var(--prf-down-bg, #f44336);
    border-color: var(--prf-down-border, #f44336);
    color: var(--prf-down-text, white);
}