/* EXO Panda Changelog Popup Styles */

/* Backdrop blur overlay */
.changelog-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;
}

.changelog-backdrop.active {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

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

/* Floating glow orb animation */
.changelog-glow-orb {
    position: fixed;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.8) 0%, rgba(0, 255, 136, 0.4) 30%, rgba(0, 255, 136, 0) 70%);
    z-index: 9997;
    pointer-events: none;
    opacity: 0;
    filter: blur(40px);
    transform: translate(-50%, -50%);
    animation: none;
}

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

@keyframes changelogGlowFloat {
    0% {
        opacity: 0;
        left: 50%;
        top: 100%;
        transform: translate(-50%, -50%) scale(2);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Main popup container - centered */
.changelog-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    z-index: 9999;
    width: 480px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 100px);
    background: #141414;
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 255, 136, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    overflow: hidden;
}

/* Animated glow border effect */
.changelog-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00cc6a, #00ff88, #22c55e);
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    animation: changelog-glow 3s ease infinite;
    opacity: 0.6;
}

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

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

.changelog-popup.changelog-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.changelog-popup.changelog-hiding {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
}

.changelog-popup-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Header section */
.changelog-popup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 168, 255, 0.05));
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.changelog-popup-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.changelog-popup-icon svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.changelog-popup-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.changelog-popup-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.changelog-popup-subtitle {
    font-size: 0.85rem;
    color: #9a9a9a;
}

.changelog-popup-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.changelog-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.changelog-popup-close svg {
    color: #7a7a7a;
}

/* Body section with version items */
.changelog-popup-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.changelog-popup-body::-webkit-scrollbar {
    width: 6px;
}

.changelog-popup-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.changelog-popup-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

/* Individual version items */
.changelog-version-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.changelog-version-item.latest {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.25);
}

.changelog-version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.changelog-version-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog-version-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e6e6e6;
}

.changelog-version-item.latest .changelog-version-number {
    color: #00ff88;
}

.changelog-new-badge {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.changelog-priority {
    font-size: 0.85rem;
}

.changelog-time {
    font-size: 0.8rem;
    color: #7a7a7a;
}

.changelog-version-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e6e6e6;
    margin-bottom: 10px;
}

.changelog-items {
    margin: 0;
    padding-left: 18px;
    color: #9a9a9a;
    font-size: 0.85rem;
    line-height: 1.7;
}

.changelog-items li {
    margin-bottom: 4px;
}

/* Actions footer */
.changelog-popup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(0, 255, 136, 0.03);
    border-top: 1px solid rgba(0, 255, 136, 0.15);
}

.changelog-popup-link {
    color: #9a9a9a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.changelog-popup-link:hover {
    color: #00ff88;
}

.changelog-popup-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.changelog-popup-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.4);
}

.changelog-popup-download svg {
    width: 16px;
    height: 16px;
}

/* Mobile responsive */
@media (max-width: 520px) {
    .changelog-popup {
        width: calc(100vw - 32px);
        max-height: calc(100vh - 60px);
    }
    
    .changelog-popup-header {
        padding: 16px 18px;
    }
    
    .changelog-popup-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .changelog-popup-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .changelog-popup-title {
        font-size: 1rem;
    }
    
    .changelog-popup-body {
        padding: 16px 18px;
        max-height: 250px;
    }
    
    .changelog-popup-actions {
        flex-direction: column;
        gap: 12px;
        padding: 14px 18px;
    }
    
    .changelog-popup-download {
        width: 100%;
        justify-content: center;
    }
}
