/* Notifications Page Styling */

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.notifications-header h1 {
    font-size: 2rem;
    color: #374151;
    margin: 0;
}

.notifications-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 
        0 4px 8px rgba(59, 130, 246, 0.3),
        inset 0 1px 2px rgba(255,255,255,0.3);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(145deg, #6b7280, #4b5563);
}

.action-btn.secondary:hover {
    background: linear-gradient(145deg, #4b5563, #374151);
}

/* Notification Filters */
.notification-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-tab:hover {
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    border-color: #3b82f6;
}

.filter-tab.active {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Notifications Container */
.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.notification-item.unread {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Notification Icon */
.notification-icon {
    font-size: 2rem;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    border-radius: 50%;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.8);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 5px 0;
}

.notification-content p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Notification Actions */
.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.notification-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-actions button:hover {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
}

.notification-actions button.secondary {
    background: linear-gradient(145deg, #e5e7eb, #d1d5db);
    color: #374151;
}

.notification-actions button.secondary:hover {
    background: linear-gradient(145deg, #d1d5db, #9ca3af);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 5rem;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: #374151;
    margin: 0 0 10px 0;
}

.empty-state p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Type-specific styling */
.notification-item[data-type="new_follower"] .notification-icon {
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
}

.notification-item[data-type="project_comment"] .notification-icon,
.notification-item[data-type="comment_reply"] .notification-icon {
    background: linear-gradient(145deg, #fef3c7, #fde68a);
}

.notification-item[data-type="project_like"] .notification-icon {
    background: linear-gradient(145deg, #fecaca, #fca5a5);
}

.notification-item[data-type="achievement_unlocked"] .notification-icon {
    background: linear-gradient(145deg, #fde68a, #fcd34d);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 2px rgba(255,255,255,0.8); }
    50% { box-shadow: 0 0 20px rgba(252, 211, 77, 0.5), inset 0 1px 2px rgba(255,255,255,0.8); }
}

.notification-item[data-type="aeros_earned"] .notification-icon {
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .notifications-actions {
        width: 100%;
    }

    .action-btn {
        flex: 1;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .notification-item {
        padding: 15px;
    }

    .notification-icon {
        font-size: 1.5rem;
        min-width: 40px;
        height: 40px;
    }

    .notification-content h3 {
        font-size: 0.95rem;
    }

    .notification-content p {
        font-size: 0.85rem;
    }
}

