/**
 * Post Reactions Styling - Subtle & Compact Design
 */

.post-reactions {
    margin: 30px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.reactions-header {
    margin-bottom: 15px;
}

.reactions-header h3 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #495057;
    font-weight: 600;
}

.reactions-header p {
    margin: 0;
    color: #868e96;
    font-size: 0.85em;
}

.reactions-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.9em;
}

.reaction-button:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-1px);
}

.reaction-button:active:not(:disabled) {
    transform: translateY(0);
}

.reaction-button.reacted {
    background: #e7f3ff;
    border-color: #90c9f9;
}

.reaction-button.reacted:hover {
    background: #d0e9ff;
    border-color: #70b9f9;
}

.reaction-button.processing {
    opacity: 0.6;
    cursor: wait;
}

.reaction-emoji {
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.reaction-emoji.bounce {
    animation: subtle-bounce 0.4s ease;
}

.reaction-button.reaction-added .reaction-emoji {
    animation: subtle-pop 0.4s ease;
}

@keyframes subtle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes subtle-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.reaction-label {
    font-size: 0.85em;
    font-weight: 500;
    color: #495057;
}

.reaction-button.reacted .reaction-label {
    color: #0066cc;
    font-weight: 600;
}

.reaction-count {
    font-size: 0.85em;
    color: #868e96;
    font-weight: 500;
}

.reaction-button.reacted .reaction-count {
    color: #0066cc;
    font-weight: 600;
}

/* Total reactions display in post meta */
.post-reactions-total {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.9em;
    margin-right: 15px;
}

.post-reactions-total i {
    color: #dc3545;
}

.post-reactions-total .reactions-count {
    font-weight: 600;
    color: #495057;
}

/* Responsive design */
@media (max-width: 768px) {
    .post-reactions {
        padding: 15px;
        margin: 20px 0;
    }
    
    .reactions-buttons {
        gap: 8px;
    }
    
    .reaction-button {
        padding: 7px 12px;
        font-size: 0.85em;
    }
    
    .reaction-emoji {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .post-reactions {
        padding: 12px;
    }
    
    .reactions-buttons {
        gap: 6px;
    }
    
    .reaction-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .reaction-emoji {
        font-size: 1em;
    }
    
    .reactions-header h3 {
        font-size: 0.95em;
    }
    
    .reactions-header p {
        font-size: 0.8em;
    }
    
    .post-reactions-total {
        font-size: 0.85em;
        margin-right: 10px;
    }
}
