@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Blur Overlay */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    background: rgba(102, 126, 234, 0.5);
    z-index: 9999;
    cursor: url('https://r2.guns.lol/9f5c23e3-620e-484e-b754-7298fe761c5e.png') 16 16, pointer;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.blur-text {
    font-size: 40px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    letter-spacing: 2px;
    animation: fadeOutText 10s ease-in forwards 4s;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
    
@keyframes fadeOutText {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeOutOverlay {
    0% { 
        opacity: 1; 
        background: rgba(102, 126, 234, 0.5);
        backdrop-filter: blur(50px);
    }
    100% { 
        opacity: 0; 
        background: rgba(102, 126, 234, 0);
        backdrop-filter: blur(0px);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.blur-overlay.hidden {
    pointer-events: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(27, 27, 27, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transition: all 0.3s;
}

.music-player:hover {
    background: rgba(27, 27, 27, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.music-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.3s;
}

.music-toggle:hover {
    color: #ffffff;
}

.music-toggle svg {
    width: 20px;
    height: 20px;
}

.pause-icon.hidden, .play-icon.hidden {
    display: none;
}

.music-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.music-title {
    font-weight: 500;
}

body {
    font-family: 'Inter', sans-serif;
    background: #080808;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.shaders.cc/ElderGuardian.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

/* Snowflakes */
.snowflakes {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5em;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    100% {
        transform: translateY(110vh) translateX(var(--drift)) rotate(360deg);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    background: rgba(27, 27, 27, 0.5);
    border-radius: 20px;
    padding: 35px 15px;
    max-width: 40rem;
    width: 90%;
    text-align: center;
}

/* Avatar */
.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(27, 27, 27, 0.4);
}

.avatar-decoration {
    position: absolute;
    top: -7%;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    pointer-events: none;
}

/* Username & Bio */
.username {
    font-family: 'Poppins', sans-serif;
    font-size: 39.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0px 0px 30px rgba(255, 255, 255, 1), 0px 0px 60px rgba(255, 255, 255, 0.7), 0px 0px 90px rgba(255, 255, 255, 0.4);
    letter-spacing: -0.5px;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.bio {
    font-size: 19px;
    font-weight: 570;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Discord Presence */
.presence {
    margin: 20px 0;
}

.presence-container {
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.presence-container:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.presence-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.discord-avatar {
    position: relative;
    flex-shrink: 0;
}

.discord-avatar img:first-child {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(27, 27, 27, 0.15);
}

.status-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    border: 2px solid rgba(27, 27, 27, 0.5) !important;
}

.presence-info {
    flex: 1;
}

.activity-rpc {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rpc-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rpc-container {
    position: relative;
    flex-shrink: 0;
}

.rpc-small-image {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(27, 27, 27, 0.5);
    display: block;
    opacity: 1;
    transition: all 0.2s ease;
}

.rpc-container:hover .rpc-small-image {
    filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.6));
    transform: scale(1.15);
}

.rpc-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
    opacity: 0;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
}

.rpc-container:hover .rpc-text {
    opacity: 1;
}

.discord-username {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 18.5px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.guild-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 13px;
}

.guild-tag img {
    width: 16px;
    height: 16px;
}

.badges {
    display: flex;
    gap: 5px;
}

.badges img {
    width: 20.5px;
    height: 20.5px;
    opacity: 0.8;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.badges img:hover {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.6));
    transform: scale(1.1);
}

.badges img:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 40, 40, 0.95);
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    border: 1.5px solid rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 12px rgba(102, 126, 234, 0.2);
    pointer-events: none;
    letter-spacing: 0.3px;
}

.badges img:hover::before {
    content: '';
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(40, 40, 40, 0.95);
    z-index: 100;
    pointer-events: none;
}

.activity {
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.activity-type {
    color: rgba(255, 255, 255, 0.65);
}

/* Socials */
.socials {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.social-btn {
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn svg {
    width: 26px;
    height: 26px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 16px rgba(102, 126, 234, 0.3));
    transform: scale(1.05);
}

/* Views */
.views {
    position: absolute;
    bottom: 12px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 550;
    color: rgba(255, 255, 255, 0.7);
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
