@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #f70000;
    --background-color: #080808;
    --text-color: #ffffff;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('images/QElrEuN1h3qw.png') 16 16, auto;
}

body {
    font-family: 'Onest', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    user-select: none;
}

/* Background Media */
.bg-media {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Main Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}

/* Profile Card */
.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Profile Image */
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    /* Can add border if needed */
}

/* Username with Glow */
.username {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
    text-shadow: 0 0 15px var(--text-color);
    /* Initial white glow */
    display: flex;
    align-items: center;
    gap: 8px;
}

.username-tag {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 400;
    margin-left: 10px;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: none;
}

/* Badges */
.badges {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.badge {
    color: var(--text-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: help;
    /* Makes it clear it has a tooltip */
    position: relative;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Tooltip */
.badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.badge:hover::after {
    opacity: 1;
}

/* Typewriter Text */
.typewriter {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0;
    min-height: 24px;
    color: var(--text-color);
}

/* Stats */
.stats {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Domain Links */
.domain-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.domain-links a:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Social Links */
.socials {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 10;
    /* Ensure it stays on top */
}

.social-link {
    transition: transform 0.3s ease;
    display: inline-block;
    /* Ensure transform works */
    padding: 10px;
    /* Increase click area */
    margin: -10px;
    /* Offset padding so layout doesn't shift */
}

.social-link:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.social-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(1px 0 7px #1d1d1e);
    /* Matched from original */
}

/* Views Counter */
.views-counter {
    position: absolute;
    bottom: 12px;
    left: 15px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 8px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cursorBlink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: white;
    }
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: white;
    height: 1em;
    vertical-align: middle;
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .profile-card {
        padding: 20px;
    }

    .username {
        font-size: 28px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.pfp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.pfp-option {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
    border: 2px solid transparent;
}

.pfp-option:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Music Player */
.music-player {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.player-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-image-container {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.player-album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.player-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-container {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--text-color);
    width: 0%;
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar-container:hover .progress-bar::after {
    opacity: 1;
}

#current-time, #duration {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 30px;
    text-align: center;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 5px;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
}

.control-btn:hover {
    color: white;
    transform: scale(1.1);
}

.play-btn {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    color: black;
}

.play-btn:hover {
    background: #f0f0f0;
    color: black;
    transform: scale(1.05);
}