/* ===== Fondo de pantalla y centrado ===== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* alineado hacia arriba */
  padding-top: 80px;       /* ajusta para subir más */
  background-color: #000;  /* fondo negro */

  /* Opcional: pattern estilo Telegram */
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://neuronexul.github.io/telegram-patterns/patterns/pattern-5.svg') repeat;
  opacity: 0.9;  /* 🔹 Muy visible al inicio */
  pointer-events: none;
  z-index: 0;
  background-size: auto; /* Ajusta el tamaño del pattern */
}

/* ===== Simulador ===== */
#simulator {
  width: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(44, 47, 51, 0.9); /* semitransparente */
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-align: center;
  color: white;
  position: relative;
  padding: 24px 16px;
  backdrop-filter: blur(6px);
  transform: translateY(-20px); /* pequeño ajuste hacia arriba */
  z-index: 1; /* por encima del pattern */
}

#closeBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  transition: 0.2s;
}
#closeBtn svg:hover { fill: #dddddd; }

#simulator img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 2px solid #0088cc;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  object-fit: cover;
}

.channel-name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.channel-name .verified {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.channel-sub {
  font-size: 14px;
  color: #aaaaaa;
  margin-bottom: 8px;
}

.channel-subscribers {
  font-size: 14px;
  color: #aaaaaa;
  margin-bottom: 24px;
}

/* ===== Botón Compartir con resplandor ===== */
#shareBtn {
  width: 100%;                  
  max-width: 100%;              
  box-sizing: border-box;       
  padding: 14px;
  background: #0088cc;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;             
  text-decoration: none;
  
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;          
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: background 0.3s;
}

#shareBtn:hover {
  background: #007ab8;
}

/* Resplandor animado */
#shareBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;                    
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0%   { left: -75%; }
  60%  { left: 125%; }
  100% { left: 125%; }
}

/* ===== Mensaje debajo del botón ===== */
#message {
  font-size: 12px;
  color: #bbbbbb;
  margin-top: 6px;
  line-height: 1.3;
  text-align: center;
  word-wrap: break-word;
}
