body {
  font-family: 'Outfit', sans-serif;
  background: #000;
  margin: 0;
  padding: 30px 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}

h1 {
  text-align: center;
  color: #ff1a4d;
  text-shadow: 0 0 10px #ff1a4d;
  font-size: 2rem;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo-container img {
  width: 130px;
  filter: drop-shadow(0 0 8px #ff1a4d);
}

nav {
  text-align: center;
  margin-bottom: 25px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #ff4d88;
  font-weight: 600;
  transition: 0.2s;
}

nav a:hover {
  text-shadow: 0 0 10px #ff4d88;
}

form {
  background: rgba(255, 26, 77, 0.05);
  border: 1px solid #ff1a4d;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 26, 77, 0.3);
  backdrop-filter: blur(5px);
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #ff6699;
}

input[type="text"],
textarea,
input[type="file"] {
  width: 100%;
  margin-top: 5px;
  font-size: 1em;
  padding: 10px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #ff1a4d;
  color: #fff;
  box-shadow: inset 0 0 5px #ff1a4d;
}



button {
  margin-top: 20px;
  background: #ff1a4d;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 15px #ff1a4d;
  transition: 0.2s;
}

button:hover {
  background: #ff3366;
}

#status {
  margin-top: 15px;
  font-weight: bold;
  color: #33ff88;
}

.info-box {
  margin-top: 30px;
  background: rgba(255, 26, 77, 0.07);
  border-left: 4px solid #ff1a4d;
  padding: 20px;
  border-radius: 10px;
  color: #eee;
  line-height: 1.6;
  box-shadow: 0 0 10px rgba(255, 26, 77, 0.2);
}
.thread-message {
  white-space: pre-line;
}
  .logo-link {
      border: none !important;
      padding: 0 !important;
      margin: 0 !important;
      background: transparent !important;
      text-shadow: none !important;
    }
    .logo-link:hover { transform: scale(1.05); }
    .logo-img {
      width: 120px;
      height: auto;
      border: none !important;
      box-shadow: none !important;
      filter: none !important;
    }
    /* RESET & GLOBAL */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { height: 100%; }
    body { font-family: 'Outfit', sans-serif; background: #000; color: #fff; line-height: 1.6; }
    a { color: #ff4d88; text-decoration: none; transition: 0.2s; }
    a:hover { text-shadow: 0 0 10px #ff4d88; }

    /* HEADER & FOOTER */
    header, footer { background: #000; text-align: center; padding: 1rem; }
    header .logo img { width: 120px; filter: drop-shadow(0 0 8px #ff1a4d); }
    nav { display: flex; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
    nav a { font-weight: 600; }
    footer p { color: #888; font-size: 0.9rem; }
    footer a { color: #ff4d88; }

    /* LAYOUT */
    .container { display: flex; max-width: 1200px; margin: 2rem auto; gap: 2rem; padding: 0 1rem; }
    .sidebar { width: 250px; background: #000; padding: 1rem; border-radius: 12px; box-shadow: 0 0 20px rgba(255,26,77,0.2); }
    .main { flex: 1; }

    /* SIDEBAR */
    .sidebar h2 { color: #00cec9; margin-bottom: 1rem; }
    .sidebar ul { list-style: none; }
    .sidebar li { margin-bottom: 0.75rem; }
    .sidebar a.active { font-weight: bold; color: #00cec9; }

    /* FORO LIST */
    .forum-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
    .forum-header h1 { font-size: 1.8rem; color: #ff1a4d; }
    .btn-create { background: #00b894; color: #fff; padding: 0.75rem 1.5rem; border-radius: 20px; font-weight: 700; box-shadow: 0 0 6px #00cec9; }
    .btn-create:hover { box-shadow: 0 0 10px #00cec9; }

    .threads { border-top: 2px solid #222; }
    .thread { display: grid; grid-template-columns: 1fr 90px 90px 200px; padding: 1rem 0; border-bottom: 1px solid #222; align-items: center; gap: 1rem; }
    .thread h3 { font-size: 1rem; margin-bottom: 0.25rem; }
    .thread-info { font-size: 0.85rem; color: #aaa; }
    .thread-stats p, .thread-last p { font-size: 0.9rem; }

    /* PAGINACIÓN */
    .pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
    .pagination a { padding: 0.5rem 0.75rem; background: #111; border-radius: 8px; }
	  
	  /* Redefinimos la grid de cada hilo: Avatar | Título+Categoría | Resps | Visitas | Último */
.thread {
  display: grid;
  /* Avatar – Main – Respuestas – Último – Thumbnail */
  grid-template-columns: 48px 1fr 60px 120px 80px;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #222;
  gap: 0.5rem;
}

.pagination {
  text-align: center;
  margin: 2rem 0;
}
.pagination a {
  display: inline-block;
  color: #ff2e7a;
  background: rgba(255,255,255,0.05);
  padding: 6px 10px;
  margin: 0 3px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.pagination a:hover {
  background: rgba(255,46,122,0.2);
}


/* Imagen de avatar redonda */
.thread .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Contenedor título+categoría en horizontal */
.thread .thread-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Estilos para el <p> de categoría */
.thread-info {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0;
  text-transform: uppercase;
}

.thread-category {
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 0.3rem;
}
/* Contenedor miniatura / icono vídeo */
.thread-thumb {
  width: 80px;
  height: 80px;
  position: relative;
}
.thread-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.video-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 4px;
}

.forum-subtitle {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: center; /* o left, según tu diseño */
}

    /* RESPONSIVE */
    @media (max-width: 768px) {
      .container { flex-direction: column; }
      .sidebar { width: 100%; }
		.thread-thumb { display: none; }
      .thread { grid-template-columns: 1fr; text-align: left; }
      .thread-stats, .thread-last { display: block; margin-top: 0.5rem; }
    }
	  @media (max-width: 480px) {
  .forum-header h1 { font-size: 1.2rem; }
  .btn-create { padding: 0.5rem 1rem; font-size: 0.9rem; }
  nav { flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; }
  header .logo img { width: 90px; }
}
	  body {
  padding: 0 1rem;
}
	  
	  .thread {
  display: grid;
  /* Thumbnail – Título – Respuestas – Visitas – Último */
  grid-template-columns: 80px 1fr 60px 60px 120px;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #222;
  gap: 0.5rem;
}
.thread-stats, .thread-last {
  text-align: right;
  font-size: 0.85rem;
  color: #aaa;
}
.thread-info em {
  display: inline-block;
  background: #ff4d88;
  color: #000;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.cat-list {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,26,77,0.2);
  display: none;
  z-index: 10;
	  max-height: 200px;  
  overflow-y: auto;    
  padding-right: 5px;  
}


	 
@media (max-width: 768px) {

  .container {
    display: flex;
    flex-direction: column;
  }
  .thread {
    /* Avatar – Main – Respuestas – Último – Thumbnail */
    grid-template-columns: 48px 1fr 60px 120px 50px;
  }
  .thread-thumb {
    display: block;
    width: 50px;
    height: 50px;
  }
  .thread-thumb img,
  .thread-thumb .video-indicator {
    width: 100%;
    height: 100%;
  }
  .sidebar {
    order: 1;
    width: 100%;
    margin-bottom: 1rem;
  }
  .main {
    order: 2;
  }

 
  .forum-header {
    display: flex;
    flex-wrap: wrap;          
    justify-content: center;   
    align-items: center;
    gap: 1rem;
  }
	
.thread-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

  .forum-header img {
    order: 1;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
  }
  .btn-create {
    order: 2;
    display: inline-flex;      
    margin: 0 auto;
  }
}
	  .forum-header .actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end; /* o space-between si quieres el espacio */
}
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.forum-header h1 {
  font-size: 1.8rem;
  color: #ff1a4d;
}
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* dropdown */
.dropdown {
  position: relative;
}
.cat-toggle {
  background: #111;
  color: #00cec9;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.cat-list {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,26,77,0.2);
  display: none;
  z-index: 10;
	  max-height: 200px;  
  overflow-y: auto;    
  padding-right: 5px;  
}
.cat-list li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  white-space: nowrap;
}
.cat-list li a:hover,
.cat-list li a.active {
  background: rgba(0,206,201,0.1);
  color: #00cec9;
}
/* mostrar dropdown */
.cat-list.open {
  display: block;
}



@media (max-width: 480px) {
  .forum-header img { max-width: 100%; }
  .btn-create { width: 100%; text-align: center; }
}
/* MODO MÓVIL: hilos en columna y stats en fila */
@media (max-width: 480px) {
  .thread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .thread > .thread-stats,
  .thread > .thread-last {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
  }
  .thread > .thread-stats {
    margin-top: 0.5rem;
  }
}
	  /* botón y panel categorías */
.cat-toggle {
  width: 100%;
  background: #111;
  color: #00cec9;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 8px rgba(255,26,77,0.2);
  margin-bottom: 0.5rem;
}
.cat-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,26,77,0.2);
}
.cat-list li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  border-bottom: 1px solid #222;
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list li a:hover,
.cat-list li a.active {
  background: rgba(0,206,201,0.1);
  color: #00cec9;
}
.cat-list.open { max-height: 500px; /* suficiente para mostrar todos */ }


/* estilo botón fantasma (cuando no hay sesión) */
.btn-create {
  display: inline-block;
  background: linear-gradient(90deg,#ff4a7a,#ff2050);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 16px rgba(255,30,100,0.08);
}

.btn-create.ghost {
  opacity: 0.55;
  filter: grayscale(20%);
  box-shadow: none;

  cursor: pointer;
}


.btn-create.ghost:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255,30,100,0.08);
}


.btn-create:focus {
  outline: 3px solid rgba(255,30,100,0.18);
  outline-offset: 2px;
}


/* ─── NAV RESPONSIVE ─── */
nav {
  display: flex;        /* convierte en flexbox */
  flex-wrap: wrap;      /* permite que los enlaces salten a la siguiente línea */
  justify-content: center;
  gap: 10px;            /* espacio horizontal y vertical entre enlaces */
}

nav a {
  flex: 1 1 auto;       /* que cada enlace pueda encoger/crecer según espacio */
  text-align: center;   /* centra el texto dentro de cada enlace */
  white-space: nowrap;  /* evita que el texto se divida en varias líneas */
}

/* Opcional: en pantallas muy estrechas fuerza enlaces a 100% de ancho */
@media (max-width: 400px) {
  nav a {
    flex: 1 1 100%;
  }
}
/* ─── OVERRIDE MÓVIL: miniaturas siempre 40×40px ─── */
@media (max-width: 768px) {
  /* Fuerza el grid original manteniendo las 5 columnas */
  .thread {
    grid-template-columns: 48px 1fr 60px 120px 160px !important;
  }

  /* Miniatura e icono siempre 40×40 */
  .thread-thumb,
  .thread-thumb img,
  .thread-thumb .video-indicator {
    width: 160px !important;
    height: 160px !important;
  }

  /* Aseguramos que no se oculte */
  .thread-thumb {
    display: block !important;
  }
}


/* NAV simple y mobile seguro */
:root{
  --pink:#ff2e7a;
  --neon-red:#ff0033;
  --font: 'Montserrat', system-ui, sans-serif;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  padding:18px 12px 6px;
  background:transparent;
  z-index:60;
}

/* Logo */
.site-logo { font-weight:800; color:var(--neon-red); font-size:28px;
  text-shadow:0 0 8px rgba(255,0,0,0.9); text-decoration:none; }

/* Desktop nav */
.main-nav{
  display:flex;
  gap:22px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}
.main-nav a{
  color:var(--pink); text-decoration:none; font-weight:600; font-size:14px;
  padding:8px 6px; position:relative;
}
.main-nav a:hover{ color:#fff; }
.nav-daily-challenge{
  background:linear-gradient(90deg,#ff4a7a,#ff2050);
  padding:8px 12px;border-radius:20px;color:#fff;
}

/* hamburger (hidden on desktop) */
.nav-toggle{
  display:none;
  background:transparent;border:0;cursor:pointer;font-size:22px;color:var(--pink);
}

/* mobile menu overlay (hidden by default) */
.mobile-menu{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.98);
  z-index:9999;
  padding-top:88px;
  text-align:center;
  gap:16px;
  flex-direction:column;
  align-items:center;
  overflow:auto;
}
.mobile-menu a{ color:var(--pink); text-decoration:none; font-size:20px; padding:12px 8px; display:block; }
.mobile-close{ margin-top:14px; padding:10px 14px; border-radius:8px; background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.04); cursor:pointer; }

/* when open */
.mobile-menu.open{ display:flex; }

/* Responsive rules */
@media (max-width:900px){
  .main-nav{ display:none; }           /* hide desktop nav on mobile */
  .nav-toggle{ display:block; }        /* show hamburger */
  .site-logo{ font-size:22px; }
}
@media (min-width:901px){
  .mobile-menu { display:none !important; }
}





