/**
 * RCAD Forum Rewards - Styles
 * 
 * CSS ligero para componentes del plugin
 * 
 * @package RCAD_Forum_Rewards
 * @version 1.0.0
 */

/* ============================================================================
   LIKES BUTTON
   ============================================================================ */

.rcad-like-wrapper {
    margin: 10px 0;
    display: inline-block;
}

.rcad-like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.rcad-like-button:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.rcad-like-button.liked {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.rcad-like-button.liked:hover {
    background: #fecaca;
}

.rcad-like-icon {
    font-size: 16px;
    line-height: 1;
}

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

.rcad-like-count-only {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #6b7280;
}

/* Likes summary above content */
.rcad-likes-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
}

.rcad-likes-avatars {
    display: flex;
    margin-right: 4px;
}

.rcad-likes-avatars img {
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
}

.rcad-likes-avatars img:first-child {
    margin-left: 0;
}

/* ============================================================================
   LEADERBOARD
   ============================================================================ */

.rcad-leaderboard {
    margin: 20px 0;
}

.rcad-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rcad-leaderboard-table thead {
    background: #f9fafb;
}

.rcad-leaderboard-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.rcad-leaderboard-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.rcad-leaderboard-table tbody tr:hover {
    background: #f9fafb;
}

.rcad-leaderboard-table .position {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
    width: 60px;
}

.rcad-leaderboard-table .user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rcad-leaderboard-table .user img {
    border-radius: 50%;
}

.rcad-leaderboard-table .level {
    font-weight: 600;
    color: #7ED321;
}

.rcad-leaderboard-table .points {
    font-weight: 700;
    color: #1f2937;
}

/* ============================================================================
   NOTIFICATIONS LIST
   ============================================================================ */

.rcad-notifications-list {
    display: grid;
    gap: 8px;
}

.rcad-notification-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.rcad-notification-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.rcad-notification-item.unread {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.rcad-notification-item .notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.rcad-notification-item .notification-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.rcad-notification-item .notification-content strong {
    font-weight: 600;
    color: #1f2937;
}

.rcad-notification-item .notification-time {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.rcad-notification-item .notification-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ============================================================================
   USER POINTS DISPLAY
   ============================================================================ */

.rcad-user-points {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .rcad-leaderboard-table {
        font-size: 13px;
    }
    
    .rcad-leaderboard-table th,
    .rcad-leaderboard-table td {
        padding: 8px 12px;
    }
    
    .rcad-leaderboard-table .position {
        font-size: 16px;
        width: 40px;
    }
    
    .rcad-leaderboard-table .user img {
        width: 24px;
        height: 24px;
    }
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.rcad-like-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.rcad-like-button.loading .rcad-like-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
