/* Stili per la schermata introduttiva - Yoyomove.ai Theme */

/* Import Google Fonts - Poppins (simile al font Yoyomove.ai) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Colori Yoyomove.ai */
    --cyan-primary: #5DADE2;
    --cyan-light: #85C1E9;
    --cyan-glow: rgba(93, 173, 226, 0.5);
    --yellow-primary: #FFD700;
    --gold: #FFA500;
    --gold-glow: rgba(255, 165, 0, 0.4);
    --bg-dark: rgba(20, 24, 36, 0.95);
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: -webkit-fill-available;
    background: linear-gradient(135deg, #000000 0%, #0a0e1a 50%, #1a2332 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    padding: 10px;
    box-sizing: border-box;
}

/* Sfondo stellato animato */
.intro-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 85%, white, transparent),
        radial-gradient(2px 2px at 75% 25%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.3;
    animation: stars-move 60s linear infinite;
    pointer-events: none;
}

/* Glow overlay */
.intro-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, var(--cyan-glow) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, var(--gold-glow) 0%, transparent 40%);
    opacity: 0.6;
    pointer-events: none;
}

@keyframes stars-move {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.intro-container {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border: 2px solid var(--cyan-primary);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    max-height: calc(100vh - 20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--cyan-glow),
        inset 0 0 40px rgba(93, 173, 226, 0.08);
    transform: scale(0.9);
    animation: scaleIn 0.5s ease-in-out 0.3s forwards;
    position: relative;
    z-index: 1;
    overflow-y: auto;
}

.intro-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-image: url('../assets/logo-ai-chatbot.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 15px var(--gold-glow));
    animation: pulse-glow 2s ease-in-out infinite;
    font-size: 0;
}

.intro-title {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.intro-welcome {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.intro-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.intro-button {
    background: linear-gradient(135deg, var(--gold), var(--yellow-primary));
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 14px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--gold-glow);
}

.intro-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.intro-logout {
    margin-top: 20px;
    color: var(--cyan-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.intro-logout:hover {
    color: var(--cyan-light);
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--gold-glow))
                drop-shadow(0 0 40px rgba(255, 165, 0, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 30px var(--gold-glow))
                drop-shadow(0 0 60px rgba(255, 165, 0, 0.6));
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .intro-container {
        padding: 30px 25px;
    }

    .intro-logo {
        width: 70px;
        height: 70px;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-welcome {
        font-size: 1.5rem;
    }

    .intro-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-container {
        padding: 25px 20px;
        width: 95%;
    }

    .intro-logo {
        width: 60px;
        height: 60px;
    }

    .intro-title {
        font-size: 1.8rem;
    }

    .intro-welcome {
        font-size: 1.3rem;
    }

    .intro-message {
        font-size: 0.95rem;
    }

    .intro-button {
        padding: 12px 28px;
        font-size: 1.1rem;
    }
}
