/* ============================================================
   ESTILOS RETRO 0.97d / 0.97i PARA WEBENGINE 1.2.5
   ============================================================ */

/* Importación de fuentes medievales clásicas */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&display=swap');

/* Fix de Adaptabilidad y Contenedor Principal */
.wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 15px;
}

body {
    background-color: #050404 !important;
    font-family: 'Open Sans', 'Verdana', sans-serif !important;
    color: #c4b5a2 !important;
}

/* Tipografía de Títulos Estilo 0.97d (Dorado gótico) */
h1, h2, h3, 
.page-top, 
.block-widget-title, 
.news-top-title span, 
.modal-content h2 span {
    font-family: 'Cinzel', serif !important;
    color: #e3b054 !important;
    text-shadow: 1px 1px 2px #000, 0 0 8px rgba(227, 176, 84, 0.4) !important;
    letter-spacing: 1px;
}

/* Ajustes al Menú Navegación Superior */
.menu a {
    font-family: 'Cinzel', serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #d8be91 !important;
    text-shadow: 1px 1px 3px #000;
}

.menu a:hover, 
.menu .active a {
    color: #ffffff !important;
    text-shadow: 0 0 10px #ff9d00, 0 0 20px #ff6c00 !important;
}

.menu a:hover:after, 
.menu .active a:after {
    background: #e3b054 !important;
    box-shadow: 0 0 8px #ff9d00;
}

/* Rediseño de Botones Estilo Piedra / Gemas */
button, .button, .buttonDark {
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    color: #ffe6b3 !important;
    border: 1px solid #735322 !important;
    background: linear-gradient(180deg, #4a3417 0%, #1a1005 100%) !important;
    box-shadow: inset 0 0 5px rgba(227, 176, 84, 0.3), 0 4px 10px rgba(0,0,0,0.8) !important;
    border-radius: 2px;
}

button:hover, .button:hover, .buttonDark:hover {
    color: #fff !important;
    border-color: #e3b054 !important;
    background: linear-gradient(180deg, #6e4e23 0%, #2b1b09 100%) !important;
    box-shadow: inset 0 0 10px rgba(227, 176, 84, 0.6), 0 0 12px rgba(227, 176, 84, 0.5) !important;
}

/* Paneles de Contenido con Bordes Metálicos/Piedra */
.page-content, 
.modal_div, 
.widget-fon, 
.widget-fon-guilds, 
.widget-fon-discussions {
    border: 1px solid #4a381e !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.8) !important;
}

/* Modificación de Filas de Rankings */
.top-list:hover, 
.news:hover, 
.discussions-content-block:hover {
    background-color: rgba(61, 44, 28, 0.7) !important;
    border-bottom: 1px solid #8c6733 !important;
}

/* Adaptabilidad para Dispositivos Móviles (Responsive) */
@media (max-width: 991px) {
    .fast-button, 
    .top-content, 
    .block-widget {
        flex-direction: column !important;
        width: 100% !important;
    }

    .download-block, 
    .status-block, 
    .swiper-container, 
    .news-top, 
    .widget-fon, 
    .widget-fon-guilds, 
    .widget-fon-discussions {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 15px !important;
    }

    .header {
        min-height: auto !important;
        padding-top: 80px;
    }

    .logo {
        position: relative !important;
        top: 0 !important;
        margin-left: 0 !important;
        text-align: center;
    }

    .logo img {
        max-width: 80%;
        height: auto;
    }
}

/* ============================================================
   ESTILO DE TABLAS Y MODULES ESTILO INVENTARIO 0.97d
   ============================================================ */

/* Tablas generales de WebEngine (Rankings, UserCP, etc.) */
.table, .webengine-table {
    width: 100% !important;
    background: rgba(10, 8, 8, 0.85) !important;
    border: 1px solid #3d2c17 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px #000;
}

.table > thead > tr > th, 
.table > tbody > tr > th {
    background: linear-gradient(180deg, #2b1d0c 0%, #140d05 100%) !important;
    color: #e3b054 !important;
    font-family: 'Cinzel', serif !important;
    font-size: 13px !important;
    text-transform: uppercase;
    border-bottom: 2px solid #5a4120 !important;
    border-top: none !important;
    padding: 10px !important;
    text-shadow: 1px 1px 2px #000;
}

.table > tbody > tr > td {
    border-top: 1px solid #24190d !important;
    color: #d1c2a5 !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    vertical-align: middle !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(22, 16, 11, 0.5) !important;
}

.table-hover > tbody > tr:hover {
    background-color: rgba(58, 41, 23, 0.6) !important;
    color: #fff !important;
}

/* Insignias, Resets y Clases de Personajes */
.rank-position {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: #ffaa00;
}

.character-class {
    color: #a8a8a8;
    font-style: italic;
}

/* Ventana Modal de Login 0.97d */
.modal_div {
    border: 2px solid #5a4120 !important;
    background: #0d0a09 url('../img/fon-page-top.jpg') center top no-repeat !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.95), inset 0 0 15px rgba(227, 176, 84, 0.1) !important;
    border-radius: 4px;
}

.input-re {
    background-color: #120d0c !important;
    border: 1px solid #4a341a !important;
    color: #ffd899 !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.input-re:focus {
    border-color: #e3b054 !important;
    box-shadow: 0 0 8px rgba(227, 176, 84, 0.5) !important;
    background-color: #1a1210 !important;
}

.input-re::placeholder {
    color: #735a3a !important;
    font-family: 'Cinzel', serif !important;


/* ============================================================
   ESTILOS DE SIDEBAR, WIDGETS Y NEWS (0.97d RETRO)
   ============================================================ */

/* Paneles del Sidebar */
.panel-sidebar {
    background: rgba(14, 11, 10, 0.9) !important;
    border: 1px solid #4a381e !important;
    border-radius: 3px !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0,0,0,0.6) !important;
    margin-bottom: 20px;
}

.panel-sidebar .panel-heading {
    background: linear-gradient(180deg, #332414 0%, #170f07 100%) !important;
    border-bottom: 2px solid #6e4e23 !important;
    padding: 10px 15px;
}

.panel-sidebar .panel-title {
    font-family: 'Cinzel', serif !important;
    color: #e3b054 !important;
    font-size: 15px !important;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #000;
}

.panel-sidebar .panel-body {
    padding: 12px;
}

/* Colores de Texto y Estado */
.text-gold {
    color: #ffd481 !important;
    font-weight: bold;
}

.status-online-text {
    color: #00ff66 !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
}

/* Rediseño del Módulo de Noticias (Inicio) */
.news-top {
    background: rgba(16, 12, 10, 0.92) !important;
    border: 1px solid #4a381e !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.news-top-title span {
    font-family: 'Cinzel', serif !important;
    color: #e3b054 !important;
}

.news-1 {
    color: #ffaa00 !important;
    font-weight: bold;
    font-family: 'Cinzel', serif;
}

.news a {
    color: #d1c2a5 !important;
    font-size: 14px;
}

.news:hover a {
    color: #ffffff !important;
    text-shadow: 0 0 5px #ffaa00;
}

/* Estilo para Widget Top Players en Home */
.block-players .top-title {
    font-family: 'Cinzel', serif !important;
    color: #e3b054 !important;
    border-bottom: 1px solid #4a381e;
    padding-bottom: 8px;
}

.block-players .top-list {
    border-bottom: 1px solid rgba(74, 56, 30, 0.3) !important;
}

.block-players .top-list:hover {
    background-color: rgba(58, 41, 23, 0.7) !important;
}

.block-players .top-number {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: #ffaa00 !important;
}

.block-players .top-name {
    color: #f7ddbf !important;
}

/* Ajustes para el iframe de Discord u otros widgets */
iframe {
    border: 1px solid #4a381e !important;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}}

/* ============================================================
   FOOTER RETRO 0.97d Y REDES SOCIALES
   ============================================================ */

.footer {
    background: rgba(8, 6, 6, 0.95) !important;
    border-top: 2px solid #4a381e !important;
    box-shadow: inset 0 10px 15px rgba(0, 0, 0, 0.9);
    padding: 30px 0 50px 0 !important;
    margin-top: 40px;
}

.f-menu li a {
    font-family: 'Cinzel', serif !important;
    color: #b89862 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.f-menu li a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px #ffaa00 !important;
}

.footer-block-coperite {
    color: #8c7352 !important;
    font-size: 12px;
}

.footer-block-coperite a {
    color: #e3b054 !important;
    font-weight: bold;
}

/* Iconos Sociales Estilo Anillos u Orbes */
.soc-block a {
    background-color: #120c08 !important;
    border: 1px solid #5a4120 !important;
    box-shadow: inset 0 0 5px rgba(227, 176, 84, 0.3) !important;
    transition: all 0.3s ease !important;
}

.soc-block a:hover {
    border-color: #e3b054 !important;
    box-shadow: 0 0 12px rgba(227, 176, 84, 0.8), inset 0 0 8px rgba(227, 176, 84, 0.5) !important;
    transform: translateY(-2px);
}

/* Banner Castle Siege (Efecto Marco Dorado) */
.castle-siege-banner {
    background: linear-gradient(180deg, rgba(28, 20, 13, 0.95) 0%, rgba(12, 8, 5, 0.95) 100%) !important;
    border: 1px solid #5a4120 !important;
    box-shadow: inset 0 0 15px #000, 0 4px 10px rgba(0, 0, 0, 0.7);
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 3px;
    color: #d1c2a5;
    font-family: 'Cinzel', serif;
}

.castle-siege-banner .guild_owner, 
.castle-siege-banner .guild_master {
    color: #ffaa00;
    font-weight: bold;
    font-size: 14px;
}

.castle-siege-banner .guild_countdown {
    color: #ff3333;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 6px rgba(255, 51, 51, 0.5);
}