/**
 * Cosmic Update Widget CSS
 * A floating widget for displaying app updates with cosmic tree imagery
 */

.cosmic-update-widget {
    position: fixed;
    width: 320px;
    background: rgba(15, 15, 30, 0.85);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    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(10px);
    border: 1px solid rgba(126, 87, 194, 0.3);
}

/* Positioning classes */
.cosmic-update-widget.top-right {
    top: 20px;
    right: 20px;
}

.cosmic-update-widget.top-left {
    top: 20px;
    left: 20px;
}

.cosmic-update-widget.bottom-right {
    bottom: 20px;
    right: 20px;
}

.cosmic-update-widget.bottom-left {
    bottom: 20px;
    left: 20px;
}

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

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

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

/* Content */
.cosmic-update-content {
    position: relative;
    z-index: 2;
}

.cosmic-update-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #9c64ff;
}

.cosmic-update-content p {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Background */
.cosmic-update-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}

/* Theme specific styles */
.cosmic-update-widget.theme-cosmic-tree .cosmic-update-bg {
    background-image: url('/static/images/cosmic-meditation-tree.png');
}

/* Animation */
@keyframes pulseLight {
    0% {
        box-shadow: 0 0 10px rgba(126, 87, 194, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(126, 87, 194,.5);
    }
    100% {
        box-shadow: 0 0 10px rgba(126, 87, 194, 0.3);
    }
}

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