/* ============================================
   ACTIVITY CARD COMPONENT STYLES
   ============================================ */

/* Activity List Container */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Activity Item Card */
.activity-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.75rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.3s var(--ease-smooth);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.activity-item:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

/* Activity Icon */
.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: var(--icon-size-sm);
}

/* Icon Color Variants */
.activity-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.activity-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.activity-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.activity-icon.purple {
    background: var(--gradient-primary);
}

.activity-icon.pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.activity-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.activity-icon.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Activity Details */
.activity-details {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.activity-details h4 {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Activity Meta Information */
.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Activity Category Badge */
.activity-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.activity-category i {
    font-size: 0.65rem;
}

/* Category Color Variants */
.activity-category.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.activity-category.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.activity-category.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.activity-category.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-purple);
}

.activity-category.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.activity-category.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.activity-category.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

/* Activity Time */
.activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Activity Reward/Amount */
.activity-reward {
    font-size: var(--font-size-small);
    font-weight: 800;
    color: #10b981;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

/* Negative amount (withdrawal) - red color */
.activity-item:has(.activity-icon.red) .activity-reward {
    color: #ef4444;
}

/* Pending transaction - orange color */
.activity-item:has(.activity-icon.orange):has(.activity-category.orange) .activity-reward {
    color: #f59e0b;
}

/* Pending referral - gray color (more specific selector) */
.activity-item.referral-item:has(.activity-icon.orange) .activity-reward {
    color: var(--text-muted);
}

/* Empty State */
/* Empty State */
.activity-empty-state {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.4) 0%, rgba(17, 24, 39, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 3.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.activity-empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.activity-empty-state .empty-state-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    animation: float-icon 4s ease-in-out infinite, pulse-glow-cyan 3s ease-in-out infinite;
}

@keyframes pulse-glow-cyan {
    0%, 100% {
        box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
        border-color: rgba(6, 182, 212, 0.25);
    }
    50% {
        box-shadow: 0 0 22px rgba(139, 92, 246, 0.35);
        border-color: rgba(139, 92, 246, 0.4);
    }
}

.activity-empty-state .empty-state-icon i {
    font-size: 2.2rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.3));
}

.activity-empty-state .empty-state-title {
    font-size: var(--font-size-h4);
    font-weight: 750;
    color: var(--text-primary);
    margin: 0;
    z-index: 1;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f9fafb 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.activity-empty-state .empty-state-text {
    font-size: var(--font-size-tiny);
    color: var(--text-secondary);
    margin: 0;
    max-width: 350px;
    line-height: 1.5;
    z-index: 1;
}

/* ==========================================================================
   6-BREAKPOINT RESPONSIVE ARCHITECTURE (DESKTOP-DOWN / DESKTOP-FIRST)
   ========================================================================== */

/* ─── 1. Base : Desktop (1280px–1600px+) ─── */
/* Note: Base Desktop styles are defined above as default. */

/* ─── 2. Laptop (1024px–1279px) ─── */
@media (max-width: 1279px) {
    .activity-list {
        gap: 0.75rem;
    }
}

/* ─── 3. Tablet (768px–1023px) ─── */
@media (max-width: 1023px) {
    .activity-list {
        gap: 0.7rem;
    }

    .activity-item {
        padding: 0.7rem 0.85rem;
        gap: 0.8rem;
    }

    .activity-icon {
        width: 38px;
        height: 38px;
    }
}

/* ─── 4. Large Mobile (640px–767px) ─── */
@media (max-width: 767px) {
    .activity-list {
        gap: 0.65rem;
    }

    .activity-item {
        padding: 0.65rem 0.75rem;
        gap: 0.75rem;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
    }
}

/* ─── 5. Mobile (480px–639px) ─── */
@media (max-width: 639px) {
    .activity-item {
        padding: 0.65rem 0.75rem;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .activity-details {
        flex: 1;
        min-width: 0;
    }

    .activity-details h4 {
        font-size: var(--font-size-small);
        margin-bottom: 0.2rem;
    }

    .activity-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .activity-category {
        font-size: var(--font-size-tiny);
        padding: 0.15rem 0.6rem;
    }

    .activity-time {
        font-size: var(--font-size-tiny);
        padding-left: 0.1rem;
    }

    .activity-reward {
        margin-left: auto;
        text-align: right;
        font-size: var(--font-size-small);
        font-weight: 700;
        flex-shrink: 0;
    }
}

/* ─── 6. Tiny Mobile (300px–479px) ─── */
@media (max-width: 479px) {
    .activity-list {
        gap: 0.6rem;
    }

    .activity-item {
        padding: 0.55rem 0.65rem;
        border-radius: 12px;
        flex-wrap: nowrap;
        gap: 0.6rem;
    }

    .activity-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .activity-icon i {
        font-size: 0.8rem;
    }

    .activity-details {
        flex: 1;
        min-width: 0;
    }

    .activity-details h4 {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }

    .activity-meta {
        gap: 0.2rem;
    }

    .activity-category {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .activity-category i {
        font-size: 0.55rem;
    }

    .activity-time {
        font-size: 0.65rem;
    }

    .activity-reward {
        font-size: 0.75rem;
        margin-left: auto;
        flex-shrink: 0;
    }
}
