/* ========================================
   Point Badge Component Styles
   ======================================== */

.point-badge-container {
    margin-bottom: 20px;
}

.point-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.point-main {
    text-align: center;
    margin-bottom: 15px;
}

.point-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.point-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.point-details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.level-badge,
.rank-badge,
.streak-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.level-icon,
.rank-icon,
.streak-icon {
    font-size: 16px;
}

/* ========================================
   Product Sales Badge Styles
   ======================================== */

.product-card {
    position: relative;
}

.sold-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.sold-badge::before {
    content: '🔥';
    font-size: 14px;
}

.sold-badge-inline {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.sold-badge-inline::before {
    content: '✓';
    font-size: 12px;
}

/* ========================================
   Leaderboard Component Styles
   ======================================== */

.leaderboard {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.leaderboard h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.leaderboard-item:hover {
    background: #f3f4f6;
}

.leaderboard-item .rank {
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
    min-width: 40px;
}

.leaderboard-item:nth-child(1) .rank {
    color: #fbbf24;
    font-size: 24px;
}

.leaderboard-item:nth-child(2) .rank {
    color: #9ca3af;
    font-size: 22px;
}

.leaderboard-item:nth-child(3) .rank {
    color: #d97706;
    font-size: 20px;
}

.leaderboard-item .name {
    flex: 1;
    font-weight: 600;
    color: #374151;
}

.leaderboard-item .points {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
}

.leaderboard-item .level {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .point-value {
        font-size: 36px;
    }
    
    .point-details {
        flex-direction: column;
        align-items: stretch;
    }
    
    .level-badge,
    .rank-badge,
    .streak-badge {
        justify-content: center;
    }
    
    .sold-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
}
