/* Customization Variables */
:root {
    /* GUI Colors */
    --bg-base: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    
    /* Accent & Hover Colors */
    --accent-color: #ffffff;
    --hover-bg: rgba(255, 255, 255, 0.1);
    
    /* Avatar Customization */
    --avatar-size: 120px;
    --avatar-border-color: transparent;
    
    /* Background Pattern/Gradient */
    --bg-gradient: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') center/cover no-repeat;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background video wrapper */
.background-video-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.background-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(0.65) saturate(1.1);
}

/* Customizable Background */
.background-container {
    display: none;
}

.bio-container {
    width: 100%;
    max-width: 480px;
    padding: 40px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
    filter: blur(15px);
    transition: filter 1s ease;
    perspective: 1100px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header & Avatar */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-card {
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 130px 30px 40px 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform: translateZ(0);
    will-change: transform;
    transform-style: preserve-3d;
}

.profile-card:hover {
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.55);
}

/* Top Badges - inside card, top right */
.top-badges {
    position: absolute;
    top: 130px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.profile-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* Gradient blur transition from banner to card content */
.banner-blur-overlay {
    display: none;
}

.avatar-container {
    position: relative;
    width: var(--avatar-size);
    height: var(--avatar-size);
    margin: -70px auto 20px;
    z-index: 3;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.avatar-container:hover .avatar {
    transform: scale(1.05);
}

.status-indicator {
    display: none;
}

/* Glowing text */
.glowing-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Joined date */
.joined-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #777777;
    font-size: 13px;
    margin-top: 20px;
    font-family: monospace;
}

/* Discord Button */
.discord-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    margin-top: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.discord-card:hover {
    background: rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
}

/* Links Container */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: all 0.5s ease;
}

.link-item:hover {
    background: var(--hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-item:hover::before {
    left: 100%;
}

.link-icon {
    font-size: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
}

.link-text {
    flex-grow: 1;
    text-align: center;
    margin-right: 45px; /* Kompensuje ikonę po lewej stronie, aby tekst był na środku */
}

/* Footer */
.profile-footer {
    position: fixed;
    left: 0;
    bottom: 16px;
    width: 100%;
    text-align: center;
    z-index: 5;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
    pointer-events: none;
}

.profile-footer p {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(10, 10, 10, 0.55);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}



.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #d0d0d0;
    font-weight: 600;
}

/* Custom Music Player */
.music-player {
    width: 100%;
    max-width: 380px;
    margin-top: 16px;
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 40px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Vinyl disc wrapper */
.player-art-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Spinning vinyl disc */
.player-art {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #1a1a1a;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.06),
        inset 0 0 0 6px rgba(0,0,0,0.55);
    animation: spin-disc 4s linear infinite;
    animation-play-state: paused;
}

.player-art.playing {
    animation-play-state: running;
}

@keyframes spin-disc {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Center hole on the vinyl disc */
.vinyl-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #0a0a0a;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    pointer-events: none;
    z-index: 2;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-title {
    font-size: 11px;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.player-times {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #888;
    font-family: monospace;
}

.player-bar-wrap {
    flex: 1;
    position: relative;
    height: 12px;
    display: flex;
    align-items: center;
}

.player-bar-bg {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.player-bar-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s linear;
}

.player-seek {
    position: absolute;
    width: 100%;
    height: 12px;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    top: 0;
    left: 0;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.player-btn:hover { opacity: 1; }

.player-vol-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-vol {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.player-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* Click to Enter Overlay */
.enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.enter-overlay h1 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(0.95); }
}
