<style>/* -----------------------------------------------------------
 1: AJUSTES ESTRUCTURALES UCOZ (Layout Base)
----------------------------------------------------------- */
.layout-navbar.navbar-detached {
 margin-bottom: 0 !important;
 border-radius: 0 !important;
 box-shadow: none !important;
 background: transparent !important;
}
.layout-page {
 padding-top: calc(var(--bs-navbar-height) + 0px) !important;
}
.content-wrapper, .container-p-y {
 padding-top: 0 !important;
 margin-top: 0 !important;
}

/* -----------------------------------------------------------
 2: MAGIA VISUAL (Transiciones y Cargas)
 * Soluciona el parpadeo del modo oscuro suavizando el cambio *
----------------------------------------------------------- */
body, table, td, div, span, a, input, select, textarea {
 transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out, border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* Efecto "Skeleton" de carga mágica */
@keyframes skeleton-glow { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
.gTable.loading-state td {
 background: linear-gradient(90deg,#1a0f05 25%,#3d2b1f 50%,#1a0f05 75%) !important;
 background-size: 200% 100% !important;
 animation: skeleton-glow 1.5s infinite !important;
 color: transparent !important;
}

/* -----------------------------------------------------------
 3: ESTÉTICA DE LAS TABLAS (Foros y Temas Unificados)
----------------------------------------------------------- */
/* Contenedor principal de tablas (Secciones, Temas e Info) */
table.gTable.forum-section-table, 
table.gTable.forum-additional-info,
table.gTable.forum-topics-table { /* Añadida la tabla de temas aquí */
 background: rgba(10,10,10,0.95) !important;
 border-collapse: separate !important;
 border-spacing: 2px !important;
 border: 2px solid #5c4033 !important;
 width: 100% !important;
 box-shadow: 0 0 20px rgba(0,0,0,0.9);
 margin: 0 !important;
 border-top: none !important;
 border-radius: 0 0 8px 8px;
}

/* Cabeceras Principales (Degradado Rojo/Negro) */
table.gTable .gTableTop {
 background: linear-gradient(180deg,#4a0404 0%,#000000 100%) !important;
 color: #ff4500 !important;
 text-shadow: 0 0 10px #ff0000, 0 0 5px #ff8c00;
 padding: 12px !important;
 text-transform: uppercase;
 letter-spacing: 1px;
 border-bottom: 2px solid #d4af37 !important;
 font-family: 'Cinzel', serif;
}

/* Sub-Cabeceras (Columnas) */
table.gTable .gTableSubTop {
 background: rgba(45,30,20,0.95) !important;
 color: #d4af37 !important;
 font-weight: bold;
 padding: 8px 12px !important;
 border: 1px solid #3d2b1f !important;
 text-transform: uppercase;
 font-size: 0.85em;
}

/* Celdas de contenido (Filas de foros y temas) */
table.gTable td.gTableBody1, table.gTable td.gTableRight, 
table.gTable td.forumIcoTd, table.gTable td.forumNameTd, 
table.gTable td.forumThreadTd, table.gTable td.forumPostTd, table.gTable td.forumLastPostTd,
/* Selectores específicos para la lista de temas */
.threadNametd, .threadIcoTd, .threadPostTd, .threadViewTd, .threadAuthTd, .threadLastPostTd {
 background: rgba(30,20,15,0.85) !important;
 border: 1px solid #3d2b1f !important;
 color: #e0d0b0 !important;
 padding: 12px !important;
}

/* Hover en filas */
table.gTable tr:hover td, tr[id^="tt"]:hover td {
 background: rgba(60,40,30,0.95) !important;
 color: #fff !important;
 box-shadow: inset 0 0 15px rgba(212,175,55,0.3);
 cursor: pointer;
}

/* Enlaces dentro de tablas */
table.gTable a:link, table.gTable a:visited, a.threadLink, a.threadPinnedLink {
 color: #d4af37 !important;
 text-decoration: none;
 transition: 0.3s;
 font-weight: bold;
}
table.gTable a:hover, a.threadLink:hover, a.threadPinnedLink:hover {
 color: #ffffff !important;
 text-shadow: 0 0 8px #fff, 0 0 12px #d4af37;
}

/* Iconos de las tablas */
table.gTable img {
 filter: sepia(1) saturate(3) hue-rotate(-50deg) drop-shadow(0 0 5px #ff4500);
}

/* -----------------------------------------------------------
 4: EFECTOS DE VIDA (Auras y Admins)
----------------------------------------------------------- */
.groupAdmin, a.groupAdmin, .forumLastPostTd a[href*="user/1"] {
 color: #ff4500 !important;
 font-weight: bold !important;
 text-transform: uppercase;
 text-shadow: 0 0 5px #ff0000, 0 0 10px #ff8c00, 0 0 15px #ff4500 !important;
 animation: flicker-fire 1.5s infinite alternate !important;
}
@keyframes flicker-fire { 0%{filter:brightness(1);} 100%{filter:brightness(1.3);} }

.user-online-aura {
 border-radius: 50%;
 border: 2px solid #00ff00 !important;
 box-shadow: 0 0 10px #00ff00;
 animation: pulse-life 2s infinite;
}
@keyframes pulse-life { 0%{transform:scale(1);} 50%{transform:scale(1.05);} 100%{transform:scale(1);} }

.ao-avatar-online img {
 border: 2px solid #00ff00;
 box-shadow: 0 0 15px #00ff00;
 animation: auraPulse 2s infinite ease-in-out;
}
@keyframes auraPulse { 0%{box-shadow:0 0 5px #00ff00;} 50%{box-shadow:0 0 20px #00ff00;} 100%{box-shadow:0 0 5px #00ff00;} }

/* -----------------------------------------------------------
 5: TARJETAS DE POSTS (Vista de mensajes)
----------------------------------------------------------- */
.post-card-ao {
 display: flex;
 background: rgba(20,20,25,0.95);
 border: 2px solid #4a3728;
 margin-bottom: 20px;
 border-radius: 8px;
 box-shadow: 0 10px 30px rgba(0,0,0,0.5);
 transition: transform 0.3s ease;
 overflow: hidden;
}
.post-card-ao:hover {
 transform: translateY(-5px);
 box-shadow: 0 15px 40px rgba(184,134,11,0.2);
}
.ao-sidebar {
 width: 240px;
 padding: 15px;
 background: linear-gradient(180deg,#1a1a1a 0%,#0d0d0d 100%);
 border-right: 2px solid #333;
 text-align: center;
 flex-shrink: 0;
}
.post-avatar {
 width: 100px; height: 100px;
 border-radius: 50%;
 border: 2px solid #444;
 background: #000;
 object-fit: cover;
}
.ao-name-glitch {
 color: #ffd700;
 font-weight: bold;
 text-decoration: none;
 display: block;
 margin-top: 10px;
 text-shadow: 2px 2px #000;
}
.ao-name-glitch:hover {
 text-shadow: 2px 0 #ff0000, -2px 0 #00ff00;
 animation: glitch 0.3s infinite;
}
.ao-stats-container {
 margin-top: 15px;
 font-size: 11px;
 text-align: left;
 color: #bbb;
}
.ao-stat b { color: #d4af37; }

.ao-parchment {
 flex: 1;
 background: #f4e4bc url('/assets/texturas/paper.png');
 padding: 0;
 color: #2c1e14;
 position: relative;
 display: flex;
 flex-direction: column;
 min-width: 0;
}
.ao-header-gold {
 background: #4a3728;
 color: #d4af37;
 padding: 8px 15px;
 font-size: 11px;
 font-family: 'Courier New',Courier,monospace;
 display: flex;
 justify-content: space-between;
 border-bottom: 2px solid #30241a;
}
.post-content-main {
 padding: 20px;
 min-height: 150px;
 line-height: 1.6;
 font-size: 14px;
 flex-grow: 1;
}
.ao-scroll-dragon::-webkit-scrollbar { width: 8px; }
.ao-scroll-dragon::-webkit-scrollbar-track { background: #30241a; }
.ao-scroll-dragon::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 10px; border: 2px solid #30241a; }
.post-content-footer {
 border-top: 1px dashed rgba(74,55,40,0.4);
 margin-top: 15px;
 padding-top: 10px;
}

/* -----------------------------------------------------------
 6: FIRMAS
----------------------------------------------------------- */
.ao-signature-box {
 border: 1px solid rgba(74,55,40,0.3);
 background: rgba(0,0,0,0.2);
 border-radius: 4px;
 padding: 10px;
 margin: 15px 0;
 color: #bbb;
 font-size: 11px;
 width: 100%;
 box-sizing: border-box;
 display: flex;
 flex-direction: column;
}
.ao-signature-box br, .ao-signature-box hr { display: none !important; }
.ao-signature-box b {
 display: flex; justify-content: space-between; align-items: center;
 width: 100%;
 background: rgba(30,20,10,0.6);
 padding: 6px 10px;
 border-radius: 3px;
 border: 1px solid #3d2b1f;
 margin-bottom: 6px;
 font-weight: 600;
 text-transform: uppercase;
 box-sizing: border-box;
 color: #a89f91;
 height: 30px;
}
.ao-signature-box b:first-of-type {
 background: transparent; border: none; color: #ff4500;
 margin-bottom: 8px; font-size: 13px;
 text-shadow: 1px 1px 0 #000;
 justify-content: center; height: auto; padding: 0;
}
.ao-signature-box b:nth-of-type(2) {
 background: #4a3728; color: #ffd700; border: 1px solid #ffd700; margin-bottom: 10px;
}
.ao-signature-box b span { color: #fff; font-weight: bold; }
.ao-signature-box:hover { background: rgba(0,0,0,0.3); transition: 0.3s ease; }

/* -----------------------------------------------------------
 7: BOTONES DE INTERACCIÓN
----------------------------------------------------------- */
.ao-interaction-bar {
 display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 10px 20px; margin-top: auto;
}
.ao-btn-like, .ao-btn-quote-wrap a {
 display: inline-flex; align-items: center;
 padding: 5px 12px;
 border-radius: 4px;
 font-size: 11px;
 font-weight: bold;
 text-decoration: none !important;
 transition: all 0.2s;
 border: 1px solid rgba(0,0,0,0.3);
 box-shadow: 0 2px 5px rgba(0,0,0,0.2);
 height: 20px; line-height: 20px;
}
.ao-btn-like {
 background: linear-gradient(180deg,#2e4c2e 0%,#1b331b 100%);
 color: #98fb98 !important;
 border-color: #3d6e3d;
}
.ao-btn-like:hover { filter: brightness(1.2); transform: translateY(-1px); color: #fff !important; }
.ao-counter {
 background: rgba(0,0,0,0.4); padding: 1px 6px; border-radius: 3px;
 margin-left: 6px; color: #fff; border: 1px solid rgba(255,255,255,0.1);
}
.ao-btn-quote-wrap a {
 background: linear-gradient(180deg,#5a4031 0%,#3e2b20 100%);
 color: #d4af37 !important;
 border-color: #6b4c3a;
}
.ao-btn-quote-wrap a:hover { filter: brightness(1.2); transform: translateY(-1px); color: #fff !important; }
.ao-btn-quote-wrap a:before { content: "❝ "; margin-right: 4px; font-size: 12px; }

/* -----------------------------------------------------------
 8: NAVEGACIÓN Y PAGINACIÓN (Estilo Pergamino Oscuro)
----------------------------------------------------------- */

/* Limpieza de la lista de paginación (Quitar puntos) */
ul.switches {
 padding: 0 !important;
 margin: 10px 0 !important;
 list-style: none !important;
 list-style-type: none !important;
 display: flex;
 align-items: center;
}
ul.switches li {
 list-style: none !important;
 display: inline-block !important;
 margin-right: 5px;
}

/* Botones de páginas */
ul.switches li.switchActive, ul.switches a {
 background: #2a1a10;
 border: 1px solid #5c4033;
 color: #d4af37 !important;
 padding: 5px 10px;
 border-radius: 4px;
 text-decoration: none;
 box-shadow: 0 0 5px rgba(0,0,0,0.5);
 font-weight: bold;
 font-size: 0.9em;
}

/* Página activa */
ul.switches li.switchActive {
 background: #4a0404; /* Rojo oscuro */
 border-color: #ff4500;
 box-shadow: 0 0 8px rgba(255, 69, 0, 0.4);
 color: #fff !important;
}

/* Barra inferior (Navegación rápida y búsqueda) */
table.FrmBotTbl {
 background-color: rgba(20, 15, 10, 0.95) !important;
 border-top: 2px solid #d4af37 !important;
 border-bottom: 2px solid #5c4033;
 padding: 10px;
 margin-top: 15px;
 color: #e0d0b0;
}

/* Inputs y Selects Estilizados (Fuego y Magia) */
input.fastSearch, select.fastNav, input[type="button"], input[type="submit"] {
 background-color: #1a0f05 !important;
 color: #ff8c00 !important; /* Naranja fuego */
 border: 1px solid #8a6e45 !important;
 padding: 5px;
 border-radius: 4px;
 font-family: monospace;
 box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}

input.fastSearch:focus, select.fastNav:focus {
 border-color: #ff4500 !important;
 box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
 outline: none;
 color: #fff !important;
}

/* Derechos de usuario (User Rights) */
.userRights {
 color: #8a6e45;
 font-size: 0.85em;
 border-left: 2px solid #4a3728;
 padding-left: 10px;
 margin-top: 5px;
}
.userRights b {
 color: #4caf50; /* Verde */
}
</style> 