/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #050505;
    color: white;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ===== BACKGROUND VIDEO/IMG ===== */
.bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    opacity: 0.8;
    background: url('custom-bg.jpg') center/cover no-repeat;
    filter: blur(4px) brightness(0.6);
}

/* ===== OVERLAY ===== */
#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease-out;
}

#enter-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.enter-text {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== MAIN CONTAINER ===== */
.profile-container {
    width: 90%;
    max-width: 450px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

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

/* ===== AVATAR ===== */
.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ===== USER INFO ===== */
.username {
    font-size: 1.6rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.bio {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* ===== SOCIAL LINKS ===== */
.links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.2s, text-shadow 0.2s;
}

.social-link:hover {
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

/* ===== VIEW COUNTER ===== */
.views {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* ===== AUDIO CONTROLS ===== */
.audio-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transition: all 0.3s;
}

.audio-controls:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mute-btn {
    cursor: pointer;
    width: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.mute-btn:hover {
    transform: scale(1.1);
}

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

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Snowfall Canvas */
#snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
