@font-face {
     font-family: 'Cafe24SsurroundAir';
     src: url('./font/Cafe24SsurroundAir-v1.1.ttf') format('truetype');
     font-weight: normal;
     font-style: normal;
}

#music-unmute-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(30,34,54,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

#music-unmute-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

#music-unmute-btn {
    font-size: 1.3rem;
    padding: 1em 2em;
    border-radius: 2em;
    background: linear-gradient(135deg, #7e22ce 0%, #667eea 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 16px #7e22ce80;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-weight: 600;
    letter-spacing: 0.05em;
}

#music-unmute-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    transform: scale(1.08);
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 텍스트 선택 방지 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* 드래그 방지 */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --github-color: #333;
    --discord-color: #5865F2;
    --spotify-color: #1DB954;
    --steam-color: #171a21;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Cafe24SsurroundAir', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    perspective: 1000px;
}

/* 이미지 드래그 방지 */
img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* 배경 오버레이 */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 0;
    pointer-events: none;
}

/* 제어 버튼들 */
.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 1003;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.control-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(102, 126, 234, 0.6);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

/* 메뉴 패널 */
.menu-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 280px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.4),
        0 0 60px rgba(118, 75, 162, 0.3);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.menu-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.menu-items {
    padding: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: white;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item i {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.menu-item span {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
}

/* 토글 스위치 */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    border-radius: 34px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                background-color 0.4s ease,
                box-shadow 0.4s ease;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + label {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.8), rgba(30, 215, 96, 0.8));
    border-color: rgba(29, 185, 84, 0.5);
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}

.toggle-switch input:checked + label:before {
    transform: translateX(24px);
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 토글 스위치 호버 효과 */
.toggle-switch label:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.toggle-switch input:checked + label:hover {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.9), rgba(30, 215, 96, 0.9));
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.6);
}

/* BGM 플레이어 하단 */
.bgm-player-display {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(20px);
    padding: 15px 30px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.4),
        0 0 60px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: playerGlow 3s ease-in-out infinite alternate;
    user-select: none;
    cursor: grab;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* 초기 너비 설정으로 레이아웃 시프트 방지 */
    min-width: fit-content;
    width: auto;
}

.bgm-player-display.collapsed {
    width: auto;
    min-width: 80px;
    padding: 15px 18px;
    cursor: pointer;
    justify-content: center;
}

.bgm-player-display.collapsed .music-visualizer,
.bgm-player-display.collapsed .music-info,
.bgm-player-display.collapsed .bgm-controls {
    display: none;
}

@keyframes playerGlow {
    0% {
        box-shadow: 
            0 10px 40px rgba(102, 126, 234, 0.4),
            0 0 60px rgba(118, 75, 162, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 15px 50px rgba(102, 126, 234, 0.6),
            0 0 80px rgba(118, 75, 162, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.bgm-player-display.active {
    display: flex;
    animation: slideUpSmooth 0.4s cubic-bezier(0.16, 1, 0.3, 1), playerGlow 3s ease-in-out infinite alternate 0.4s;
}

@keyframes slideUpSmooth {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
    100% {
        bottom: 30px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* 음악 비주얼라이저 */
.music-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
}

.music-visualizer .bar {
    width: 3px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.9));
    border-radius: 3px;
    animation: musicBounce 0.8s ease-in-out infinite;
}

.music-visualizer .bar:nth-child(1) {
    animation-delay: 0s;
    height: 60%;
}

.music-visualizer .bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 90%;
}

.music-visualizer .bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 70%;
}

.music-visualizer .bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 85%;
}

.music-visualizer .bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 75%;
}

@keyframes musicBounce {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.music-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: musicIconFloat 2s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                margin 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bgm-player-display.collapsed .music-icon {
    margin: 0;
    transform: scale(0.9);
}

.bgm-player-display:not(.collapsed) .music-icon {
    margin: 0;
}

@keyframes musicIconFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    50% { 
        transform: translateY(-5px) rotate(5deg);
    }
}

.music-icon i {
    color: white;
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.music-info {
    color: white;
    flex: 1;
}

.music-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes titleShine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.music-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.music-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(29, 185, 84, 0.6),
        0 0 20px rgba(29, 185, 84, 0.3);
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.bgm-controls {
    display: flex;
    gap: 10px;
}

.bgm-control-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgm-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 빗방울 컨테이너 */
.rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none;
    overflow: hidden;
}

.rain.active {
    display: block;
}

/* 유리창 효과 */
.rain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(0.3px); /* 0.5px → 0.3px */
}

/* 리얼한 빗방울 (유리창에 맺힌 물방울) */
.raindrop {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.4) 40%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 -2px 4px rgba(255, 255, 255, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3);
    filter: blur(0.2px); /* 0.3px → 0.2px */
    will-change: transform, opacity;
    transform: translateZ(0); /* GPU 가속 */
}

/* 흘러내리는 빗방울 */
.raindrop-falling {
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    animation: dropFall linear forwards;
    will-change: transform;
    transform: translateZ(0); /* GPU 가속 */
}

@keyframes dropFall {
    to {
        transform: translateY(100vh) translateZ(0);
        opacity: 0;
    }
}

/* 빗방울 흔적 */
.raindrop-trail {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    0% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* 별 애니메이션 배경 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 
        100px 200px white, 200px 100px white, 300px 300px white,
        400px 150px white, 500px 250px white, 600px 100px white,
        700px 300px white, 150px 350px white, 250px 50px white,
        350px 200px white, 450px 300px white, 550px 150px white,
        50px 100px white, 650px 250px white, 750px 50px white,
        800px 200px white, 900px 300px white, 950px 150px white,
        1000px 250px white, 1100px 100px white, 1200px 300px white;
    animation: twinkle 3s infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    perspective: 1000px;
}

.profile-card {
    background: linear-gradient(135deg, 
        rgba(15, 12, 41, 0.95) 0%, 
        rgba(48, 43, 99, 0.92) 50%, 
        rgba(36, 36, 62, 0.95) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        0 30px 60px -12px rgba(102, 126, 234, 0.25),
        0 18px 36px -18px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s ease-out, cardFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    left: 0;
}

/* 스크롤바 스타일링 */
.profile-card::-webkit-scrollbar {
    width: 8px;
}

.profile-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

.profile-card::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.6), 
        rgba(118, 75, 162, 0.6));
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.8), 
        rgba(118, 75, 162, 0.8));
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 
            0 8px 32px 0 rgba(0, 0, 0, 0.37),
            0 30px 60px -12px rgba(102, 126, 234, 0.25),
            0 18px 36px -18px rgba(118, 75, 162, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 
            0 12px 40px 0 rgba(0, 0, 0, 0.4),
            0 40px 80px -12px rgba(102, 126, 234, 0.35),
            0 24px 48px -18px rgba(118, 75, 162, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    }
}

/* 3D 떠있는 효과 */
.profile-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: -20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    filter: blur(20px);
    z-index: -1;
    opacity: 0.5;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.3),
        0 0 0 6px rgba(118, 75, 162, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 16px 56px rgba(102, 126, 234, 0.3);
    animation: avatarFloat 3s ease-in-out infinite, avatarPulse 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.5),
        0 0 0 6px rgba(118, 75, 162, 0.4),
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 20px 64px rgba(102, 126, 234, 0.4);
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 3px rgba(102, 126, 234, 0.3),
            0 0 0 6px rgba(118, 75, 162, 0.2),
            0 8px 24px rgba(0, 0, 0, 0.4),
            0 16px 56px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 3px rgba(102, 126, 234, 0.5),
            0 0 0 6px rgba(118, 75, 162, 0.4),
            0 8px 24px rgba(0, 0, 0, 0.4),
            0 16px 56px rgba(102, 126, 234, 0.5);
    }
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    filter: blur(20px);
    opacity: 0.6;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.username {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 40%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3)) 
            drop-shadow(0 0 20px rgba(102, 126, 234, 0.4));
    letter-spacing: -0.02em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 101, 242, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.status-dot {
    width: 14px;
    height: 14px;
    background: #3ba55d;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: statusPulse 2s ease-in-out infinite;
}

/* Discord 상태 아이콘 */
.status-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
}

/* 자리 비움 - 달 모양 */
.status-dot.idle::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #23272a;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    z-index: 1;
}

/* 다른 용무 중 - 빼기 모양 */
.status-dot.dnd::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: #23272a;
    border-radius: 1px;
    z-index: 1;
}

/* 오프라인 - 테두리만 */
.status-dot.offline {
    background: transparent;
    border: 2px solid #747f8d;
}

.status-dot.offline::before {
    display: none;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(59, 165, 93, 0); }
}

.bio-section {
    margin: 30px 0;
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.interest-tag {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15), 
        rgba(118, 75, 162, 0.15));
    padding: 10px 20px;
    border-radius: 20px;
    color: #fff;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: default;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.interest-tag:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3), 
        rgba(118, 75, 162, 0.3));
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.interest-tag i {
    font-size: 1.1rem;
}

    /* 정신奔逸자~ 폰트 적용용 클래스 */
    .cafe24-font {
        font-family: 'Cafe24SsurroundAir', 'Jalnan2', 'Poppins', sans-serif !important;
        font-size: 1.15rem;
        color: #fff;
        letter-spacing: 0.02em;
    }
/* 활동 상태 섹션 */
.activity-section {
    font-family: 'TAEBAEK milkyway', 'Jalnan2', 'Poppins', sans-serif !important;
    margin: 20px 0;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    /* JavaScript에서 display 제어 */
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.activity-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-icon {
    color: #667eea;
    font-size: 1.5rem; /* 크기 증가 */
}

.activity-title {
    font-weight: 600;
    color: white;
    font-size: 1.18rem;
}

.activity-time {
    color: #4ade80; /* 연두색 계열 */
    font-size: 0.95rem;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(74, 222, 128, 0.15);
    border-radius: 8px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.activity-content {
    padding-left: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-name {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
}

.activity-details {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 4px;
    padding: 4px 0;
}

.activity-state {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin-bottom: 4px;
    padding: 2px 0;
}

/* Spotify 활동 섹션 */
.spotify-activity {
    font-family: 'TAEBAEK milkyway', 'Jalnan2', 'Poppins', sans-serif !important;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.15), rgba(30, 215, 96, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(29, 185, 84, 0.3);
    overflow: hidden; /* 넘치는 텍스트 숨김 */
}

.spotify-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.spotify-icon {
    color: #1DB954;
    font-size: 1.1rem;
}

.spotify-title {
    font-weight: 600;
    color: white;
    font-size: 1.12rem;
}

.spotify-content {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.spotify-album {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.spotify-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* 텍스트가 넘치지 않도록 */
    min-width: 0; /* flex 아이템이 줄어들 수 있도록 */
}

.spotify-song {
    font-weight: 600;
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.spotify-artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.spotify-album-name {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.spotify-progress {
    margin-top: 8px;
}

.spotify-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.spotify-progress-fill {
    height: 100%;
    background: #1DB954;
    border-radius: 2px;
    transition: width 1s linear;
}

.spotify-timestamps {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 30px 0;
}

.social-links {
    font-family: 'TAEBAEK milkyway', 'Jalnan2', 'Poppins', sans-serif !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.social-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-button:hover::before {
    opacity: 1;
}

.social-button i {
    font-size: 1.3rem;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-button:hover i {
    transform: scale(1.1) rotate(5deg);
}

.social-button span {
    z-index: 1;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0) 70%);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.social-button:hover .button-glow {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.social-button:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.github {
    background: linear-gradient(135deg, #24292e, #000);
}

.discord {
    background: linear-gradient(135deg, #5865F2, #4752c4);
}

.twitter {
    background: linear-gradient(135deg, #14171a, #000000);
}

.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.spotify {
    background: linear-gradient(135deg, #1ed760, #1db954);
}

.steam {
    background: linear-gradient(135deg, #1b2838, #171a21);
}

.orcid {
    background: linear-gradient(135deg, #a6ce39, #8bb92d);
}

.vrchat {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #000000;
}

.vrchat-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: invert(1);
}

.vrchat span {
    color: #000000;
}

.djmax {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.djmax-icon {
    height: 24px;
    width: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.projects-section {
    font-family: 'TAEBAEK milkyway', 'Jalnan2', 'Poppins', sans-serif !important;
    margin-top: 30px;
}

.section-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #a8b8ff;
}

.coming-soon {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.coming-soon i {
    font-size: 3rem;
    color: #a8b8ff;
    margin-bottom: 15px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(-10deg); }
}

.coming-soon p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer p {
    margin: 0;
}

/* 반응형 디자인 */
/* 태블릿 (가로) */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    
    .profile-card {
        max-width: 90%;
        padding: 35px 25px;
    }
}

/* 태블릿 (세로) */
@media (max-width: 768px) {
    .profile-card {
        padding: 30px 20px;
        max-width: 95%;
    }

    .username {
        font-size: 2rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .avatar-glow {
        width: 140px;
        height: 140px;
    }

    .social-links {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .social-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .activity-section,
    .spotify-activity {
        padding: 15px;
    }
    
    .bgm-player-display {
        padding: 12px 15px;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    .profile-card {
        padding: 25px 15px;
        max-width: 100%;
        margin: 10px;
    }
    
    .username {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-glow {
        width: 120px;
        height: 120px;
    }

    .social-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .interests {
        gap: 8px;
    }

    .interest-tag {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .controls {
        flex-direction: column;
        top: 5px;
        right: 5px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .menu-panel {
        width: 100%;
        max-width: 100%;
    }
    
    .bgm-player-display {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        gap: 8px;
    }
    
    .music-info {
        width: 100%;
    }
    
    .music-title {
        font-size: 0.85rem;
    }
    
    .music-status {
        font-size: 0.75rem;
    }
}

/* 작은 모바일 */
@media (max-width: 360px) {
    .profile-card {
        padding: 20px 10px;
    }
    
    .username {
        font-size: 1.3rem;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-glow {
        width: 100px;
        height: 100px;
    }
    
    .social-button {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}