/* ================================================================
   REACTIONS COMPONENT - STYLES
   Modern, clean design for reaction system
   ================================================================ */

/* Wrapper */
.reactions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    position: relative;
}

/* Reaction Trigger Button */
.reaction-trigger {
    display: flex;
    align-items: center;
}

.btn-add-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-add-reaction:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: #faf5ff;
    transform: translateY(-1px);
}

.btn-add-reaction svg {
    width: 18px;
    height: 18px;
}

/* Reaction Picker Popup */
.reaction-picker {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 320px;
    max-width: 400px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.picker-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-close-picker {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-close-picker:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Reaction Categories */
.reaction-category {
    margin-bottom: 1rem;
}

.reaction-category:last-child {
    margin-bottom: 0;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.category-label .icon {
    font-size: 1rem;
}

.category-label.positive .text {
    color: #10b981;
}

.category-label.negative .text {
    color: #ef4444;
}

/* Reaction Buttons */
.reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.reaction-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reaction-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.reaction-btn.active:hover {
    transform: translateY(-2px) scale(1.03);
}

.reaction-btn .emoji {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s;
}

.reaction-btn:hover .emoji {
    transform: scale(1.15);
}

.reaction-btn.active .emoji {
    animation: bounce 0.5s ease;
}

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

.reaction-btn .name {
    font-size: 0.875rem;
}

/* Reactions Display */
.reactions-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.reactions-display:empty {
    display: none;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
}

.reaction-badge:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reaction-badge.user-reacted {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.reaction-badge .emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.reaction-badge .count {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Reactions Summary */
.reactions-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f3f4f6;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.summary-item .icon {
    font-size: 1.1rem;
}

.summary-item .count {
    font-weight: 600;
    color: #374151;
}

.summary-item.positive .count {
    color: #10b981;
}

.summary-item.negative .count {
    color: #ef4444;
}

/* Inline Picker */
.reaction-picker-inline {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.reaction-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reaction-btn-inline:hover {
    border-color: #8b5cf6;
    background: #faf5ff;
    transform: scale(1.1);
}

.reaction-btn-inline.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.reaction-btn-inline .emoji {
    font-size: 1.1rem;
}

.btn-login-to-react {
    padding: 0.35rem 0.75rem;
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    background: white;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login-to-react:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: #faf5ff;
}

/* Toast Notification */
.reaction-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 500;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem;
}

.stat-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 0.25rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card.reactions-positive {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.stat-card.reactions-negative {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.stat-card.reactions-total {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
}


.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reaction-toast.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reaction-picker {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 16px 16px 0 0;
        min-width: auto;
        max-width: none;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .reaction-buttons {
        gap: 0.4rem;
    }
    
    .reaction-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8125rem;
    }
    
    .reaction-toast {
        top: auto;
        bottom: 24px;
        right: 16px;
        left: 16px;
        font-size: 0.875rem;
    }
}


@media (max-width: 768px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1rem 0.75rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}
/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .reactions-wrapper {
        color: #e5e7eb;
    }
    
    .btn-add-reaction {
        background: #1f2937;
        border-color: #374151;
        color: #9ca3af;
    }
    
    .btn-add-reaction:hover {
        background: #312e81;
        border-color: #8b5cf6;
        color: #c4b5fd;
    }
    
    .reaction-picker {
        background: #1f2937;
        border-color: #374151;
    }
    
    .picker-title {
        color: #e5e7eb;
    }
    
    .reaction-btn {
        background: #111827;
        border-color: #374151;
        color: #9ca3af;
    }
    
    .reaction-btn:hover {
        background: #1f2937;
    }
    
    .reaction-badge {
        background: #111827;
        border-color: #374151;
        color: #9ca3af;
    }
}
