/**
 * PyroMU Template — pyromu.css  [PATCH v1.1]
 * WebEngine CMS 1.2.4
 *
 * FIX: Eliminada línea horizontal entre header y navbar.
 * FIX: Eliminados bordes/márgenes que creaban gaps negros.
 * FIX: Sidebar derecho ajustado para coincidir con contenido central.
 *
 * Rutas de imagen: relativas desde /templates/pyromu/css/
 *   → ../img/layout/   ../img/ui/   ../img/sidebar/
 */

/* ── Reset global ─────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

/* ── Body & fondo ─────────────────────────────────────────── */
body {
    background-color: #000;
    background-image: url('../img/layout/bg_pyro.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #ccc;
}

/* ── FIX CRÍTICO: eliminar cualquier borde/gap entre header y nav ── */
/* WebEngine por defecto añade margin/padding en estos elementos     */
.global-top-bar         { display: none !important; }   /* ocultar barra top del WE */
#header                 { display: none !important; }   /* ocultar logo del WE      */
.header-info-container  { display: none !important; }   /* ocultar barra de info WE */
.webengine-online-bar   { display: none !important; }
#navbar                 { display: none !important; }   /* navbar WE oculto — usamos el nuestro */

/* Resetear cualquier margen que Bootstrap inyecte */
.container, .container-fluid { padding: 0; margin: 0; }
.row { margin: 0; }

/* ── Wrapper principal ───────────────────────────────────── */
.pyromu-wrap {
    width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* ── HEADER (imagen única, sin gaps) ─────────────────────── */
.pyromu-header-wrap {
    width: 100%;
    background: #000;
    /* FIX: sin border, sin padding, sin margin → no hay línea */
    border: none;
    padding: 0;
    margin: 0;
    line-height: 0;   /* FIX: elimina el gap inline-block bajo la imagen */
    font-size: 0;
}

.pyromu-header {
    position: relative;
    width: 1000px;
    margin: 0 auto;
    line-height: 0;   /* FIX clave: evita espacio debajo del <img> */
}

.pyromu-header-img {
    display: block;   /* FIX: block elimina el baseline gap de inline */
    width: 1000px;
    height: 313px;
    border: none;
    margin: 0;
    padding: 0;
}

/* ── Control Panel (login overlay) ──────────────────────── */
.pyromu-cp-panel {
    position: absolute;
    top: 148px;
    right: 8px;
    width: 312px;
    background: rgba(20, 5, 5, 0.86);
    border: 1px solid #5a2a10;
    padding: 10px 12px 8px;
    z-index: 20;
    line-height: normal;
    font-size: 12px;
}

.pyromu-cp-title {
    color: #c8a060;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #5a2a10;
    padding-bottom: 4px;
    margin-bottom: 8px;
    font-family: Verdana, Arial;
}

.pyromu-cp-label {
    color: #ccc;
    font-family: Verdana;
    font-size: 11px;
    padding-bottom: 2px;
    display: block;
}

.pyromu-field {
    background: #1a0800;
    border: 1px solid #5a2a10;
    color: #eee;
    padding: 4px 6px;
    font-size: 11px;
    font-family: Verdana, Arial;
    outline: none;
}

.pyromu-field:focus { border-color: #d69032; }

.pyromu-forgot {
    color: #c8853a;
    font-size: 10px;
    text-decoration: none;
    font-family: Verdana;
}
.pyromu-forgot:hover { color: #f90; text-decoration: none; }

.pyromu-logged-as { color: #fff; font-size: 12px; margin: 4px 0; }

.pyromu-btn {
    background: #5a1a0a;
    color: #fff !important;
    border: 1px solid #8a3a1a;
    padding: 4px 12px;
    font-size: 11px;
    text-decoration: none !important;
    display: inline-block;
    cursor: pointer;
}
.pyromu-btn:hover { background: #7a2a0a; }
.pyromu-btn-red   { background: #5a0a0a; border-color: #8a1a1a; }

/* ── NAVBAR horizontal (el nuestro, no el de WE) ─────────── */
.pyromu-navbar-wrap {
    background-image: url('../img/layout/menu_y.jpg');
    background-repeat: repeat-x;
    background-color: #2a1800;
    height: 34px;
    /* FIX: sin border-top ni border-bottom → no hay línea */
    border: none;
    margin: 0;
    padding: 0;
    line-height: 34px;
}

.pyromu-navbar-inner {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
}

.pyromu-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.pyromu-nav-links a {
    color: #d69032;
    font-family: Tahoma, Arial;
    font-size: 12px;
    text-decoration: none;
    padding: 0 10px;
    line-height: 34px;
    display: inline-block;
}
.pyromu-nav-links a:hover { color: #ff9900; text-decoration: none; }
.pyromu-nav-links .sep    { color: #5a3a10; padding: 0 2px; }

.pyromu-nav-red  { color: #b54e33 !important; }
.pyromu-nav-gold { color: #996600 !important; }

/* Servertime en el nav */
.pyromu-servertime {
    color: #7B6A3C;
    font-family: Verdana;
    font-size: 11px;
    white-space: nowrap;
    padding-right: 8px;
    line-height: 34px;
}

/* ── ÁREA DE CONTENIDO ───────────────────────────────────── */
.pyromu-content-wrap {
    /* FIX: margin:0, no top border */
    width: 1000px;
    margin: 0 auto;
    background-image: url('../img/layout/content.jpg');
    background-repeat: no-repeat;
    background-position: top left;
    min-height: 480px;
    position: relative;
}

/* Welcome bar */
.pyromu-welcome-bar {
    width: 100%;
    min-height: 111px;
    padding: 0 0 0 208px;    /* deja espacio al sidebar izq (200px) */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pyromu-welcome-title {
    color: #8B5E34;
    font-size: 13px;
    font-family: Tahoma;
    display: block;
}

.pyromu-welcome-sub {
    color: #8b431d;
    font-size: 13px;
    font-family: Tahoma;
    display: block;
}

.pyromu-gold { color: #d69032; }

/* Layout de 3 columnas */
.pyromu-columns {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

/* ── SIDEBAR IZQUIERDO ───────────────────────────────────── */
.pyromu-sidebar-left {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    vertical-align: top;
}
.pyromu-sidebar-left img { display: block; }

/* ── CONTENIDO CENTRAL ───────────────────────────────────── */
.pyromu-content-center {
    flex: 1;
    padding: 0 6px;
    min-width: 0;
    vertical-align: top;
}

/* Barra de título de sección (News_Title.jpg) */
.pyromu-section-bar,
.page-title {
    background-image: url('../img/layout/News_Title.jpg');
    background-repeat: no-repeat;
    background-size: 531px 38px;
    height: 38px;
    line-height: 38px;
    padding-left: 12px;
    color: #8B5E34;
    font-family: Tahoma;
    font-size: 13px;
    margin-bottom: 8px;
    width: 531px;
    max-width: 100%;
}
.page-title span { color: #8B5E34; font-size: 13px; }

/* Paneles de noticias */
.panel-news {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 12px;
}
.panel-news .panel-heading {
    background: rgba(20,8,0,0.65);
    border: 1px solid #3a1a0a;
    border-radius: 0;
    padding: 6px 10px;
}
.panel-news .panel-title { margin: 0; }
.panel-news .panel-title a {
    color: #d69032;
    font-size: 13px;
    text-decoration: none;
}
.panel-news .panel-title a:hover { color: #ff9900; }
.panel-news .panel-body {
    background: rgba(15,5,0,0.5);
    border: 1px solid #2a0e00;
    border-top: none;
    color: #ccc;
    font-size: 12px;
    line-height: 1.6;
    padding: 10px;
}
.panel-news .panel-footer {
    background: rgba(10,3,0,0.5);
    border: 1px solid #2a0e00;
    border-top: none;
    color: #777;
    font-size: 11px;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
}
.news-readmore {
    color: #d69032;
    font-size: 11px;
    text-decoration: none;
    display: block;
    margin-top: 6px;
}
.news-readmore:hover { color: #ff9900; }

/* ── SIDEBAR DERECHO ─────────────────────────────────────── */
.pyromu-sidebar-right {
    width: 203px;
    min-width: 203px;
    flex-shrink: 0;
    vertical-align: top;
}

/* Contenedor del sidebar derecho con textura */
.pyromu-sidebar-block {
    width: 179px;
    margin: 0 auto;
}

.pyromu-sidebar-top {
    height: 9px;
    background-image: url('../img/layout/m_t.jpg');
    background-repeat: no-repeat;
    width: 179px;
}

.pyromu-sidebar-body {
    background-image: url('../img/layout/m_c.jpg');
    background-repeat: repeat-y;
    background-color: #1a0800;
    width: 179px;
    padding: 4px 8px;
}

.pyromu-sidebar-bottom {
    height: 9px;
    background-image: url('../img/layout/m_b.jpg');
    background-repeat: no-repeat;
    width: 179px;
    margin-bottom: 8px;
}

/* Labels de sección del sidebar (menu.jpg, downlaods.jpg...) */
.pyromu-sidebar-label {
    display: block;
    margin: 6px 0 4px;
    line-height: 0;
}
.pyromu-sidebar-label img { display: block; }

/* Links del sidebar */
.pyromu-sidebar-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    text-decoration: none;
    color: #8b431d;
    font-size: 12px;
    font-family: Verdana, Arial;
}
.pyromu-sidebar-link:hover { color: #d69032; text-decoration: none; }
.pyromu-sidebar-sep {
    width: 125px;
    height: 1px;
    background-image: url('../img/ui/line.jpg');
    background-repeat: no-repeat;
    margin-bottom: 2px;
}

/* Formulario de login en el sidebar WE */
.panel-sidebar { margin-bottom: 0; }
.panel-sidebar .panel-heading {
    background: transparent;
    border: none;
    padding: 4px 0;
}
.panel-sidebar .panel-title {
    color: #d69032;
    font-size: 12px;
}
.panel-sidebar .panel-body {
    background: transparent;
    padding: 4px 0;
}
.panel-sidebar .form-control {
    background: #1a0800;
    border: 1px solid #5a2a10;
    color: #eee;
    border-radius: 0;
    height: 26px;
    font-size: 11px;
    margin-bottom: 4px;
    padding: 3px 6px;
}
.panel-sidebar .form-control:focus {
    border-color: #d69032;
    box-shadow: none;
}
.panel-sidebar .btn-primary {
    background: #5a1a0a;
    border-color: #8a3a1a;
    border-radius: 0;
    font-size: 11px;
    padding: 4px 12px;
    color: #fff;
}
.panel-sidebar .btn-primary:hover { background: #7a2a0a; }
.panel-sidebar .btn-xs {
    font-size: 10px;
    padding: 2px 6px;
    background: #3a0a00;
    border-color: #6a2a10;
    color: #d69032;
    border-radius: 0;
}
.panel-usercp .panel-title { color: #d69032; }

/* Banners del sidebar */
.sidebar-banner { display: block; margin-bottom: 6px; }
.sidebar-banner img { max-width: 179px; display: block; }

/* Tablas del sidebar (server info, top players) */
.table-sidebar {
    width: 100%;
    font-size: 11px;
    color: #ccc;
    border-collapse: collapse;
}
.table-sidebar td { padding: 2px 0; vertical-align: top; }
.table-sidebar .td-label { color: #d69032; }
.table-sidebar .td-value { text-align: right; font-weight: bold; }

/* Castle siege widget */
.castle-siege-widget { font-size: 11px; color: #ccc; margin: 4px 0; }
.castle-siege-widget table { width: 100%; font-size: 11px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.pyromu-footer-wrap {
    background: #000;
    margin: 0;
    padding: 0;
    line-height: 0;
    border: none;
}
.pyromu-footer-img {
    display: block;
    width: 954px;
    height: 173px;
    margin: 0 auto;
}
.footer-container {
    line-height: normal;
    color: #5a3a1a;
    font-family: Verdana;
    font-size: 10px;
    padding: 6px 0;
    width: 954px;
    margin: 0 auto;
    text-align: center;
}
.footer-container a       { color: #5a3a1a; text-decoration: none; }
.footer-container a:hover { color: #d69032; }
.footer-container hr      { border-color: #2a1000; margin: 4px 0; }

/* ── Formularios globales ────────────────────────────────── */
.form-control {
    background: #1a0800;
    border: 1px solid #5a2a10;
    color: #eee;
    border-radius: 0;
}
.form-control:focus {
    border-color: #d69032;
    box-shadow: none;
    background: #220e00;
    color: #fff;
    outline: none;
}
.control-label { color: #ccc; }
.help-block    { color: #888; font-size: 11px; }

/* Botones globales */
.btn-primary {
    background: #5a1a0a;
    border-color: #8a3a1a;
    color: #fff;
    border-radius: 0;
}
.btn-primary:hover, .btn-primary:focus {
    background: #7a2a0a;
    border-color: #aa5a1a;
    color: #fff;
}
.btn-default {
    background: #2a1000;
    border-color: #4a2000;
    color: #ccc;
    border-radius: 0;
}
.btn-default:hover { background: #3a1800; color: #d69032; }

/* Alertas */
.alert          { border-radius: 0; font-size: 12px; }
.alert-danger   { background: #1a0808; border-color: #5a1a1a; color: #f88; }
.alert-success  { background: #081a08; border-color: #1a5a1a; color: #8f8; }
.alert-warning  { background: #1a1208; border-color: #5a3a1a; color: #fa0; }
.alert-info     { background: #081218; border-color: #1a3a5a; color: #adf; }

/* Tablas generales */
.table         { font-size: 12px; color: #ccc; }
.table > thead > tr > th {
    background: #3a1a0a;
    color: #d69032;
    border-bottom: 2px solid #5a2a10;
    border-top: none;
}
.table > tbody > tr > td { border-top: 1px solid #1a0800; }
.table > tbody > tr:nth-child(even) > td { background: #1a0800; }
.table > tbody > tr:hover > td           { background: #220e04; }

/* Links globales */
a       { color: #d69032; }
a:hover { color: #ff9900; text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1020px) {
    .pyromu-wrap,
    .pyromu-header,
    .pyromu-navbar-inner,
    .pyromu-content-wrap,
    .footer-container { width: 100%; }
    .pyromu-header-img { width: 100%; height: auto; }
    .pyromu-cp-panel   { display: none; }
}
