/* Estilos para o overlay de fundo */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.welcome-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Estilos para o card do popup */
.welcome-popup {
    background: linear-gradient(145deg, #001f3f, #003366, #004080);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.welcome-overlay.active .welcome-popup {
    transform: translateY(0);
    opacity: 1;
}

/* Efeito de brilho animado */
.welcome-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0) 50%
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    30%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* Cabeçalho do popup */
.welcome-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.welcome-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(90deg, #00a0e9, #0066cc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.welcome-header p {
    color: #66b3ff;
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

/* Conteúdo do popup */
.welcome-content {
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.welcome-content p {
    margin: 0 0 1rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.welcome-content p::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00a0e9;
    font-weight: bold;
}

/* Botão de fechar */
.welcome-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.welcome-close:hover {
    background: #cc0000;
    transform: rotate(90deg);
}

/* Botão principal */n.welcome-button {
    display: inline-block;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.welcome-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    transition: all 0.6s ease;
    z-index: -1;
}

.welcome-button:hover::before {
    left: 0;
}

.welcome-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.6);
}

/* Efeito de partículas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100%) rotate(360deg);
        opacity: 0;
    }
}

/* Responsividade */
@media (max-width: 600px) {
    .welcome-popup {
        padding: 1.5rem;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-content {
        font-size: 1rem;
    }
}
