/* Profile Page Styles - Based on bia-bio with flamy.lol design system */

:root {
    --primary-pink: #ff9ec7;
    --secondary-pink: #ffb3d9;
    --accent-purple: #c77dff;
    --bg-dark: #1a0f1a;
    --bg-darker: #2a1a2a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(20, 20, 30, 0.3);
    --glass-border: rgba(255, 158, 199, 0.2);
    --glow-pink: rgba(255, 158, 199, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    height: 100vh;
    color: white;
    overflow-x: hidden;
    background-color: #222222;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Background Video/Image */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    object-fit: cover;
    opacity: 0.7;
}

.placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0.5%;
    top: 1%;
    opacity: 0.9;
    z-index: 1000;
}

.volume-icon {
    cursor: pointer;
    transition: opacity 0.3s;
}

.volume-icon:hover {
    opacity: 1;
}

.volume-slider {
    width: 120px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    outline: none;
    opacity: 0;
    transition: opacity 0.2s ease-in, opacity 0.7s ease-out;
    -webkit-appearance: none;
    border-radius: 2px;
    position: absolute;
    left: 100%;
    margin-left: 10px;
}

.volume-control:hover .volume-slider {
    opacity: 0.7;
    transition: opacity 0.2s ease-in;
}

.volume-slider:hover {
    opacity: 0.7;
    transition: opacity 0s;
}

.volume-slider:hover {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
}

/* Main Content */
.content {
    position: fixed;
    width: 100%;
    align-items: center;
    max-width: var(--containerWidth, 650px);
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    will-change: transform;
    transition: 700ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
    margin-top: 80px;
}

.container {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
    border-radius: 15px;
    height: auto;
    min-height: 15rem;
    padding: 35px 15px;
    width: 100%;
    max-width: 650px;
    text-align: center;
    border: 2px solid rgba(175, 175, 175, 0.048);
    margin: -10px; /* WITH MUSIC CONTAINER UP ANIMATION */
    margin-top: 80px;
    transition: transform 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99), height 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99);
    overflow: visible;
    transform-style: preserve-3d;
}

/* Avatar */
.avatar {
    margin-top: 50px;
    z-index: 1;
    border-radius: 50%;
    height: 115px;
    width: 115px;
    outline: 3px solid rgba(255, 255, 255, 0.301);
    pointer-events: none;
    object-fit: cover;
}

/* Profile Layout */
.profileLayout {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 27rem;
    text-align: center;
}

/* Username */
.profileUsername {
    font-weight: 600;
    font-size: 50px;
    width: fit-content;
    pointer-events: none;
    color: #ffffff;
    text-shadow: 0 0 20px #ffffff;
    -webkit-animation: glow 1s ease-in-out infinite alternate;
    -moz-animation: glow 1s ease-in-out infinite alternate;
    animation: glow 1s ease-in-out infinite alternate;
}

.profileUsername span {
    font-weight: 600;
    font-size: 40px;
    width: fit-content;
    pointer-events: none;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px #ffffff, 0 0 30px #ffffff, 0 0 40px #ffffff;
    }
    to {
        text-shadow: 0 0 30px #ffffff, 0 0 40px #ffffff, 0 0 50px #ffffff;
    }
}

/* Badges */
.profileBadges {
    margin-bottom: 17px;
    margin-top: 8px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 25px;
    display: flex;
    gap: 5.5px;
    justify-content: center;
    padding: 6px 10px;
}

.profileBadge {
    position: relative;
    font-size: 20.5px;
    display: flex;
    align-items: center;
    color: #ffffff !important;
}

.profileBadge svg {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Bio */
.profileBio {
    font-weight: 570;
    font-size: 17px;
    margin-top: 5px;
    color: white;
    height: 23px;
}

/* Discord Presence */
.presenceWrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 28rem;
    width: 100%;
}

.presenceContainer {
    margin-top: 20px;
    align-items: center;
    display: flex;
    text-overflow: ellipsis;
    background-color: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    box-sizing: border-box;
    justify-content: space-between;
    max-width: fit-content;
    width: 100%;
}

.discordInfos {
    display: flex;
    gap: 10px;
    justify-content: left;
    padding: 10px;
    position: relative;
    white-space: nowrap;
}

.discordAvatar {
    display: flex;
    position: relative;
}

.avatarImage {
    border-radius: 50%;
    height: 70px;
    object-fit: cover;
    width: 70px;
}

.discordStatus {
    bottom: 2px;
    height: 17px;
    object-fit: cover;
    position: absolute;
    right: 2px;
    width: 17px;
}

.discordActivity {
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    gap: 12px;
}

.discordUser {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discordUser h3 {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 2px;
    font-style: italic;
    text-align: left;
}

.discordUserDiv {
    align-items: center;
    display: flex;
}

.discordUserDiv span {
    font-weight: 600;
    font-size: 20px;
    color: white;
}

.discordUserBadges {
    display: flex;
    align-items: center;
    margin-left: 6px;
}

.discordUserBadges img {
    height: 22px;
    object-fit: cover;
    width: 22px;
}

/* Social Links */
.linkedAccounts {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    filter: drop-shadow(0 0 0.9px #ffffff) !important;
    transition: all 0.3s ease;
}

.linkedAccountsRedirect {
    transition: all 0.3s;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.linkedAccountsRedirect svg {
    transition: transform 0.3s ease;
}

.linkedAccountsRedirect:hover svg {
    transform: scale(1.25);
    filter: drop-shadow(0 0 0.8px #ffffff) !important;
}

.linkedAccountsRedirect::before {
    content: attr(data-type);
    opacity: 0;
    color: white;
    position: absolute;
    font-size: 15px;
    font-weight: 600;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    padding: 2px 16px;
    z-index: 1;
    white-space: nowrap;
    transition: opacity .2s;
}

.linkedAccountsRedirect:hover::before {
    opacity: .8;
}

/* Stats */
.profileStats {
    display: flex;
    align-items: center;
    position: relative;
    bottom: -31px;
    gap: 0.5rem;
    padding: 6px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.178);
    transition: all 0.3s ease;
    z-index: 5;
    filter: blur(10px);
}

.profileStats:hover {
    filter: blur(0px);
}

.profileViews, .profileLocation {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    padding: 2px 4px;
}

.separator {
    height: 16px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.041);
    margin: 0 2px;
    border-radius: 25px;
}

/* Music Player */
.music-container {
    font-family: 'Inter', sans-serif;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    min-height: 5rem;
    padding: 35px 15px;
    width: 100%;
    max-width: 650px;
    max-height: 100px;
    text-align: center;
    border: 2px solid rgba(175, 175, 175, 0.048);
    margin: 0 auto;
    will-change: transform, height;
    transition: height 0.5s ease, min-height 0.5s ease;
    overflow: hidden;
}

.music-player {
    width: 500px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: large;
}

.player-controls {
    margin-bottom: 0px;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.player-controls svg {
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.player-controls svg:hover {
    opacity: 1.0 !important;
}

.player-timeline {
    display: flex;
    align-items: center;
    margin-top: -12px;
    gap: 10px;
}

.timeline {
    flex-grow: 1;
    height: 4px;
    background-color: #ffffff36;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.timeline-progress {
    height: 100%;
    background-color: var(--primary-pink);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.current-time, .total-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    min-width: 40px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.elemento-para-animar {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.elemento-para-animar.animar {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1s; }
.delay-15 { animation-delay: 1.5s; }
.delay-16 { animation-delay: 1.6s; }
.delay-17 { animation-delay: 1.7s; }
.delay-18 { animation-delay: 1.8s; }
.delay-20 { animation-delay: 2s; }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px 10px;
        min-height: 12rem;
        max-width: 90%;
    }
    
    .avatar {
        margin-top: 20px;
    }
    
    .music-container {
        max-width: 90%;
    }
    
    .music-player {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 8px;
        min-height: 10rem;
        max-width: 95%;
        border-radius: 10px;
        margin-bottom: 80px;
    }
    
    .profileStats {
        flex-direction: row;
        bottom: -20px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .profileViews svg, .profileLocation svg {
        width: 14px;
        height: 14px;
    }
}

