/**
 * Token Notification Styles
 * 
 * Gentle, spiritual-themed notifications that appear between messages
 * without interrupting active conversations.
 */

.token-notification {
    margin: 1rem auto;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.token-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.notification-content {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.notification-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.notification-upgrade {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.notification-upgrade p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.notification-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.notification-actions .btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.notification-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.notification-actions .btn-outline-secondary {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #4a5568;
}

.notification-actions .btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #a0aec0;
}

.notification-dismiss {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-dismiss:hover {
    color: #718096;
    background: rgba(0, 0, 0, 0.05);
}

/* Urgency-specific styles */
.token-notification.notification-medium {
    border-left: 4px solid #f6ad55;
}

.token-notification.notification-medium::before {
    background: linear-gradient(90deg, #f6ad55 0%, #ed8936 100%);
}

.token-notification.notification-high {
    border-left: 4px solid #fc8181;
}

.token-notification.notification-high::before {
    background: linear-gradient(90deg, #fc8181 0%, #f56565 100%);
}

.token-notification.notification-critical {
    border-left: 4px solid #e53e3e;
    animation: gentle-pulse 2s ease-in-out infinite;
}

.token-notification.notification-critical::before {
    background: linear-gradient(90deg, #e53e3e 0%, #c53030 100%);
}

/* Gentle pulse animation for critical notifications */
@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(229, 62, 62, 0.15);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .token-notification {
        margin: 0.75rem 1rem;
        max-width: none;
    }
    
    .notification-content {
        padding: 1.25rem;
    }
    
    .notification-message {
        font-size: 1rem;
    }
    
    .notification-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .notification-actions .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .notification-content {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        border-color: #4a5568;
    }
    
    .notification-message {
        color: #e2e8f0;
    }
    
    .notification-upgrade {
        border-top-color: #4a5568;
    }
    
    .notification-upgrade p {
        color: #a0aec0;
    }
    
    .notification-actions .btn-outline-secondary {
        border-color: #4a5568;
        color: #a0aec0;
    }
    
    .notification-actions .btn-outline-secondary:hover {
        background: #2d3748;
        border-color: #718096;
    }
    
    .notification-dismiss {
        color: #718096;
    }
    
    .notification-dismiss:hover {
        color: #a0aec0;
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Accessibility improvements */
.token-notification:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.notification-actions .btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .token-notification {
        transition: opacity 0.3s ease;
    }
    
    .token-notification.notification-critical {
        animation: none;
    }
    
    .notification-actions .btn {
        transition: none;
    }
}
