/* ============================================
   guns.lol Clone — mivoo Profile
   Monochrome / Dark Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(0, 0, 0, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --accent-green: #4ade80;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ── Custom Cursor ────────────────────────── */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), inset 0 0 0 0 rgba(255, 255, 255, 0);
}

@media (max-width: 768px) {
    .cursor-dot { display: none; }
    html, body, a, button, input, [role="button"] { cursor: auto !important; }
}

/* ── Video Background ─────────────────────── */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-bg video,
.video-bg .fallback-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.video-overlay {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 32px;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* ── Enter Screen ─────────────────────────── */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    cursor: none;
}

.enter-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ── Audio Control ────────────────────────── */
.audio-control {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text-primary);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
    outline: none;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.audio-toggle:active {
    transform: scale(0.95);
}

.audio-icon {
    width: 22px;
    height: 22px;
}

.audio-toggle.playing {
    animation: audioPulse 2s ease-in-out infinite;
}

@keyframes audioPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

/* Volume Slider */
.volume-slider-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0 14px;
    height: 36px;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-15px);
    transition: all var(--transition-smooth);
}

.audio-control:hover .volume-slider-wrapper,
.volume-slider-wrapper:focus-within,
.volume-slider:active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
    cursor: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: none;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.4);
}

/* ── Profile Container ────────────────────── */
.profile {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    gap: 5px;
}

/* Page load animation */
.profile.loaded {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile:not(.loaded) {
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Avatar ───────────────────────────────── */
.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: inline-block;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: pulseGlow 3.5s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1) translate(-50%, -50%); }
    50% { opacity: 0.9; transform: scale(1.06) translate(-50%, -50%); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: border-color var(--transition-fast);
}

.avatar:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* ── Username ─────────────────────────────── */
.username {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ── Bio ──────────────────────────────────── */
.bio {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 350px;
    line-height: 1.5;
}

/* ── Location ─────────────────────────────── */
.location {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.location-pin {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 6px #4ade80);
    animation: pinGlow 2s ease-in-out infinite alternate;
}

@keyframes pinGlow {
    from { filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.5)); }
    to { filter: drop-shadow(0 0 10px rgba(74, 222, 128, 1)); }
}

/* ── Discord Status Card ──────────────────── */
.discord-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 330px;
}

.discord-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.discord-card-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.discord-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.status-indicator {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 4px solid #151515;
    background: #747f8d;
    transition: background var(--transition-fast);
}

.status-indicator.online { background: #3ba55d; }
.status-indicator.idle { background: #faa61a; }
.status-indicator.dnd { background: #ed4245; }
.status-indicator.offline { background: #747f8d; }

.discord-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.discord-card-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Verstecke den Standard-Mauszeiger (Hand) auf allen klickbaren Elementen */
a, button, input, [role="button"] {
    cursor: none !important;
}

.discord-badges {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.discord-badge {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.discord-card-name span:first-child {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-card-status {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Social Icons ─────────────────────────── */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    margin-top: 16px;
}

.social-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    z-index: 1;
    transition: all 0.25s ease;
}

.social-icon:hover {
    color: #fff;
    transform: scale(1.2) translateY(-3px);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.01em;
    z-index: 100;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── View Counter ─────────────────────────── */
.view-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 0.02em;
}

.view-icon {
    width: 15px;
    height: 15px;
    opacity: 0.65;
}

/* ── Loading State ────────────────────────── */
.loading-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 480px) {
    .avatar {
        width: 78px;
        height: 78px;
    }

    .username {
        font-size: 1.18rem;
    }

    .bio {
        font-size: 0.76rem;
        max-width: 280px;
    }

    .social-icons {
        gap: 14px;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    .discord-card {
        padding: 8px 12px;
    }

    .discord-card-avatar img {
        width: 32px;
        height: 32px;
    }

    .audio-control {
        top: 14px;
        left: 14px;
    }

    .audio-toggle {
        width: 38px;
        height: 38px;
    }
}

@media (max-height: 600px) {
    .profile {
        gap: 3px;
        padding: 20px;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    .avatar-container {
        margin-bottom: 6px;
    }
}
