/* Custom Metin2 Theme Styles */
:root {
    --metin-red: #dc2626;
    --metin-gold: #f59e0b;
    --metin-amber: #d97706;
    --metin-dark: #030712;
}

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

::-webkit-scrollbar-track {
    background: #030712;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #dc2626);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fbbf24, #b91c1c);
}

/* Animated Background */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Text Glow Effects */
.text-glow {
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

/* Metin Stone Pulse Animation */
@keyframes metinPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(220, 38, 38, 0.8);
        transform: scale(1.05);
    }
}

.metin-stone {
    animation: metinPulse 3s ease-in-out infinite;
}

/* Custom Selection Color */
::selection {
    background: rgba(220, 38, 38, 0.3);
    color: #fff;
}

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

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(to right, #f59e0b, #dc2626);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Glassmorphism Enhancement */
.glass {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Empire Colors */
.empire-shinsoo { color: #ef4444; }
.empire-chunjo { color: #3b82f6; }
.empire-jinno { color: #eab308; }

/* Table Row Hover */
.ranking-row:hover {
    background: rgba(220, 38, 38, 0.05);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Button Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

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

.btn-shine:hover::before {
    left: 100%;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-cinzel {
        font-size: 0.8rem;
    }
}

/* Loading Animation for Images */
img {
    opacity: 1;
    transition: opacity 0.3s;
}

img[loading] {
    opacity: 0;
}

/* Modal Animation */
.modal-enter {
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}