/* 
 * Popup de Apertura del Servidor - ShadowMU
 * Estilo Equalizer Theme
 */

/* Overlay del popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container principal del popup */
.popup-container {
    position: relative;
    width: 590px;
    height: 400px; /* Aumentado para dar espacio al botón */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 3px solid #ffcc00;
    border-radius: 15px;
    box-shadow: 
        0 0 30px rgba(255, 204, 0, 0.5),
        inset 0 0 20px rgba(255, 204, 0, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

/* Botón de cerrar */
.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #ffcc00, #ff9c00);
    color: #1a1a1a;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 204, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Contenido del popup */
.popup-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    text-align: center;
}

/* Área de la imagen */
.popup-image-area {
    width: 100%;
    height: 330px;
    background-image: url('../img/server-opening.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
}

/* Área del botón */
.popup-button-area {
    width: 100%;
    height: 70px;
    background: linear-gradient(2deg, #0c0908 0%, #1d1414 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 12px 12px;
}

/* Imagen del servidor - ahora oculta ya que usamos background */
.popup-server-image {
    display: none;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.6)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.9)); }
}

/* Título principal */
.popup-title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 
        0 0 10px rgba(255, 204, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Fecha de apertura */
.popup-date {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    font-weight: 500;
}

.popup-date span {
    color: #ffcc00;
    font-weight: bold;
    font-size: 20px;
}

/* Botón de registro */
.popup-register-btn {
    background: linear-gradient(45deg, #ffcc00, #ff9c00, #cc7700);
    background-size: 200% 200%;
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 204, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradient-shift 3s ease infinite;
    letter-spacing: 0.5px;
    margin: 0;
}

.popup-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(255, 204, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation-duration: 1s;
}

.popup-register-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(255, 204, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Texto adicional */
.popup-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        width: 90%;
        height: auto;
        min-height: 350px;
        margin: 20px;
    }
    
    .popup-image-area {
        height: 280px;
    }
    
    .popup-button-area {
        height: 70px;
    }
    
    .popup-register-btn {
        font-size: 14px;
        padding: 10px 30px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 95%;
        margin: 10px;
    }
    
    .popup-image-area {
        height: 250px;
    }
    
    .popup-register-btn {
        font-size: 14px;
        padding: 10px 25px;
    }
}

/* Efectos adicionales */
.popup-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffcc00, #ff9c00, #ffcc00, #ff9c00);
    border-radius: 15px;
    z-index: -1;
    animation: border-glow 4s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
