/* === RESET === */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #000;
  font-family: 'Roboto', sans-serif;
  color: #eee;
  scroll-behavior: smooth;
}

/* === WRAPPER GENERAL === */
.foro-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* === DISTRIBUCIÓN PRINCIPAL === */
.layout-foro {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
}


@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 15px 20px;
  box-shadow: 0 0 8px #00ffff33;
  border-bottom: 2px solid #00ffff55;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff99;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.4em;
}

#main-nav a {
  color: #00eaff;
  margin-left: 15px;
  text-decoration: none;
  transition: 0.2s;
}

#main-nav a:hover {
  color: #fff;
  text-shadow: 0 0 5px #00ffff99;
}

.menu-bar {
  background: #0c0c0c;
  border-bottom: 1px solid #00ffff33;
  text-align: center;
  padding: 10px;
}

.menu-bar a {
  color: #00ffff;
  text-decoration: none;
  margin: 0 10px;
}

.menu-bar a:hover {
  color: #fff;
  text-shadow: 0 0 4px #00ffff88;
}


/* === CONTENIDO === */
.foro-contenido {
  flex: 1 1 70%;
  background: #111;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px #00bfff33;
  min-width: 0;
}

/* === SIDEBAR === */
.foro-widget-lateral {
  flex: 0 0 28%;
  background: #0c0c0c;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px #00ffff33;
}

.foro-widget-lateral .widget-section {
  margin-bottom: 30px;
  background: #151515;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ffff22;
}

.widget-title {
  color: #00ffff;
  font-size: 1.2rem;
  margin-bottom: 12px;
  border-bottom: 1px solid #00ffff44;
  padding-bottom: 6px;
}

.widget-list {
  list-style: none;
}

.tema-item {
  margin-bottom: 12px;
}

.tema-item a {
  color: #0ff;
  text-decoration: none;
  font-weight: bold;
}

.tema-item a:hover {
  text-decoration: underline;
}

.tema-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 4px;
}

/* === CATEGORÍAS === */
.categoria-box {
  background: #1a1a1a;
  border: 1px solid #00ffff33;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 0 12px #00ffff22;
  transition: 0.3s ease;
}

.categoria-box:hover {
  box-shadow: 0 0 20px #00ffff55;
}

.categoria-box h3 {
  color: #00ffff;
  margin-bottom: 10px;
}

.categoria-box p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === FOOTER === */
.footer-foro {
  width: 100%;
  text-align: center;
  background: #0a0a0a;
  padding: 20px;
  color: #00bfff;
  border-top: 1px solid #00bfff33;
  margin-top: 40px;
  font-size: 0.9rem;
  box-shadow: 0 -5px 15px #00bfff11;
}





/* Asegura que .contenido-principal crezca correctamente */
.contenido-principal {
  flex: 1 0 70%;
  min-height: 100%;
}















.foro-header {
  background: #111;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 25px #00ffff22, inset 0 0 10px #000;
  margin-bottom: 30px;
}


.foro-title {
  font-size: 1.8rem;
  color: #00ffff;
  margin-bottom: 10px;
  text-shadow: 0 0 6px #00eaff88;
}

.foro-desc {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 1rem;
}

.btn-nuevo-tema {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(145deg, #00eaff, #00bfff);
  color: #000;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 10px #00eaff88;
  transition: 0.3s ease;
}

.btn-nuevo-tema:hover {
  background: #00bfff;
  color: #000;
}

.foro-tema-listado {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.tema-fila {
  background: linear-gradient(145deg, #0f0f0f, #0a0a0a);
  border: 1px solid #00ffff33;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 20px #00ffff11, inset 0 0 6px #000;
  transition: 0.3s ease;
}

.tema-fila,
.tema-card {
  margin-bottom: 20px;
}

.tema-titulo {
  color: #00eaff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.tema-detalles {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.btn-ver-tema {
  background: #00ffff22;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.btn-ver-tema:hover {
  background: #00ffff55;
  color: #000;
}






main.layout-foro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 10px;
    box-sizing: border-box;
}

.foro-contenido {
    flex: 1 1 70%;
    min-width: 300px; /* Evita que se estreche demasiado */
}

.foro-widget-lateral {
    flex: 1 1 28%;
    min-width: 250px; /* Ancho mínimo cómodo */
}

/* Media queries para dispositivos pequeños */
@media (max-width: 768px) {
    main.layout-foro {
        flex-direction: column;
        padding: 10px;
    }

    .foro-contenido, 
    .foro-widget-lateral {
        flex-basis: 100%;
        min-width: 100%;
    }
}


.tema-card {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #00c3ff; /* color de énfasis lateral */
}

.tema-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
    background-color: rgba(0, 0, 0, 0.6);
}

.tema-titulo a {
    color: #00e8ff;
    text-decoration: none;
    font-size: 1.3rem;
}

.tema-titulo a:hover {
    text-decoration: underline;
}

.tema-meta-info {
    font-size: 0.9rem;
    color: #ddd;
    margin-top: 10px;
}


@media (max-width: 500px) {
  main.layout-foro,
  .foro-wrapper,
  .public-wrapper,
  .foro-contenido,
  .tema-card,
  .foro-widget-lateral {
    padding: 5px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  body {
    padding: 0 !important;
    margin: 0 !important;
  }
  .public-wrapper, .card-box, .sidebar-publico, .seccion-planes, .bloque-compartir {
    background: #ffffff;
    border-radius: 0px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 0;
    margin-bottom: 20px;
}
}


.tema-admin-actions {
  position: absolute;
  top: 10px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.tema-card {
  position: relative;
}

.btn-editar,
.btn-borrar {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-editar:hover {
  background-color: #1c9cf2;
}

.btn-borrar:hover {
  background-color: #e33030;
}



.widget-section.pronosticadores {
  border-left: 4px solid #ff00cc;
  background: linear-gradient(145deg, #111, #000);
  box-shadow: 0 0 14px rgba(255, 0, 204, 0.3), inset 0 0 6px #000;
}


.widget-box {
    padding: 15px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Bloques individuales */
.widget-section {
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, #111, #0a0a0a);
    box-shadow: 0 0 18px #00bfff33, inset 0 0 10px #000;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

/* Estilos únicos por tipo */
.widget-section.foro-categorias {
    border-left-color: #00ffff;
}
.widget-section.ultimos-temas {
    border-left-color: #00ff88;
}
.widget-section.pronosticadores {
    border-left-color: #ff00cc;
}

/* Títulos llamativos */
.widget-title {
    font-size: 20px;
    font-weight: bold;
    color: #00eaff;
    margin-bottom: 14px;
    text-shadow: 0 0 6px #00ffffaa;
}

/* Lista base */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.widget-list li a {
    display: block;
    padding: 10px 14px;
    background: #1a1a1a;
    color: #00ffff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

/* Hover de links */
.widget-list li a:hover {
    background: linear-gradient(145deg, #00ffff22, #00bfff33);
    color: #ffffff;
    transform: translateX(5px);
    border-color: #00ffff88;
    box-shadow: 0 0 12px #00ffff44;
}

/* Meta de los temas */
.tema-meta {
    font-size: 13px;
    color: #aaa;
    margin-top: 4px;
    padding-left: 10px;
}


.tema-box {
  background: #111;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 12px;
  box-shadow: 0 0 12px #00eaff33;
}
.tema-titulo {
  font-size: 1.6rem;
  color: #00bfff;
  margin-bottom: 10px;
}
.tema-meta {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.tema-contenido {
  background: #1b1b1b;
  padding: 20px;
  border-radius: 10px;
  color: #eee;
  box-shadow: inset 0 0 10px #000;
}
.busqueda-form input[type="text"] {
  padding: 6px;
  width: 50%;
}
.form-respuesta textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}
.respuesta-box {
  background: #131313;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.respuesta-autor {
  color: #0ff;
}
.titulo-respuestas {
  color: #00bfff;
  margin-top: 30px;
}


    * {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
  }

  .post-content, .comentario, .contenido-usuario, .bloque-mensaje, .user-text {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

img[style] {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}


figure, .content-area img, .editor-content img, .post img {
  max-width: 100%;
  height: auto;
}

/* 🎬 Estilo para videos */
video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background-color: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  outline: none;
  margin-bottom: 16px;
  border: 2px solid #007acc;
}



/* Remove inner blue focus ring on click */
video:focus {
  outline: none;
}

/* Opcional: si quieres que el contenedor tenga margen inferior */
video, audio {
  margin-bottom: 1rem;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  padding-top: 25px;
  height: 0;
  overflow: hidden;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
