/* 
   AbaGames - Shared Cosmos Theme Stylesheet
   Centralizes styles for glassmorphism, animations, and custom elements.
*/

body {
    font-family: 'Inter', sans-serif;
    background-color: #090622; /* Fondo cósmico oficial de la paleta */
    color: #f3f4f6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(18, 13, 46, 0.7); /* Basado en el tono 090622 / 4A148C */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(213, 0, 249, 0.1);
}

.glass-premium {
    background: radial-gradient(circle at top left, rgba(213, 0, 249, 0.15), rgba(9, 6, 34, 0.9));
    border: 1px solid rgba(213, 0, 249, 0.2);
}

/* Legal Tabs styling */
.legal-tab.active {
    color: #d500f9;
    border-bottom: 2px solid #d500f9;
    background-color: rgba(213, 0, 249, 0.05);
}

/* Twinkle Stars background animation */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

/* Webkit Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d500f9;
}

/* Shared UI Components */
.neon-glow-purple {
    box-shadow: 0 0 15px rgba(213, 0, 249, 0.2);
}

.neon-glow-accent {
    box-shadow: 0 0 15px rgba(245, 106, 0, 0.2);
}

/* Utility Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animación de giro lento para iconos estelares */
.animate-spin-slow {
    animation: spin 15s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
