/* ==========================================
   BASES Y CONFIGURACIÓN GENERAL
   ========================================== */

body {
  background-color: #0e0a12;
  color: #e0e0e0;
  font-family: "Courier New", Courier, monospace;
  
  /* Fondo general con patrón + Fuego fijo en la parte inferior */
  background-image: url("/images/bgstars.png"), url("/images/fire.gif");
  background-size: 10% auto, auto 120px;
  background-repeat: repeat, repeat-x;
  background-position: top left, bottom;
  background-attachment: scroll, fixed;
  
  margin: 0;
  padding: 0;
  padding-bottom: 140px; /* Margen para que el fuego fijo no tape el final de la página */
  text-shadow: 0 0 3px rgba(0, 255, 102, 0.3);
}

/* MARCO PRINCIPAL DEL PERFIL */
.contenedor-steam {
  width: 90%;
  max-width: 980px;
  margin: 40px auto;
  background-color: rgba(20, 12, 24, 0.9);
  border: 2px solid #632e4a;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
  padding: 20px;
}

/* ==========================================
   CABECERA DEL PERFIL (Avatar, Nombre, Nivel)
   ========================================== */

.steam-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(90deg, #2b1220 0%, #150914 100%);
  border: 2px solid #865564;
  padding: 20px;
  margin-bottom: 25px;
}

.user-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.avatar-frame {
  width: 120px;
  height: 120px;
  border: 3px solid #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details h1 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: #ffffff;
  text-shadow: 2px 2px #000;
}

.user-details .location {
  color: #a04f68;
  font-size: 13px;
  margin-bottom: 10px;
}

.user-details .bio {
  color: #bd8ba9;
  font-size: 14px;
  margin: 0;
}

.level-box {
  text-align: right;
}

.level-badge {
  display: inline-block;
  border: 2px solid #00ff66;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: #00ff66;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

/* ==========================================
   DISPOSICIÓN EN 2 COLUMNAS
   ========================================== */

.steam-body {
  display: flex;
  gap: 25px;
}

.col-izquierda {
  flex: 1;
}

.col-derecha {
  width: 260px;
}

/* ==========================================
   COLUMNA IZQUIERDA (Expositores y Comentarios)
   ========================================== */

.expositor {
  background-color: #1a0f18;
  border: 2px solid #4a2135;
  margin-bottom: 20px;
  padding: 15px;
}

.expositor img {
  display: block;
  margin: 15px auto;
  max-width: 100%; /* Evita que la imagen se salga si la pantalla es pequeña */
  height: auto;
  border: 1px solid #4a2135; /* Opcional: le da el borde tipo Steam a las fotos */
}

.expositor-titulo {
  font-size: 14px;
  color: #bd8ba9;
  border-bottom: 1px solid #4a2135;
  padding-bottom: 8px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.game-card {
  background: #110812;
  border: 1px solid #632e4a;
  padding: 10px;
  margin-bottom: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.game-card img {
  width: 120px;
  height: 55px;
  object-fit: cover;
  border: 1px solid #865564;
}

.game-info {
  flex: 1;
}

.game-info h3 {
  margin: 0 0 5px 0;
  font-size: 15px;
  color: #00ff66;
}

.game-info p {
  margin: 0;
  font-size: 12px;
  color: #888;
}

/* SECCIÓN DE COMENTARIOS */
.comments-section {
  background-color: #1a0f18;
  border: 2px solid #4a2135;
  margin-top: 20px;
}

.comments-header {
  background-color: #122928;
  border-bottom: 1px solid #1d4d4a;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #62d8ca;
}

.subscribe-checkbox {
  font-size: 12px;
  color: #88a8a4;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-input-area {
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: #110812;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid #865564;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-input {
  flex: 1;
  background-color: #1a0f18;
  border: 1px solid #4a2135;
  color: #888;
  padding: 10px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  resize: vertical;
  min-height: 40px;
  outline: none;
}

.comment-input:focus {
  border-color: #00ff66;
  color: #fff;
}

/* ==========================================
   COLUMNA DERECHA (Estado, Menú, Amigos)
   ========================================== */

.status-box {
  font-size: 16px;
  color: #ff3344;
  margin-bottom: 15px;
  font-weight: bold;
}

.sidebar-section {
  background-color: #140a13;
  border: 1px solid #4a2135;
  padding: 12px;
  margin-bottom: 15px;
}

.sidebar-title {
  font-size: 13px;
  color: #bd8ba9;
  margin-bottom: 10px;
}

.badges-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-item {
  width: 40px;
  height: 40px;
  background-color: #2b1220;
  border: 1px solid #865564;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}


.sidebar-links span {
  color: #865564;
}

/* SECCIÓN DE AMIGOS */
.friends-section {
  background-color: #140a13;
  border: 1px solid #4a2135;
  padding: 12px;
  margin-top: 15px;
}

.friends-title {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 12px;
}

.friends-title span {
  color: #865564;
  font-size: 18px;
  margin-left: 5px;
}

.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.friend-avatar-container {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.friend-avatar {
  width: 100%;
  height: 100%;
  border: 1px solid #4a2135;
  object-fit: cover;
}

.friend-avatar.online {
  border: 1px solid #00ff66;
}

.friend-info {
  flex: 1;
  overflow: hidden;
}

.friend-name {
  font-size: 12px;
  color: #88a8a4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}

.friend-name.online {
  color: #00ff66;
}

.friend-status {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-level {
  width: 22px;
  height: 22px;
  border: 1px solid #865564;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #e0e0e0;
  flex-shrink: 0;
}

/* BOTONES RETRO */
.boton {
  display: block;
  background-color: #000000;
  color: #00ff66;
  border: 2px solid #00ff66;
  padding: 8px 16px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 3px 3px 0px #005522;
  text-align: center;
  transition: all 0.1s ease;
}

.boton:hover {
  background-color: #00ff66;
  color: #000000;
  cursor: pointer;
  box-shadow: 1px 1px 0px #000000;
  transform: translate(2px, 2px);
}

/* ==========================================
   DIÁLOGOS DE PERSONAJES
   ========================================== */

.nereD, .miaD, .roseD, .aliceD, .dartD, .dsusD, .thornD, .danD {
  font-family: "Comic Sans MS", "Comic Sans", sans-serif;
  font-size: 16px;
  text-shadow: -2px 0 #222034, 2px 0 #222034, 0 -2px #222034, 0 2px #222034;
  padding: 8px 12px;
  margin: 10px 0;
  border: 4px double #222034;
  box-shadow: 4px 4px 0px #000000;
  display: flex;
  align-items: center;
}

.nereD::before { content: ""; display: inline-block; width: 40px; height: 40px; background: url("/images/nere.png") no-repeat center/contain; margin-right: 8px; flex-shrink: 0; }
.nereD { color: #e7d7fe; background-color: #9684c4; }

.miaD::before { content: ""; display: inline-block; width: 40px; height: 40px; background: url("/images/mia.png") no-repeat center/contain; margin-right: 8px; flex-shrink: 0; }
.miaD { color: #ffe0cd; background-color: #815452; }

.roseD::before { content: ""; display: inline-block; width: 40px; height: 40px; background: url("/images/rose.png") no-repeat center/contain; margin-right: 8px; flex-shrink: 0; }
.roseD { color: #a46654; background-color: #764447; }

.aliceD::before { content: ""; display: inline-block; width: 40px; height: 40px; background: url("/images/alice.png") no-repeat center/contain; margin-right: 8px; flex-shrink: 0; }
.aliceD { color: #dae8f9; background-color: #a2afe4; }

.dartD::before { content: ""; display: inline-block; width: 40px; height: 40px; background: url("/images/dart.png") no-repeat center/contain; margin-right: 8px; flex-shrink: 0; }
.dartD { color: #ffb6a6; background-color: #d86c5d; }

.dsusD::before { content: ""; display: inline-block; width: 40px; height: 40px; background: url("/images/dan sus.png") no-repeat center/contain; margin-right: 8px; flex-shrink: 0; }
.dsusD { color: #ff6565; background-color: #d53665; }

.thornD::before { content: ""; display: inline-block; width: 40px; height: 40px; background: url("/images/thorn.png") no-repeat center/contain; margin-right: 8px; flex-shrink: 0; }
.thornD { color: #a76e6a; background-color: #764549; }

.danD::before { content: ""; display: inline-block; width: 40px; height: 40px; background: url("/images/dan.png") no-repeat center/contain; margin-right: 8px; flex-shrink: 0; }
.danD { color: #f3c5ae; background-color: #3f8f78; }