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

:root {
    --primary: #7f00ff;
    --secondary: #00d1ff;
    --accent: #ff00aa;
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

/* 3D Card Styles */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-preserve-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Holographic Display */
.holographic-display {
    position: relative;
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.1) 0%, rgba(0, 209, 255, 0.1) 100%);
    box-shadow: 0 0 30px rgba(127, 0, 255, 0.3), 
                inset 0 0 20px rgba(0, 209, 255, 0.2);
}

.grid-display {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 30, 0.8) 100%);
}

/* Floating 3D Elements */
.floating-cube, .floating-sphere, .floating-pyramid {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(127, 0, 255, 0.6));
}

.floating-cube {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.8) 0%, rgba(0, 209, 255, 0.8) 100%);
    top: 30%;
    left: 20%;
    animation-delay: 0s;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: rotate(45deg);
}

.floating-sphere {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(255, 0, 170, 0.8) 0%, rgba(127, 0, 255, 0.8) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation-delay: 1s;
}

.floating-pyramid {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(0, 209, 255, 0.8);
    top: 20%;
    left: 70%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Glow Effects */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(127, 0, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 1;
}
/* Enhanced Solo Leveling System Styles */
#system-bg {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

/* Table styling for ranking system */
table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
}

table th, table td {
    padding: 12px 15px;
}

table tbody tr {
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Progress bar animations */
@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.w-full.bg-gray-700 > div {
    animation: pulse 2s infinite ease-in-out;
}

/* Rank indicator glow effects */
.text-red-400 { text-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.text-yellow-400 { text-shadow: 0 0 8px rgba(234, 179, 8, 0.5); }
.text-purple-400 { text-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }
.text-blue-400 { text-shadow: 0 0 8px rgba(59, 130, 246, 0.5); }
.text-green-400 { text-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }

/* Responsive adjustments for ranking table */
@media (max-width: 768px) {
    .overflow-x-auto {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    table th, table td {
        padding: 8px 10px;
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .holographic-display {
        margin-bottom: 2rem;
    }
    
    #player-stats, #ranking-system {
        width: 100% !important;
    }
}
