/* EXO Panda Announcement Popup Styles */

/* Backdrop blur overlay */
.announcement-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    transition: all 0.6s ease;
}

.announcement-backdrop.active {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.announcement-backdrop.fading {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

/* Floating red glow orb that moves towards notification */
.announcement-glow-orb {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 68, 68, 0.8) 0%, rgba(244, 68, 68, 0.4) 30%, rgba(244, 68, 68, 0) 70%);
    z-index: 9997;
    pointer-events: none;
    opacity: 0;
    filter: blur(30px);
    transform: translate(-50%, -50%);
    animation: none;
}

.announcement-glow-orb.animate {
    animation: glowOrbFloat 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes glowOrbFloat {
    0% {
        opacity: 0;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(2);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        left: calc(100% - 200px);
        top: 150px;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

.announcement-banner {
    position: fixed;
    top: 90px;
    right: 24px;
    left: auto;
    z-index: 9999;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: #141414;
    border: 1px solid rgba(244, 68, 68, 0.4);
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(244, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.3);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    overflow: hidden;
}

/* Animated glow border effect */
.announcement-banner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f44444, #ff6b6b, #f44444, #ff8888);
    background-size: 300% 300%;
    border-radius: 18px;
    z-index: -1;
    animation: announcement-glow 3s ease infinite;
    opacity: 0.6;
}

@keyframes announcement-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Inner background overlay */
.announcement-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #141414;
    border-radius: 16px;
    z-index: 0;
}

.announcement-banner.announcement-visible {
    transform: scale(1);
    opacity: 1;
}

.announcement-banner.announcement-hiding {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
}

.announcement-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header with icon and close button */
.announcement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.announcement-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(244, 68, 68, 0.2) 0%, rgba(244, 68, 68, 0.1) 100%);
    border: 1px solid rgba(244, 68, 68, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: announcement-pulse 2s ease-in-out infinite;
}

@keyframes announcement-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(244, 68, 68, 0); }
}

.announcement-icon svg {
    width: 18px;
    height: 18px;
    color: #f44444;
}

.announcement-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.announcement-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.announcement-subtitle {
    color: #9a9a9a;
    font-size: 0.875rem;
    line-height: 1.5;
}

.announcement-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    background: linear-gradient(135deg, #f44444 0%, #d63939 100%);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(244, 68, 68, 0.3);
}

.announcement-link:hover {
    background: linear-gradient(135deg, #ff5555 0%, #e64444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 68, 68, 0.4);
    color: #fff;
}

.announcement-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #7a7a7a;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.announcement-close:hover {
    background: rgba(244, 68, 68, 0.15);
    border-color: rgba(244, 68, 68, 0.4);
    color: #f44444;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .announcement-banner {
        top: auto;
        bottom: 24px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
    
    .announcement-content {
        padding: 16px;
        gap: 12px;
    }
    
    .announcement-title {
        font-size: 0.95rem;
    }
    
    .announcement-subtitle {
        font-size: 0.8rem;
    }
    
    .announcement-link {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}
