/* styles.css - Ultimate Edition + RPG Update */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Roboto:wght@400;700&display=swap');

/* Base */
body {
    background-color: #020408;
    background-image:
        radial-gradient(circle at 50% 0%, #1e293b 0%, transparent 60%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(0,0,0,0), #020408);
    color: #e2e8f0;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { 
    background: #334155; 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: #3b82f6; box-shadow: 0 0 10px #3b82f6; }

/* Efecto Glassmorphism (Vidrio) */
.glass-panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Inputs Interactivos */
input, select, textarea {
    background-color: #0f172a !important; 
    border: 1px solid #334155 !important;
    color: white !important;
    transition: all 0.2s ease;
    pointer-events: auto !important;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 0 15px rgba(59, 130, 246, 0.1);
}

/* --- MEJORA 1: ANIMACIÓN TICKER (HYPE BAR) --- */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: rgba(2, 6, 23, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 35;
    height: 32px;
    display: flex;
    align-items: center;
}
.marquee-content {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
    padding-left: 100%;
}
.marquee-content:hover { 
    animation-play-state: paused; 
    cursor: default;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- MEJORA 2: COLORES DE RANGOS RPG --- */
.rank-novato { 
    color: #94a3b8; 
    border-color: #475569; 
    background: rgba(148, 163, 184, 0.1);
} 
.rank-mercader { 
    color: #60a5fa; 
    border-color: #2563eb; 
    background: rgba(37, 99, 235, 0.1);
    text-shadow: 0 0 10px rgba(59,130,246,0.4); 
} 
.rank-veterano { 
    color: #fbbf24; 
    border-color: #d97706; 
    background: rgba(217, 119, 6, 0.1);
    text-shadow: 0 0 10px rgba(251,191,36,0.4); 
} 
.rank-lord { 
    color: #f87171; 
    border-color: #dc2626; 
    background: rgba(220, 38, 38, 0.1);
    text-shadow: 0 0 15px rgba(239,68,68,0.6); 
    animation: pulse-red 2s infinite; 
} 

/* --- MEJORA 3: INSIGNIAS DE CONFIANZA --- */
.badge-admin { color: #ef4444; filter: drop-shadow(0 0 3px rgba(239,68,68,0.6)); }
.badge-staff { color: #10b981; filter: drop-shadow(0 0 3px rgba(16,185,129,0.6)); }
.badge-verified { color: #3b82f6; filter: drop-shadow(0 0 3px rgba(59,130,246,0.6)); }

/* Tarjetas de Items */
.item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.item-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}
.item-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}
.item-card:hover::after { left: 150%; }

/* Tablas Admin */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.admin-table th {
    color: #94a3b8;
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.admin-table td { background: rgba(15, 23, 42, 0.5); padding: 12px 16px; border: 1px solid rgba(255,255,255,0.02); }
.admin-table tr:hover td { background: rgba(30, 41, 59, 0.8); border-color: rgba(59, 130, 246, 0.3); }

/* Animaciones */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-slide-up { animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); border-color: rgba(59, 130, 246, 0.6); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8); border-color: #3b82f6; }
}
.animate-pulse-glow { animation: pulse-glow 2s infinite; }

@keyframes pulse-red { 
    0%, 100% { box-shadow: 0 0 0 rgba(239,68,68,0); } 
    50% { text-shadow: 0 0 15px red; } 
}

/* Scrollbar para contenedores internos */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }

/* Clases Utilitarias */
.font-gaming { font-family: 'Rajdhani', sans-serif; }
.text-shadow { text-shadow: 0 2px 4px rgba(0,0,0,0.5); }