@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
    --bg-dark: #000000;
    --card-bg: #000000;
    --card-border: #252525;
    --text-primary: #f0f0f0;
    --text-secondary: #AAAAAA;
    --accent-green: #1DB954;
    --badge-color: #6C70FF;
    --divider-color: #222222;
    --highlight-border: #333333;
    --status-online: #43b581;
    --status-idle: #faa61a;
    --status-dnd: #f04747;
    --status-offline: #000000;
    --border-radius: 8px;
    --card-padding-x: 25px;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    cursor: crosshair;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#click-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 1s ease-out;
}

#click-overlay h1 {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 2px;
}

.hidden {
    display: none !important;
    opacity: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px var(--card-padding-x);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    transition: opacity 1s ease-in;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(300px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.2),
            transparent 70%);
    transition: opacity 0.5s;
    z-index: 5;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-pic-container {
    position: relative;
    flex-shrink: 0;
}

.profile-pic {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;

}

.status {
    position: absolute;
    bottom: 5px;
    left: 40px;
    width: 24px;
    height: 24px;

    z-index: 10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.status.online {
    background-image: url('https://cdn.discordapp.com/attachments/1394822246014652497/1419140408696639589/3411-online-status.png?ex=68ea623f&is=68e910bf&hm=9951ab83dfb3588136717d11dee496ea48e3536e68eefed1ddf5d8594bbd8217&');
    background-color: transparent;
}

.status.idle {
    background-image: url('https://cdn.discordapp.com/attachments/1394822246014652497/1419140447670112387/9231-idle.png?ex=68ea6249&is=68e910c9&hm=3f85a0670239fb7d5b51bb8a72e8454aa322dcff2ecd296b4915264feb6771cd&');
    background-color: transparent;
}

.status.dnd {
    background-image: url('https://cdn.discordapp.com/attachments/1394822246014652497/1419140426660708392/7013-do-not-disturb.png?ex=68ea6244&is=68e910c4&hm=950e3050360f1504f9e24804e84a700f2104f335d39bd262ecf9fe4d047695d0&');
    background-color: transparent;
}

.status.offline,
.status.invisible {
    background-image: url('https://cdn.discordapp.com/attachments/1394822246014652497/1419140435867074685/8616-offline-status.png?ex=68ea6246&is=68e910c6&hm=968d591a96d08c5b8ed5173b88fcbb5355e1d4c7a92188b328a4e51fe8226271&');
    background-color: transparent;
}

.profile-details {
    flex-grow: 1;
}

.username {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;

}

.nickname {
    font-family: 'OCR-A EF Pro-Regular', 'OCR A Std', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.badges {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.badge {
    color: var(--badge-color);
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.action-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    cursor: crosshair;
    transition: color 0.2s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.profile-card:hover .action-button {
    opacity: 1;
    pointer-events: auto;
}

.action-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.action-button:hover {
    color: var(--text-primary);
}

/* AJUSTE: Remove margem vertical da divisória para que as seções controlem o espaçamento */
.divider {
    border: none;
    border-top: 1px solid var(--divider-color);
    margin: 0 calc(-1 * var(--card-padding-x)); /* Garante que a linha vá de ponta a ponta */
}

.social-title-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #535353;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* AJUSTE: Garante espaçamento inferior de 20px na seção Social */
.social-section {
    position: relative;
    z-index: 10;
    margin-top: 20px; /* Adiciona espaçamento superior (abaixo da primeira divisória) */
    margin-bottom: 20px; /* Adiciona espaçamento inferior (acima da segunda divisória) */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background-color: var(--divider-color);
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.social-icon .icon-image {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
}

/* AJUSTE: Garante espaçamento superior de 20px na seção Spotify (abaixo da segunda divisória) */
.spotify-info {
    position: relative;
    z-index: 10;
    padding: 20px 0 10px 0; /* 20px de espaçamento acima da seção */
}

.spotify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.spotify-header .section-title {
    margin-bottom: 0;
    flex-shrink: 0;
}

.spotify-title-icon {
    width: 16px;
    height: 16px;
    stroke: var(--accent-green);
    fill: none;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.last-seen-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px; 
}


.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #43b581;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.spotify-track-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid var(--highlight-border);
    border-radius: 6px;
}

.spotify-image {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.track-text {
    overflow: hidden;
}

.spotify-song {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.spotify-progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}

.progress-bar-track {
    flex-grow: 1;
    height: 4px;
    background-color: var(--divider-color);
    border-radius: 2px;
    overflow: hidden;
}

.spotify-progress {
    height: 100%;
    width: 0%;
    background-color: var(--accent-green);
    border-radius: 2px;
    transition: width 1s linear;
}