/* BuddyPress Reaction Rewards - Styles */

/* Top Activities Container */
.bp-top-activities-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.top-activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.top-activities-header h2 {
    font-size: 2em;
    color: #333;
    margin: 0;
}

/* Period Filters */
.period-filters {
    display: flex;
    gap: 10px;
}

.period-filter {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.period-filter:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.period-filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Wallet Status */
.wallet-section {
    text-align: right;
    margin-bottom: 20px;
}

.connect-wallet-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.wallet-status .connected {
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

/* Activity Cards */
#top-activities-list {
    display: grid;
    gap: 20px;
}

.top-activity-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Rank Badges */
.rank-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 16px;
    border-bottom-left-radius: 16px;
    font-weight: bold;
    font-size: 14px;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #d4a574);
    color: #fff;
}

.rank-badge .rank-number {
    font-size: 16px;
}

/* Activity Header */
.activity-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    margin-top: 10px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-info {
    flex: 1;
}

.username {
    margin: 0 0 4px 0;
    font-size: 1.3em;
    color: #333;
}

.user-bio {
    margin: 0 0 4px 0;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.activity-date {
    color: #999;
    font-size: 0.85em;
}

/* Activity Content */
.activity-content {
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-content p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* Activity Stats */
.activity-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 20px;
}

.total-reactions-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    min-width: 100px;
}

.total-reactions-badge .reaction-emoji {
    font-size: 24px;
    margin-bottom: 4px;
}

.total-reactions-badge .count {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.total-reactions-badge .label {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Reaction Breakdown */
.reaction-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.reaction-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 2px solid #e9ecef;
}

.reaction-item .emoji {
    font-size: 20px;
}

.reaction-item .count {
    font-weight: 600;
    color: #495057;
}

/* Reward Section */
.reward-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed #e0e0e0;
    text-align: center;
}

.claim-reward-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.claim-reward-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.6);
}

.claim-reward-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.claim-reward-btn.claimed {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: default;
}

/* Reaction Buttons on Activity Stream */
.activity-reactions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.bp-reaction-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.bp-reaction-btn:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

.bp-reaction-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.bp-reaction-btn .emoji {
    font-size: 16px;
}

.bp-reaction-btn .count {
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.bp-reaction-btn.reacted {
    animation: reactionPop 0.3s ease;
}

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

/* Notifications */
.bp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.bp-notification.show {
    transform: translateX(0);
}

.bp-notification.success {
    border-left: 4px solid #10b981;
}

.bp-notification.error {
    border-left: 4px solid #ef4444;
}

.bp-notification.info {
    border-left: 4px solid #3b82f6;
}

.bp-notification .close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.bp-notification .close:hover {
    opacity: 1;
}

/* Loading State */
.loading, .error, .no-activities {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .top-activities-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .period-filters {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .period-filter {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .activity-stats {
        flex-direction: column;
    }
    
    .total-reactions-badge {
        width: 100%;
    }
    
    .reaction-breakdown {
        justify-content: center;
    }
}
