/* 커스텀 CSS 스타일 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9f7aea;
}

/* Loading animation */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(45deg, #ff69b4, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button styles */
.btn-primary {
    background: #ff69b4;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #9f7aea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ff69b4;
    border: 2px solid #ff69b4;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #ff69b4;
    color: #fff;
    transform: translateY(-2px);
}

/* Rank badges */
.rank-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff69b4;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

.rank-badge.top1 {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #000;
}

.rank-badge.top2 {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #000;
}

.rank-badge.top3 {
    background: linear-gradient(45deg, #cd7f32, #d4af37);
    color: #fff;
}

/* YouTube embed responsive */
.youtube-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #9f7aea);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.close {
    color: #ff69b4;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #9f7aea;
}

/* Comment section */
.comment-item {
    background: #2a2a2a;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #ff69b4;
}

.comment-form {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #ff69b4;
}

/* Vote section */
.vote-item {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.vote-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff69b4;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.vote-info {
    margin-left: 60px;
}

.vote-name {
    font-size: 18px;
    font-weight: bold;
    color: #ff69b4;
}

.vote-count {
    font-size: 14px;
    color: #ccc;
}

.vote-bar {
    width: 100%;
    height: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #9f7aea);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: #1a1a1a;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 80px 20px 20px;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-in-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-in-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(45deg, #ff69b4, #9f7aea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-pink {
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.border-pink {
    border-color: #ff69b4;
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-title {
    height: 24px;
    border-radius: 4px;
    margin: 12px 0;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin: 12px 0;
}

/* Search results highlight */
.search-highlight {
    background: linear-gradient(45deg, #ff69b4, #9f7aea);
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
    font-weight: bold;
}

/* Success/Error messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    border-left: 4px solid;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
    color: #22c55e;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #ef4444;
}

.message.info {
    background: rgba(255, 105, 180, 0.1);
    border-left-color: #ff69b4;
    color: #ff69b4;
}

/* Print styles */
@media print {
    nav, footer, .btn-primary, .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-miss-dark, .bg-miss-gray, .bg-miss-light {
        background: white !important;
    }
} 