/* 2025 Modern Fun Design System */

/* 애니메이션 정의 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.5); }
    50% { box-shadow: 0 0 40px rgba(147, 51, 234, 0.8); }
}

@keyframes slide-up {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 네온 글로우 효과 */
.neon-glow {
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #ff00ff,
        0 0 40px #ff00ff;
}

.neon-border {
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        inset 0 0 10px #00ffff;
}

/* 3D 카드 효과 */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
}

/* 글래스모피즘 강화 */
.glass-extreme {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.18);
}

/* 그라디언트 애니메이션 */
.gradient-animated {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: rainbow 15s ease infinite;
}

/* 이모지 애니메이션 */
.emoji-bounce {
    display: inline-block;
    animation: bounce-in 0.6s ease-out;
}

.emoji-wave {
    display: inline-block;
    animation: wave 1s ease-in-out;
}

.emoji-float {
    animation: float 3s ease-in-out infinite;
}

/* 버튼 스타일 */
.btn-fun {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-fun::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-fun:hover::before {
    width: 300px;
    height: 300px;
}

/* 코믹 스타일 말풍선 */
.speech-bubble {
    position: relative;
    background: #ffffff;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 20px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #000;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 32px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid #ffffff;
}

/* 픽셀 아트 스타일 */
.pixel-art {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* 레트로 게임 텍스트 */
.retro-text {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 0px #ff00ff, 4px 4px 0px #00ffff;
}

/* 스티커 효과 */
.sticker {
    position: relative;
    display: inline-block;
    transform: rotate(-5deg);
    transition: transform 0.3s;
}

.sticker:hover {
    transform: rotate(5deg) scale(1.1);
}

.sticker::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: white;
    border: 2px dashed #333;
    border-radius: 10px;
    z-index: -1;
}

/* 캔디 버튼 */
.candy-button {
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 300% 300%;
    animation: rainbow 3s ease-in-out infinite;
    border: none;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.candy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 메모지 스타일 아바타 */
.memoji-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.memoji-avatar:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 리액션 애니메이션 */
.reaction-pop {
    animation: bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 타이핑 애니메이션 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid;
    white-space: nowrap;
    animation: typing 3s steps(30, end), blink 1s step-end infinite;
}

/* 코믹 효과음 텍스트 */
.comic-text {
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    color: #ff1744;
    text-transform: uppercase;
    transform: rotate(-15deg);
    text-shadow: 3px 3px 0 #ffeb3b, 6px 6px 0 #000;
}

/* 노티피케이션 팝업 */
.notification-fun {
    animation: slide-up 0.5s ease-out, bounce-in 0.5s ease-out 0.3s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #ff6b6b, #feca57);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

/* 인터랙티브 호버 카드 */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* 재미있는 로딩 애니메이션 */
@keyframes loading-dance {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-5deg); }
    75% { transform: translateY(-20px) rotate(5deg); }
}

.loading-fun {
    display: inline-block;
    animation: loading-dance 1s ease-in-out infinite;
}

/* 소셜 미디어 스타일 리액션 */
.reaction-bar {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.reaction-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0f0f0;
}

.reaction-item:hover {
    transform: scale(1.3) translateY(-5px);
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}

/* 플로팅 액션 버튼 */
.fab-fun {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.fab-fun:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

/* 다크모드 네온 효과 */
.dark .neon-text {
    color: #fff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        0 0 40px #00ffff,
        0 0 50px #00ffff;
}

/* 인스타그램 스타일 그라디언트 */
.instagram-gradient {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 25%, #f5576c 50%, #fda085 75%, #ffd89b 100%);
}

/* 틱톡 스타일 글리치 효과 */
@keyframes glitch {
    0% { text-shadow: 2px 2px 0 #ff00ff, -2px -2px 0 #00ffff; }
    25% { text-shadow: -2px 2px 0 #ff00ff, 2px -2px 0 #00ffff; }
    50% { text-shadow: 2px -2px 0 #ff00ff, -2px 2px 0 #00ffff; }
    75% { text-shadow: -2px -2px 0 #ff00ff, 2px 2px 0 #00ffff; }
    100% { text-shadow: 2px 2px 0 #ff00ff, -2px -2px 0 #00ffff; }
}

.glitch-text {
    animation: glitch 0.5s infinite;
}