/**
 * Article Feedback Widget Styles
 * Anonymous feedback for articles (one per IP)
 */

.article-feedback-widget {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 20px 0;
    text-align: center;
}

.feedback-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

/* Feedback Buttons */
.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.feedback-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 70px;
}

.feedback-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feedback-btn.feedback-like:hover:not(.disabled) {
    border-color: #28a745;
    background: #f0f9f4;
}

.feedback-btn.feedback-interesting:hover:not(.disabled) {
    border-color: #ffc107;
    background: #fffbf0;
}

.feedback-btn.feedback-surprised:hover:not(.disabled) {
    border-color: #17a2b8;
    background: #e6f7ff;
}

.feedback-btn.feedback-boring:hover:not(.disabled) {
    border-color: #6c757d;
    background: #f8f9fa;
}

.feedback-btn.feedback-angry:hover:not(.disabled) {
    border-color: #dc3545;
    background: #fff5f5;
}

.feedback-btn.selected {
    border-width: 3px;
    font-weight: 600;
}

.feedback-btn.feedback-like.selected {
    border-color: #28a745;
    background: #e6f4ea;
}

.feedback-btn.feedback-interesting.selected {
    border-color: #ffc107;
    background: #fff8e1;
}

.feedback-btn.feedback-surprised.selected {
    border-color: #17a2b8;
    background: #d4edfc;
}

.feedback-btn.feedback-boring.selected {
    border-color: #6c757d;
    background: #e9ecef;
}

.feedback-btn.feedback-angry.selected {
    border-color: #dc3545;
    background: #fce8e8;
}

.feedback-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-icon {
    font-size: 24px;
    line-height: 1;
}

.feedback-label {
    font-size: 11px;
    font-weight: 500;
    color: #555;
}

.feedback-count {
    display: inline-block;
    padding: 2px 8px;
    background: #e9ecef;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
}

.feedback-btn.selected .feedback-count {
    background: rgba(0, 0, 0, 0.1);
}

/* Feedback Message */
.feedback-message {
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 500;
}

.feedback-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feedback-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Feedback Statistics */
.feedback-stats {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.stats-summary {
    text-align: left;
}

.stats-total {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px 0;
    text-align: center;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    min-width: 75px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.stat-progress {
    flex: 1;
    height: 18px;
    background: #e9ecef;
    border-radius: 9px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 12px;
}

.stat-fill.like {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.stat-fill.interesting {
    background: linear-gradient(90deg, #ffc107, #ffcd38);
}

.stat-fill.surprised {
    background: linear-gradient(90deg, #17a2b8, #4fc3d9);
}

.stat-fill.boring {
    background: linear-gradient(90deg, #6c757d, #868e96);
}

.stat-fill.angry {
    background: linear-gradient(90deg, #dc3545, #e85563);
}

.stat-percent {
    min-width: 38px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-feedback-widget {
        padding: 10px 12px;
        margin: 15px -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .feedback-title {
        font-size: 15px;
    }

    .feedback-buttons {
        gap: 6px;
    }

    .feedback-btn {
        padding: 8px 10px;
        min-width: 65px;
    }

    .feedback-icon {
        font-size: 22px;
    }

    .feedback-label {
        font-size: 10px;
    }

    .stat-label {
        min-width: 70px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .feedback-buttons {
        gap: 5px;
    }

    .feedback-btn {
        padding: 6px 8px;
        min-width: 60px;
        gap: 3px;
    }

    .feedback-icon {
        font-size: 20px;
    }

    .feedback-label {
        font-size: 9px;
    }

    .stat-bar {
        flex-wrap: wrap;
    }

    .stat-label {
        width: 100%;
        margin-bottom: 3px;
        font-size: 11px;
    }

    .stat-progress {
        flex: 1;
        min-width: 120px;
        height: 16px;
    }

    .stat-percent {
        font-size: 11px;
    }
}

