/* assets/css/discord-popup.css */

/* Overlay */
.discord-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Container */
.discord-popup-container {
    position: relative;
    width: 90%;
    max-width: 520px;
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.1) 0%, 
        rgba(26, 31, 46, 0.95) 50%,
        rgba(218, 41, 46, 0.1) 100%);
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 60px #5865f20f, 0 0 100px rgba(88, 101, 242, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.discord-popup-overlay.show .discord-popup-container {
    transform: scale(1) translateY(0);
}

/* Close button */
.discord-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: rgba(255, 255, 255, 0.6);
}

.discord-popup-close:hover {
    background: rgba(218, 41, 46, 0.8);
    border-color: #DA292E;
    transform: rotate(90deg) scale(1.1);
    color: white;
}

/* Background elements */
.discord-popup-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.discord-floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    bottom: -30px;
    right: -30px;
    animation-delay: 5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00D4FF, #5865F2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.discord-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(88, 101, 242, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 3s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Content */
.discord-popup-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

/* Logo */
.discord-logo-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.discord-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.4;
    }
}

.discord-logo {
    position: relative;
    width: 100%;
    height: 100%;
    color: #5865F2;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.8));
}

/* Title */
.discord-popup-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    color: #F0F0F0;
    text-shadow: 
        0 0 20px rgba(88, 101, 242, 0.8),
        0 0 40px rgba(88, 101, 242, 0.4);
    display: block;
    font-size: 38px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 
            0 0 20px rgba(88, 101, 242, 0.8),
            0 0 40px rgba(88, 101, 242, 0.4);
    }
    to {
        text-shadow: 
            0 0 30px rgba(88, 101, 242, 1),
            0 0 50px rgba(88, 101, 242, 0.6);
    }
}

/* Description */
.discord-popup-description {
    color: #8B92A3;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.text-highlight {
    color: #F0F0F0;
    font-weight: 600;
}

/* Features */
.discord-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.discord-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 20px;
    color: #F0F0F0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.discord-feature:hover {
    background: rgba(88, 101, 242, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #5865F2;
}

/* Buttons */
.discord-popup-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.discord-join-btn {
    flex: 1;
    position: relative;
    padding: 14px 24px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.discord-join-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
}

.discord-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(88, 101, 242, 0.5),
        0 0 40px rgba(88, 101, 242, 0.3);
}

.btn-icon {
    animation: slideRight 1s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

.discord-later-btn {
    flex: 1;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #8B92A3;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-later-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F0F0F0;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Member count */
.discord-member-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8B92A3;
    font-size: 14px;
}

.member-count-live {
    width: 8px;
    height: 8px;
    background: #3BA55C;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.discord-member-count strong {
    color: #F0F0F0;
}

/* Mobile responsiveness */
@media (max-width: 568px) {
    .discord-popup-container {
        width: 95%;
        padding: 30px 20px;
    }
    
    .discord-popup-title {
        font-size: 26px;
    }
    
    .highlight-text {
        font-size: 30px;
    }
    
    .discord-features {
        gap: 10px;
    }
    
    .discord-feature {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .discord-popup-buttons {
        flex-direction: column;
    }
}