/* ===========================
   FOOL METAL FICTION — STYLE
   =========================== */

/* Reset útil */
* { box-sizing: border-box; }

/* Base */
html, body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #e9dcff;
  background: #0d001a;
}

/* ===== Fondos por sección (pon aquí tus nombres reales de imágenes) ===== */
body.home     { background: url('/images/bg_home.jpg') center/cover fixed no-repeat; }
body.about    { background: url('/images/bg_about.jpg') center/cover fixed no-repeat; }
body.webnovel { background: url('/images/bg_novel.jpg') center/cover fixed no-repeat; }
body.artgallery { background: url('/images/bg_art.jpg') center/cover fixed no-repeat; }
body.tcg      { background: url('/images/bg_tcg.jpg') center/cover fixed no-repeat; } /* agrega esta imagen */

/* ===== Layout ===== */
.container {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar (barra izquierda) ===== */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 230px;               /* puedes ajustar a 200-240 */
  padding: 20px 16px;
  background: #180026 url('/images/sidebar_texture.jpg') center/cover no-repeat;
  box-shadow: 2px 0 6px rgba(0,0,0,.6);
  z-index: 2; /* para quedar por encima del footer */
  overflow-y: auto;
}

/* Título "FOOL METAL / FICTION" */
.brand {
  margin: 0 0 10px;
  text-align: center;
  line-height: 1.08;
  letter-spacing: 1px;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 0 4px #8a70b0, 1px 1px 0 #000;
}
.brand span { display: block; }

/* Ranura para logo bajo el título */
.logo-slot {
  width: 150px;
  height: 150px;
  background: url('/images/logo.png') center/contain no-repeat;
  margin-bottom: 20px;
  margin: 12px auto 18px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #cdb3ff;
  text-align: center;
  padding: 6px;
}

/* Navegación como botones centrados */
.nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav li {
  display: block;
  text-align: center;
  margin: 8px 0;
}
.nav a {
  display: inline-block;
  min-width: 150px;           /* ancho mínimo de botón */
  padding: 10px 12px;
  border: 1px solid #7e5bc0;
  border-radius: 8px;
  text-decoration: none;
  color: #e7d4ff;
  background:
    linear-gradient(180deg, rgba(115,80,170,.28), rgba(35,10,70,.45));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.25);
  transition: transform .08s ease, box-shadow .15s ease, background .2s ease;
}
.nav a:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 10px rgba(0,0,0,.35);
  background:
    linear-gradient(180deg, rgba(150,110,210,.4), rgba(40,15,80,.6));
}
.nav a:active { transform: translateY(0); }

/* Evitar morado/visitado feo en enlaces */
a, a:visited, a:active { color: #e7d4ff; text-decoration: none; }

/* ===== Área de contenido ===== */
.content {
  margin-left: 230px;         /* igual al width de .sidebar */
  padding: 40px 28px 80px;    /* padding-bottom para que no tape el footer fijo */
  width: calc(100% - 230px);
  position: relative;
  z-index: 1;
}

/* ===== Ventanas tipo XP/Vista ===== */
.window-box {
  max-width: 780px;
  margin: 20px auto;
  background: rgba(20, 0, 40, 0.82);
  border: 2px solid #7050a0;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,.55);
  overflow: hidden;
  text-align: center; /* todo el texto centrado en ventanas */
}
.window-box .win-title {
  margin: 0;
  padding: 12px 14px;
  font-weight: bold;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(90deg, #4f2f74, #8a70b0);
  text-shadow: 1px 1px 2px #000;
}
.window-box .win-body {
  padding: 16px 18px 20px;
  line-height: 1.5;
  color: #e9dcff;
}

/* Subtítulo dentro de ventanas */
.subtitle {
  font-size: 14px;
  opacity: .9;
  margin: 6px 0 12px;
}

/* Placeholder de imagen/banners */
.card-placeholder {
  height: 170px;
  border: 1px dashed #7050a0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 4px;
  color: #cdb3ff;
}

/* Imágenes dentro de ventanas */
.window-box img { max-width: 100%; height: auto; display: block; margin: 10px auto 0; }

/* ===== Bloques About con imagen a la izquierda ===== */
.author-box {
  max-width: 780px;
  margin: 20px auto;
  display: flex; gap: 16px;
  align-items: center;
  background: rgba(20,0,40,.82);
  border: 2px solid #7050a0;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,.55);
  padding: 12px;
}
.author-box img {
  width: 84px; height: 84px; border-radius: 8px;
  object-fit: cover; flex: 0 0 auto;
  box-shadow: 0 0 6px rgba(0,0,0,.4);
}
.author-box .text { flex: 1; text-align: left; } /* texto en about a la derecha del logo */

/* ===== Botones estilo link dentro del contenido (p.ej. Web Novel) ===== */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #7e5bc0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(115,80,170,.28), rgba(35,10,70,.45));
  color: #e7d4ff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.25);
  transition: transform .08s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 10px rgba(0,0,0,.35);
  background: linear-gradient(180deg, rgba(150,110,210,.4), rgba(40,15,80,.6));
}

/* Forzar que títulos con enlace no se subrayen ni cambien a morado */
.window-box a, .window-box a:visited, .window-box a:active {
  color: #e7d4ff; text-decoration: none;
}

/* ===== Footer ===== */
footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #14001f;
  color: #c8b8ee;
  text-align: center;
  padding: 6px 10px;
  font-size: 12px;
  z-index: 0; /* detrás de la sidebar */
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ===== Ajustes responsive ===== */
@media (max-width: 920px) {
  .sidebar { width: 200px; }
  .content { margin-left: 200px; width: calc(100% - 200px); }
}
@media (max-width: 720px) {
  .sidebar {
    position: static; width: 100%; height: auto;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .content { margin-left: 0; width: 100%; padding: 24px 16px 80px; }
  .nav a { min-width: 140px; }
  .author-box { flex-direction: column; text-align: center; }
  .author-box .text { text-align: center; }
}

/* ====== OVERRIDES: WEBNOVEL AKEMI ====== */
body.webnovel-akemi .content {
  margin-left: 0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

body.webnovel-akemi .window-box {
  max-width: 900px;
  width: 100%;
}

body.webnovel-akemi .top-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 12px;
}

body.webnovel-akemi .top-buttons a {
  display: inline-block;
  padding: 8px 14px;
  background: #1a0830;
  border: 1px solid #7050a0;
  border-radius: 6px;
  text-decoration: none;
  color: #d0aaff;
}

/* Crea un fondo "fijo" con ::before y z-index correcto */
body.webnovel-akemi {
  position: relative;      /* stacking context */
  min-height: 100vh;
  background: #000;        /* fallback sólido por si tarda */
}

/* Akemi: fondo estable sin fixed */
body.webnovel-akemi {
  background: url('/images/bg_akemi.jpg') top center / 96% 96% no-repeat !important;
}

/* Fondo especial para la página de "Trabajo en Proceso" */
body.work-in-progress {
    background: url('/images/bg_workinprogress.jpg') center/cover no-repeat;
    background-color: #000; /* por si la imagen no carga */
}

/* Centrar la ventana en vertical y horizontal */
body.work-in-progress .content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Ajustes para el título */
body.work-in-progress .window h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Botón de regreso */
body.work-in-progress .window .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

body.work-in-progress .window .button:hover {
    background-color: #666;
}

