/* Announcements - particle animations and popup styling */

/* Announcement popup sizing */
.announcement-popup {
    max-width: 900px !important;
    max-height: 90vh;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
}

/* Keenthemes-style title header */
.announcement-popup .swal2-title {
    background-color: var(--bs-gray-100);
    margin: 0;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-gray-900);
    text-align: left;
    border-radius: 0.625rem 0.625rem 0 0;
    flex-shrink: 0;
}

.announcement-popup .swal2-html-container {
    max-height: none !important;
    overflow-y: auto !important;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    padding: 1.25rem 1.75rem;
    margin: 0;
    flex: 1;
    min-height: 0;
}

/* Announcement popup images */
.announcement-popup img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Particle overlay */
.announcement-particles-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

/* Individual particle */
.announcement-particle {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    user-select: none;
    pointer-events: none;
}

/* Fall animation (hearts, confetti, snowflakes) */
@keyframes announcement-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Rise animation (fireworks) */
@keyframes announcement-rise {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: translateY(40vh) scale(1.2);
    }
    100% {
        transform: translateY(-20px) scale(0.3);
        opacity: 0;
    }
}

.announcement-particle--fall {
    animation: announcement-fall linear forwards;
}

.announcement-particle--rise {
    animation: announcement-rise ease-out forwards;
}
