/* ============================================================
   MU ANARQUÍA - MODERN DESIGN SYSTEM (2026)
   ============================================================ */

:root {
    --primary: #d4af37;
    --primary-bright: #f1c40f;
    --bg-dark: #050506;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(15, 15, 18, 0.75);
    --glass-border: rgba(212, 175, 55, 0.15);
    --accent-red: #ff3e3e;
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark) center top no-repeat;
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, .panel-title {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

a, a:link, a:visited, a:active {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-bright);
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

/* Layout de 3 Columnas Prolijo */
#main { width: 1000px; margin: 0 auto 50px; position: relative; z-index: 1; }
.columnsContainer { display: flex; gap: 20px; align-items: flex-start; }

/* ORDEN DE COLUMNAS: Izquierda, Centro, Derecha */
.column.left { order: 1; width: 240px; flex-shrink: 0; }
.column-center { order: 2; flex: 1; min-width: 460px; padding: 0; overflow: hidden; }
.column.right { order: 3; width: 240px; flex-shrink: 0; }

/* Contenedor Principal - Arreglo del "Bloque Negro" */
#main-container {
    margin-top: -120px; /* Sube los paneles sobre el header */
    position: relative;
    z-index: 10;
}

#main-sub-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Paneles */
.panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    margin-bottom: 25px;
    overflow: hidden;
}

.panel-content { padding: 20px; }

.panel-header-text {
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid var(--glass-border);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.panel-header-text::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 12px;
    background: var(--primary);
    margin-right: 10px;
    border-radius: 2px;
}

/* Formularios y Botón Login */
input:not([type="submit"]), textarea, select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: var(--text-main);
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px; /* Aumentado considerablemente */
}

.btn_login, .btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%) !important;
    color: #000 !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    border: none !important;
    cursor: pointer;
    padding: 14px;
    border-radius: 6px;
    width: 100%;
    margin-top: 25px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.btn_login:hover, .btn-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Alertas de Validación (jQuery Validate) */
label.error {
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    animation: fadeInError 0.3s ease;
}

label.error:not(:empty) {
    padding: 8px;
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
}

input.error {
    border-color: rgba(255, 77, 77, 0.5) !important;
    background: rgba(255, 77, 77, 0.05) !important;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Menú Principal */
.main-menu { list-style: none; padding: 0; margin: 0; }
.main-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}
.main-menu li a:hover {
    background: rgba(212, 175, 55, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 25px;
}

/* Estado del Servidor */
.server-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.server-status:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.server-status span:first-child {
    color: var(--text-main);
    font-weight: 600;
}

.status-online {
    color: #00ff88 !important; /* Verde Neón */
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.status-offline {
    color: #ff3e3e !important;
    font-weight: 900;
}

/* Tablas y Rankings Grandes (Páginas) */
.ranking-page {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.ranking-page th {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px 10px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 12px;
}

.ranking-page td {
    padding: 15px 10px !important;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

/* Rankings Laterales (Sidebar) */
.ranking {
    width: 100%;
    border-collapse: collapse;
}

.ranking th {
    padding: 10px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.ranking td {
    padding: 12px 10px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

.ranking tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.ranking .alignCenter {
    text-align: center;
}

.ranking img.icon-char {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    vertical-align: middle;
}

/* Header y Visual */
@media (min-width: 1024px) { body { background-image: url(../images/main_bg_body.jpg); } }

#header {
    height: 383px;
    background-image: url(../images/main_bg_visual.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    margin-bottom: 40px;
}

#download {
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
}

#download a {
    display: flex;
    width: 250px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
}

img.icon-char, .ranking img, .ranking-page img { max-width: 32px !important; }
.optional { display: table-cell !important; }
.panel-top, .panel-bottom { display: none; }

/* ============================================================
   DISEÑO PREMIUM - USUARIO Y PERSONAJES
   ============================================================ */

.user-profile-card {
    padding: 10px 5px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    padding: 2px;
    background: rgba(0,0,0,0.5);
}

.user-name {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
}

.user-rank {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.stat-label { color: var(--text-muted); }
.stat-value { color: var(--text-main); font-weight: 600; }

.status-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
}

.status-tag.online { background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.2); }
.status-tag.offline { background: rgba(255, 255, 255, 0.05); color: #888; }

.btn-logout-premium {
    display: block;
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 61, 61, 0.05);
    color: #ff3d3d;
    border: 1px solid rgba(255, 61, 61, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-logout-premium:hover {
    background: #ff3d3d;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 61, 61, 0.3);
}

/* Character Cards Layout */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

.character-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.character-card-premium:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.char-class-banner {
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.char-class-banner img {
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.char-details {
    padding: 15px;
}

.char-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--primary);
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.char-main-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 12px;
}

.char-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.char-stats-grid div {
    background: rgba(255,255,255,0.02);
    padding: 4px 8px;
    border-radius: 4px;
}