@charset "UTF-8";

:root {
    --bg-color: #050505;
    --primary-glow: #222222; /* Sostituito il viola con un grigio molto scuro/nero */
    --secondary-glow: #111111;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --card-bg: rgba(15, 15, 15, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --discord-color: #5865F2;
    --youtube-color: #FF0000;
    --namemc-color: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Nascondiamo il cursore di default per usare quello custom */
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* --- BACKGROUND VIDEO & OVERLAY --- */
.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background-color: var(--bg-color);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Aumentato leggermente per far vedere meglio il gioco */
    transform: scale(1.05); /* Evita bordi neri */
    filter: blur(5px) brightness(0.4); /* Effetto sfocato leggero ma abbastanza scuro da far risaltare il contenuto */
}

/* Sfondo animato a gradiente opzionale (sopra il video, sotto il contenuto) */
.background-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.2) 0%, rgba(5, 5, 5, 0.7) 100%);
    pointer-events: none;
}

/* --- CURSORE CUSTOM --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
    box-shadow: 0 0 10px var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* --- SCHERMATA "CLICK TO REVEAL" --- */
#reveal-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.reveal-btn {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-family: inherit;
    font-size: 2.5rem; /* PIU' GRANDE */
    font-weight: 700;
    padding: 20px 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: none;
    letter-spacing: -1px;
}

.reveal-btn:hover {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    background: rgba(40, 40, 40, 0.6);
}

/* --- MAIN CONTAINER --- */
.main-container {
    width: 100%;
    max-width: 450px;
    padding: 30px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    z-index: 10;
}

.main-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Profile Card */
.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Avatar */
.avatar-container {
    position: relative;
    margin-bottom: 20px;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05); /* Poco glow */
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: #23a559;
    border: 3px solid #141414;
    border-radius: 50%;
    box-shadow: 0 0 10px #23a559;
}

/* Testi */
.username {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Links / Cards */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.link-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.yt-icon { color: var(--youtube-color); text-shadow: 0 0 5px rgba(255, 0, 0, 0.3); }
.mc-icon { color: var(--namemc-color); text-shadow: 0 0 5px rgba(16, 185, 129, 0.3); }
.dc-icon { color: var(--discord-color); text-shadow: 0 0 5px rgba(88, 101, 242, 0.3); }

.link-card:hover .yt-icon { text-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
.link-card:hover .mc-icon { text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.link-card:hover .dc-icon { text-shadow: 0 0 10px rgba(88, 101, 242, 0.5); }

.link-texts {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.link-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- DISCORD ACTIVITY CARD (Stile confusion3h) --- */
.discord-activity-card {
    margin-top: 10px;
    width: 100%;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.discord-activity-card:hover {
    background: rgba(30, 30, 30, 0.8);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.activity-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-avatar-wrapper {
    position: relative;
    display: flex;
}

.activity-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border: 3px solid #1a1a1a;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

/* Colori di stato Discord */
.activity-status.online { background-color: #23a559; }
.activity-status.idle { background-color: #f0b232; }
.activity-status.dnd { background-color: #f23f42; }
.activity-status.offline { background-color: #80848e; }

.activity-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.activity-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.activity-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

.activity-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-icon-placeholder {
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CONTROLLO VOLUME (in basso a sinistra come da foto) --- */
.volume-control {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, transform 0.3s ease;
}

.volume-control.visible {
    opacity: 1;
    visibility: visible;
}

.volume-control:hover {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.volume-icon {
    font-size: 1.2rem;
    color: var(--text-main);
    width: 20px;
    text-align: center;
}

.volume-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-main);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    z-index: 10;
}

.heart {
    color: var(--text-muted); /* Tolto il viola anche dal cuore */
    animation: pulse 1.5s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .profile-card {
        padding: 30px 20px;
    }
    .cursor-dot, .cursor-outline {
        display: none;
    }
    * {
        cursor: auto;
    }
    .reveal-btn {
        cursor: pointer;
        font-size: 1.8rem;
        padding: 15px 30px;
    }
    .volume-control {
        bottom: 20px;
        left: 20px;
        padding: 10px 14px;
    }
    .volume-slider {
        width: 60px;
    }
}