/* --- 1. Import da 00_global.css --- */
:root {
    --color-neon-magenta: #C060FF;    
    --color-neon-blue: #00BFFF;       
    --color-dark-void: #030303;      
    --color-text-light: #E0E0E0;      
    --color-glass-bg: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.15);
    --color-hover-glow: rgba(192, 96, 255, 0.4); 
}

html { 
    scroll-behavior: smooth; 
    height: 100%; 
    background-color: #000;
}

body {
    margin: 0; 
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--color-text-light);
    line-height: 1.6;
    width: 100%; 
    max-width: 100vw; 
    overflow-x: hidden; 
    min-height: 100vh;
    box-sizing: border-box; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* --- SFONDO CON FIX MOBILE --- */
    background-color: #000; 
    background-image: url('../assets/tx-dark-sand.jpg');
    background-size: cover;
    background-attachment: scroll; /* Fix per iOS */
    background-position: center;
    position: relative;
    z-index: 1;
}

/* Overlay scuro per leggibilità */
body::before {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0, 0, 0, 0.85);
    z-index: -1; 
}

*, *::before, *::after {
    box-sizing: inherit; 
}

/* --- 2. Layout vCard Mobile-Only --- */
.vcard-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Assicura che il footer stia in basso se il contenuto è corto */
    justify-content: space-between; 
}

/* --- 3. Stili Header (Logo, Nome, Titolo) --- */
.vcard-header {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    position: relative;
    
    /* Applichiamo l'animazione glow direttamente al logo */
    animation: pulseGlowLogo 4s infinite alternate;
}

.vcard-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.profile-title {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 5px 0 0 0;
    background: linear-gradient(90deg, var(--color-neon-blue) 0%, var(--color-neon-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(192, 96, 255, 0.5);
}

/* --- 4. Stili Bottoni (Link) --- */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto; /* Spinge i bottoni verso il centro */
}

.vcard-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vcard-button i {
    width: 20px;
    height: 20px;
    color: var(--color-neon-blue);
}

.vcard-button:hover {
    background-color: var(--color-neon-blue);
    color: var(--color-dark-void);
    border-color: var(--color-neon-blue);
    box-shadow: 0 0 20px var(--color-neon-blue);
    transform: translateY(-3px);
}
.vcard-button:hover i {
    color: var(--color-dark-void);
}

.vcard-button.primary {
    background-color: var(--color-neon-blue);
    color: var(--color-dark-void);
    border-color: var(--color-neon-blue);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
}
.vcard-button.primary i {
    color: var(--color-dark-void);
}

.vcard-button.primary:hover {
    background-color: var(--color-neon-magenta);
    border-color: var(--color-neon-magenta);
    color: var(--color-dark-void);
    box-shadow: 0 0 25px var(--color-neon-magenta);
}
.vcard-button.primary:hover i {
    color: var(--color-dark-void);
}

/* --- 5. Stili Bottoni Utility (Condividi / QR) --- */
.utility-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 5px;
}

.vcard-button.utility {
    background-color: transparent;
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-light);
    padding: 12px;
    font-weight: 500;
}
.vcard-button.utility i {
    color: var(--color-neon-magenta);
}

.vcard-button.utility:hover {
    background-color: var(--color-neon-magenta);
    border-color: var(--color-neon-magenta);
    color: var(--color-dark-void);
    box-shadow: 0 0 15px var(--color-neon-magenta);
}
.vcard-button.utility:hover i {
    color: var(--color-dark-void);
}

/* --- 6. Stili Modale QR Code --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 320px;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
    font-size: 1.2rem;
}

#qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid white;
}
#qrcode-container canvas {
    border-radius: 4px;
}

.qr-url-text {
    margin-top: 15px;
    margin-bottom: 0;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}
.close-modal:hover {
    color: white;
}

/* --- 7. Animazioni --- */
@keyframes pulseGlowLogo {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
        filter: drop-shadow(0 0 10px var(--color-neon-blue));
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 30px rgba(192, 96, 255, 0.6);
        filter: drop-shadow(0 0 20px var(--color-neon-magenta));
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
        filter: drop-shadow(0 0 10px var(--color-neon-blue));
    }
}

/* --- BLOCCHI MANCANTI AGGIUNTI QUI --- 
*/

/* --- 8. Stile Bio (Aggiunta) --- */
.profile-bio {
    font-size: 0.95rem;
    color: #AAA; /* Colore secondario, non bianco puro */
    font-weight: 400;
    line-height: 1.5;
    max-width: 90%; /* Evita che tocchi i bordi */
    margin-top: 15px; /* Spazio dal titolo */
    margin-bottom: 0;
}

/* --- 9. Stile Divisore Link Social (Rimosso perché i social sono nel footer) --- */

/* --- 10. Footer Social Icons & Copyright --- */
.vcard-footer {
    width: 100%;
    margin-top: auto; /* Spinge il footer in basso */
    padding-top: 30px; /* Spazio dai bottoni */
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Piccola linea divisoria */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-icons-footer {
    display: flex;
    gap: 30px; /* Spazio tra le icone */
}

.social-icons-footer a {
    text-decoration: none;
    color: #555; /* Colore base delle icone, scuro */
    transition: all 0.3s ease-in-out;
    position: relative;
    display: flex; /* Centra l'icona */
    align-items: center;
    justify-content: center;
}

.social-icons-footer a i {
    width: 28px; /* Dimensione delle icone, più grandi */
    height: 28px;
    stroke-width: 1.5; /* Spessore del tratto */
}

.social-icons-footer a:hover {
    color: var(--color-neon-blue); /* Colore glow all'hover */
    text-shadow: 0 0 15px var(--color-neon-blue), 0 0 30px var(--color-neon-blue); /* Effetto glow */
    transform: translateY(-2px); /* Lieve sollevamento */
}

@keyframes neonPulse {
    0% {
        color: var(--color-neon-magenta);
        text-shadow: 0 0 8px var(--color-neon-magenta), 0 0 15px var(--color-neon-magenta);
    }
    50% {
        color: var(--color-neon-blue);
        text-shadow: 0 0 12px var(--color-neon-blue), 0 0 25px var(--color-neon-blue);
    }
    100% {
        color: var(--color-neon-magenta);
        text-shadow: 0 0 8px var(--color-neon-magenta), 0 0 15px var(--color-neon-magenta);
    }
}

.copyright-text {
    font-size: 0.8rem;
    color: #666; /* Colore più tenue per il copyright */
    margin: 0;
    text-align: center;
}