/**
 * Cosmic Wisdom Toast CSS
 * Styling for the toast notification system displaying cosmic wisdom
 */

.cosmic-wisdom-toast {
    position: fixed;
    width: 320px;
    background: rgba(10, 15, 30, 0.85);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 15px;
    color: #ffffff;
    font-family: 'Lato', 'Arial', sans-serif;
    z-index: 9999;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(126, 87, 194, 0.3);
    display: flex;
    align-items: center;
}

/* Positioning classes */
.cosmic-wisdom-toast.top-right {
    top: 20px;
    right: 20px;
}

.cosmic-wisdom-toast.top-left {
    top: 20px;
    left: 20px;
}

.cosmic-wisdom-toast.bottom-right {
    bottom: 20px;
    right: 20px;
}

.cosmic-wisdom-toast.bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Shown state */
.cosmic-wisdom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Close button */
.cosmic-toast-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cosmic-toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Content */
.cosmic-toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Icon */
.cosmic-toast-icon {
    width: 24px;
    height: 24px;
    background-image: url('/static/images/cosmic-meditation-tree.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 10px;
    opacity: 0.8;
}

/* Theme specific styles */
.cosmic-wisdom-toast.theme-cosmic {
    border-left: 4px solid #9C27B0;
}

.cosmic-wisdom-toast.theme-cosmic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at left center, rgba(156, 39, 176, 0.2) 0%, rgba(10, 15, 30, 0) 70%);
    z-index: -1;
}

/* Animation */
@keyframes wisdomPulse {
    0% {
        box-shadow: 0 0 8px rgba(126, 87, 194, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(126, 87, 194, 0.5);
    }
    100% {
        box-shadow: 0 0 8px rgba(126, 87, 194, 0.3);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .cosmic-wisdom-toast {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
    
    .cosmic-wisdom-toast.top-left,
    .cosmic-wisdom-toast.top-right {
        top: 10px;
    }
    
    .cosmic-wisdom-toast.bottom-left,
    .cosmic-wisdom-toast.bottom-right {
        bottom: 10px;
    }
}