/*
================================================================================
| ROOBUX - ULTRA PREMIUM DESIGN SYSTEM v4.0 | notifications.css
================================================================================
| Professional tech-savvy notifications page with refined animations
| Features: Clean cards, smooth interactions, advanced glassmorphism
================================================================================
*/

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.notification-card,
.notification-icon,
.notifications-header {
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

/* ===== PROFESSIONAL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 153, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 153, 255, 0.4);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== 1. NOTIFICATIONS HEADER ===== */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.notifications-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.notifications-header:hover::after {
    width: 100%;
}

.notifications-header h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notifications-header h2::before {
    content: '🔔';
    font-size: 1.8rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.notifications-actions {
    display: flex;
    gap: 12px;
}

.notifications-actions .btn {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
}

.notifications-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 153, 255, 0.25);
}

/* ===== 2. NOTIFICATION LIST ===== */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Notification Card */
.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: linear-gradient(135deg, 
        rgba(13, 17, 23, 0.95) 0%, 
        rgba(22, 27, 34, 0.9) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border-left: 4px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

/* Staggered animations */
.notification-card:nth-child(1) { animation-delay: 0.1s; }
.notification-card:nth-child(2) { animation-delay: 0.2s; }
.notification-card:nth-child(3) { animation-delay: 0.3s; }
.notification-card:nth-child(4) { animation-delay: 0.4s; }
.notification-card:nth-child(5) { animation-delay: 0.5s; }
.notification-card:nth-child(6) { animation-delay: 0.6s; }
.notification-card:nth-child(7) { animation-delay: 0.7s; }
.notification-card:nth-child(8) { animation-delay: 0.8s; }

/* Subtle background gradient */
.notification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 153, 255, 0.05), 
        transparent);
    transition: left 0.6s ease;
}

.notification-card:hover::before {
    left: 100%;
}

/* Unread state */
.notification-card.unread {
    background: linear-gradient(135deg, 
        rgba(0, 153, 255, 0.08) 0%, 
        rgba(13, 17, 23, 0.95) 100%);
    border-left: 4px solid var(--color-primary);
    border-color: rgba(0, 153, 255, 0.3);
}

.notification-card.unread::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-primary);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Hover state */
.notification-card:hover {
    box-shadow: 
        0 0 35px rgba(0, 153, 255, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px) translateX(4px);
    border-color: rgba(0, 153, 255, 0.4);
}

.notification-card.unread:hover {
    box-shadow: 
        0 0 40px rgba(0, 153, 255, 0.25),
        0 10px 45px rgba(0, 0, 0, 0.3);
}

/* Notification Icon */
.notification-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
}

.notification-card:hover .notification-icon {
    transform: scale(1.12) rotate(5deg);
}

/* Icon Colors with Gradients */
.icon-success {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.2), 
        rgba(34, 197, 94, 0.1));
    color: var(--color-success);
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.icon-error {
    background: linear-gradient(135deg, 
        rgba(248, 81, 73, 0.2), 
        rgba(248, 81, 73, 0.1));
    color: var(--color-error);
    border: 1.5px solid rgba(248, 81, 73, 0.3);
    box-shadow: 0 0 20px rgba(248, 81, 73, 0.2);
}

.icon-warning {
    background: linear-gradient(135deg, 
        rgba(240, 136, 62, 0.2), 
        rgba(240, 136, 62, 0.1));
    color: var(--color-warning);
    border: 1.5px solid rgba(240, 136, 62, 0.3);
    box-shadow: 0 0 20px rgba(240, 136, 62, 0.2);
}

.icon-info {
    background: linear-gradient(135deg, 
        rgba(0, 153, 255, 0.2), 
        rgba(0, 153, 255, 0.1));
    color: var(--color-primary);
    border: 1.5px solid rgba(0, 153, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.2);
}

.icon-referral {
    background: linear-gradient(135deg, 
        rgba(0, 224, 255, 0.2), 
        rgba(0, 224, 255, 0.1));
    color: var(--color-accent);
    border: 1.5px solid rgba(0, 224, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
}

/* Icon shimmer effect */
.notification-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 70%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.notification-card:hover .notification-icon::after {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

/* Notification Content */
.notification-content {
    flex-grow: 1;
    min-width: 0;
}

.notification-content h5 {
    margin: 0 0 8px 0;
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.notification-card:hover .notification-content h5 {
    color: var(--color-primary);
}

.notification-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.notification-card:hover .notification-content p {
    color: var(--color-text-primary);
}

/* Notification Meta */
.notification-meta {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 100px;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(0, 153, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 153, 255, 0.15);
    transition: all 0.3s ease;
}

.notification-card:hover .notification-time {
    background: rgba(0, 153, 255, 0.1);
    border-color: rgba(0, 153, 255, 0.3);
    transform: scale(1.05);
}

.notification-meta .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.notification-meta .badge:hover {
    transform: scale(1.05);
}

/* ===== 3. EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, 
        rgba(13, 17, 23, 0.95) 0%, 
        rgba(22, 27, 34, 0.9) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(0, 153, 255, 0.05) 0%, 
        transparent 60%);
    animation: shimmer 15s linear infinite;
}

.empty-state .icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1;
    display: inline-block;
    animation: iconFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 153, 255, 0.3));
    position: relative;
    z-index: 1;
}

.empty-state h4 {
    color: var(--color-text-primary);
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.empty-state p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== 4. LOAD MORE BUTTON ===== */
#load-more-btn {
    width: 100%;
    margin-top: 32px;
    background: linear-gradient(135deg, 
        rgba(0, 153, 255, 0.1), 
        rgba(0, 153, 255, 0.05));
    border: 1.5px solid rgba(0, 153, 255, 0.3);
    color: var(--color-primary);
    padding: 16px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#load-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 153, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#load-more-btn:hover::before {
    width: 400px;
    height: 400px;
}

#load-more-btn:hover {
    background: linear-gradient(135deg, 
        rgba(0, 153, 255, 0.2), 
        rgba(0, 153, 255, 0.1));
    border-color: rgba(0, 153, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 153, 255, 0.3);
}

#load-more-btn:active {
    transform: translateY(-1px);
}

/* ===== 5. FILTER BUTTONS ===== */
.btn-filter {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-filter:hover,
.btn-filter.active {
    background: rgba(0, 153, 255, 0.1);
    border-color: rgba(0, 153, 255, 0.4);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.15);
}

/* ===== 6. BADGES ===== */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-primary {
    background: rgba(0, 153, 255, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(240, 136, 62, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(240, 136, 62, 0.3);
}

.badge-danger {
    background: rgba(248, 81, 73, 0.15);
    color: var(--color-error);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

/* ===== 7. PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU Acceleration */
.notification-card,
.notification-icon,
.notifications-header,
.empty-state,
#load-more-btn {
    transform: translateZ(0);
    will-change: transform;
}