/* Notification System Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #ff00ff, #00ff88);
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.notification-icon {
    font-size: 24px;
    margin-right: 12px;
    float: left;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.notification-content {
    overflow: hidden;
}

.notification-message {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.notification-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.9;
}

.notification-amount {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.notification-user {
    font-style: italic;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Notification Types */
.notification-buy {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-left: 4px solid #00ff88;
}

.notification-sell {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border-left: 4px solid #ff6b6b;
}

.notification-transfer {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-left: 4px solid #4ecdc4;
    color: #333;
}

.notification-withdraw {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-left: 4px solid #ff8a80;
    color: #333;
}

.notification-swap {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 4px solid #ffb74d;
    color: #333;
}

.notification-stake {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-left: 4px solid #4ecdc4;
    color: #333;
}

.notification-yield {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    border-left: 4px solid #9c27b0;
    color: #333;
}

.notification-nft {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 4px solid #ff9800;
    color: #333;
}

.notification-defi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left: 4px solid #673ab7;
}

.notification-mining {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-left: 4px solid #e91e63;
}

.notification-airdrop {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-left: 4px solid #00bcd4;
}

.notification-referral {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-left: 4px solid #4caf50;
    color: #333;
}

.notification-bonus {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border-left: 4px solid #ffc107;
    color: #333;
}

.notification-special {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left: 4px solid #ffd700;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.lang-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.lang-dropdown option {
    background: #2c3e50;
    color: white;
    padding: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 14px;
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    .notification-icon {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-details {
        font-size: 11px;
    }
    
    .language-selector {
        margin-left: 10px;
    }
    
    .lang-dropdown {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .notification-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .notification {
        padding: 12px;
        margin-bottom: 6px;
    }
    
    .notification-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .notification-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Animation Classes */
.notification.slide-in {
    animation: slideIn 0.5s ease-out;
}

.notification.slide-out {
    animation: slideOut 0.5s ease-in;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Hover Effects */
.notification:hover .notification-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Glass Effect Enhancement */
.notification {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Notification Stack Effect */
.notification:nth-child(1) { z-index: 5; }
.notification:nth-child(2) { z-index: 4; }
.notification:nth-child(3) { z-index: 3; }
.notification:nth-child(4) { z-index: 2; }
.notification:nth-child(5) { z-index: 1; }

/* Loading State */
.notification.loading {
    position: relative;
}

.notification.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

