/*
 Theme Name:   Mu Online Meets Wordpress
 Theme URI:    https://momw.arcoding.dev/momw-theme
 Description:  Tema personalizado para Mu Online integrado con WordPress y Elementor. Replicando el estilo de fantasía oscura de WEOS.
 Author:       Exhurtum
 Author URI:   https://arcoding.dev
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  momw-theme
*/

/* ==========================================================================
   Base Styles & Overrides for MOMW Plugin
   ========================================================================== */

body.momw-dark-fantasy {
    background-color: #0a0a0a;
    background-image: url('assets/img/background.jpg'); /* El usuario debe subir esta imagen */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor principal de Elementor */
.elementor-section {
    position: relative;
    z-index: 1;
}

/* Estilos para los rankings de MOMW */
.momw-ranking-container {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #c5a059 !important; /* Dorado */
    border-radius: 4px !important;
    color: #eee !important;
    padding: 20px !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.momw-ranking-container h3 {
    color: #c5a059 !important;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid #c5a059;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.momw-ranking-table {
    border: none !important;
}

.momw-ranking-table th {
    background: rgba(197, 160, 89, 0.1) !important;
    color: #c5a059 !important;
    text-transform: uppercase;
    font-size: 0.9em;
    border-bottom: 1px solid #444 !important;
}

.momw-ranking-table td {
    border-bottom: 1px solid #222 !important;
    color: #ccc !important;
}

.momw-ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Estilos para el Server Info */
body.momw-dark-fantasy .momw-server-info {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #c5a059 !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

body.momw-dark-fantasy .momw-server-title {
    color: #c5a059 !important;
    text-align: center !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3) !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
    font-size: 1.1em !important;
    letter-spacing: 1px !important;
    display: block !important;
}

body.momw-dark-fantasy .momw-server-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.momw-dark-fantasy .momw-server-list li {
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #aaa !important;
    list-style-type: none !important;
}

body.momw-dark-fantasy .momw-server-list li:last-child {
    border-bottom: none !important;
}

body.momw-dark-fantasy .momw-server-list strong {
    color: #888 !important;
    font-weight: normal !important;
    font-size: 0.95em !important;
}

body.momw-dark-fantasy .momw-server-list span {
    font-size: 0.95em !important;
}

body.momw-dark-fantasy .momw-stat-value {
    font-weight: bold !important;
    color: #eee !important;
}

/* Forzar color verde para usuarios online */
#momw-server-info-container .momw-stat-online-val {
    font-weight: bold !important;
    color: #00ff00 !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3) !important;
}

/* Formularios de Login/Registro */
.momw-form input {
    background: #1a1a1a !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
}

.momw-form button {
    background: linear-gradient(to bottom, #c5a059, #8a6d3b) !important;
    border: 1px solid #5e4a28 !important;
    color: #000 !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    width: 100% !important;
}

.momw-form button:hover {
    filter: brightness(1.2);
}

/* User Control Panel */
.momw-user-cp {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #444;
}

.momw-user-cp h2 {
    color: #c5a059;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.char-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
}

.char-card {
    background: rgba(30, 30, 30, 0.9) !important;
    border: 1px solid #c5a059 !important;
    border-radius: 5px !important;
    padding: 20px !important;
    transition: transform 0.3s ease;
}

.char-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.char-card h4 {
    color: #c5a059 !important;
    margin-top: 0 !important;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    text-align: center;
}

.char-card p {
    font-size: 0.9em;
    color: #aaa;
    margin: 5px 0;
}

.char-card input[type="number"] {
    background: #000 !important;
    border: 1px solid #555 !important;
    color: #fff !important;
    padding: 5px !important;
    margin: 2px !important;
    border-radius: 3px;
}

.char-card button {
    background: #c5a059 !important;
    color: #000 !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
    width: 100% !important;
    margin-top: 10px !important;
    cursor: pointer;
}

.char-card button:hover {
    background: #e0b86d !important;
}

.error { color: #ff4d4d !important; font-weight: bold; }
.success { color: #4dff4d !important; font-weight: bold; }

/* Elementor News Widget Styles */
.mu-news-header {
    background: rgba(197, 160, 89, 0.1) !important;
    border-top: 1px solid #c5a059 !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3) !important;
    position: relative;
}

.mu-news-header::before {
    content: '▶';
    color: #c5a059;
    font-size: 0.7em;
    margin-right: 10px;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.mu-news-title {
    padding-left: 15px;
}

.mu-news-item {
    border: 1px solid #333;
    background: rgba(10, 10, 10, 0.5);
    margin-bottom: 15px !important;
    border-radius: 3px;
    overflow: hidden;
}

.mu-news-content {
    padding: 15px;
}

/* Estilos para el Widget de Modal */
.momw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

.momw-modal-content {
    background: #111;
    border: 1px solid #c5a059;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,1);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.momw-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #c5a059;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.momw-modal-close:hover {
    color: #fff;
}

.momw-modal-body {
    color: #ccc;
}

/* Estilo de botón genérico MOMW */
.momw-btn {
    background: linear-gradient(to bottom, #c5a059, #8a6d3b) !important;
    border: 1px solid #5e4a28 !important;
    color: #000 !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
}

.momw-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}
