/* Feedback Form - Compact & Clean */
:root {
    --feedback-accent: #03a87c;
    --feedback-text: #292929;
    --feedback-muted: #757575;
    --feedback-border: #e6e6e6;
    --feedback-error: #dc3545;
}

/* Article Like Widget */
.article-like-widget {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.article-like-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--feedback-text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-like-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #fef5f5 0%, #ffe5e5 100%);
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.article-like-btn:hover:not(:disabled) .heart-icon {
    transform: scale(1.2);
}

.article-like-btn.liked {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-color: #ff5252;
    color: white;
    cursor: default;
}

.article-like-btn .heart-icon {
    font-size: 20px;
    transition: transform 0.2s;
}

.article-like-btn.liked .heart-icon {
    animation: heartPulse 0.5s ease;
}

.article-like-text {
    font-size: 14px;
}

.article-like-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.article-like-btn.liked .article-like-count {
    background: rgba(255,255,255,0.3);
}

.feedback-section {
    max-width: 540px;
    margin: 20px auto;
    padding: 0 16px;
}

.feedback-header {
    margin-bottom: 10px;
}

.feedback-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--feedback-text);
    margin: 0 0 4px 0;
}

.feedback-subtitle {
    font-size: 13px;
    color: var(--feedback-muted);
    margin: 0;
}

.feedback-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-size: 13px;
    color: var(--feedback-muted);
}

/* Form */
.feedback-form {
    background: #fff;
    border: 1px solid var(--feedback-border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--feedback-text);
    display: inline-block;
}

.form-label[data-required="true"]::after {
    content: ' *';
    color: var(--feedback-error);
}

.form-input {
    padding: 9px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--feedback-accent);
    box-shadow: 0 0 0 3px rgba(3, 168, 124, 0.1);
}

.form-textarea {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

/* Rating */
.rating-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    color: #d1d5db;
    cursor: pointer;
    transition: transform 0.15s;
}

.star:hover {
    transform: scale(1.1);
}

.star.active {
    color: #f59e0b;
}

.rating-text {
    font-size: 13px;
    color: var(--feedback-muted);
}

/* Buttons */
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.btn {
    padding: 7px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--feedback-accent);
    color: white;
}

.btn-primary:hover {
    background: #028a65;
}

.btn-secondary {
    background: #f5f5f5;
    color: #5f6368;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

/* Feedback List */
.feedback-list {
    margin-top: 16px;
}

.feedback-item {
    background: #fff;
    border: 1px solid var(--feedback-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
}

.feedback-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feedback-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--feedback-accent), #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.feedback-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--feedback-text);
}

.feedback-date {
    font-size: 12px;
    color: var(--feedback-muted);
}

.feedback-rating {
    display: flex;
    gap: 2px;
}

.feedback-rating .star {
    font-size: 14px;
    cursor: default;
}

.feedback-comment {
    color: var(--feedback-text);
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 8px;
}

.feedback-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--feedback-muted);
    transition: all 0.2s;
}

.like-btn:hover:not(:disabled) {
    background: #fef5f5;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.like-btn:hover:not(:disabled) .heart-icon {
    transform: scale(1.2);
}

.like-btn.liked {
    background: #fef5f5;
    border-color: #ff6b6b;
    color: #ff6b6b;
    cursor: default;
}

.heart-icon {
    font-size: 16px;
    transition: transform 0.2s;
}

.like-btn.liked .heart-icon {
    animation: heartPulse 0.3s ease;
}

.like-count {
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Messages */
.feedback-loading,
.feedback-empty {
    padding: 20px;
    text-align: center;
    color: var(--feedback-muted);
}

.feedback-success {
    background: #e7f8f0;
    border: 1px solid #c7f0e0;
    color: #065f46;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.feedback-error {
    background: #fde7e9;
    border: 1px solid #f8c7cd;
    color: #7f1d1d;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 768px) {
    .feedback-form {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

.hidden {
    display: none !important;
}
