/* ==========================================================================
   StitchLand — Diseño v2 (2026-10-01)
   Se carga DESPUÉS de styles.css y solo sobrescribe/añade estilos.
   Para revertir: /servers/dockervols/nginx/scripts/revertir-diseno-v2.sh
   ========================================================================== */

/* ---- 1. Portada (hero) ---- */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0 auto 32px;
  padding: 48px 40px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75));
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.hero-logo {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.45);
  object-fit: cover;
}

.hero-season {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  margin: 10px 0 6px !important;
  font-family: 'Lobster', cursive !important;
  font-size: clamp(2.6rem, 6vw, 4rem) !important;
  font-weight: 400;
  letter-spacing: 0 !important;
  color: var(--accent);
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(251, 191, 36, 0.25);
}

.hero-tagline {
  margin: 0 0 16px;
  color: var(--text-main);
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #4ade80;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: heroPulse 2s infinite;
}

.hero-live.offline { color: #f87171; }
.hero-live.offline .hero-live-dot { background: #ef4444; animation: none; }

@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-chips span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- 2. Botones: un principal (azul) y un secundario (ámbar) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 10px;
  font: 700 0.95rem 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #1e1b0f;
  box-shadow: 0 8px 20px -6px rgba(251, 191, 36, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--glass-border);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Botones antiguos (<a><button>) con el mismo lenguaje visual */
a button {
  text-transform: none;
  letter-spacing: 0;
  border-radius: 10px;
}

/* ---- 3. Menú: una sola fila y submenú Lore ---- */
nav ul { gap: 2px; }
nav ul li a { padding: 6px 10px; }

.has-submenu { position: relative; }

@media (min-width: 993px) {
  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    display: block;
    animation: fadeIn 0.2s ease-out;
  }

  /* Puente invisible para que el submenú no se cierre al bajar el ratón */
  .has-submenu > .submenu { margin-top: 0; }
  .has-submenu > .submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }

  .submenu li a { white-space: nowrap; }
}

@media (max-width: 992px) {
  .submenu {
    position: static;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    margin: 6px 0 0;
    min-width: 0;
  }
}

.subtitle {
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ---- 4. Tarjetas: sin "salto" al pasar el ratón ---- */
.section-content:hover,
.status-card:hover {
  transform: none;
}

/* ---- 5. Bloque de conexión: monoespaciada solo en IP y puerto ---- */
.server-info p {
  font-family: 'Inter', sans-serif;
}

.server-info code {
  font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ---- 6. Staff en cuadrícula (2-3 por fila en escritorio) ---- */
#staff-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.staff-card-premium {
  flex-direction: column;
  text-align: center;
  padding: 24px 18px;
}

.staff-card-premium:hover {
  transform: translateY(-6px);
}

.staff-visual {
  flex: 0 0 auto;
  height: 160px;
}

.card-glow {
  left: 50%;
  top: 30%;
}

.staff-details {
  padding-left: 0;
  text-align: center;
  margin-top: 14px;
}

.name-label {
  font-size: 1.3rem;
}

.bio-text {
  font-size: 0.85rem;
}

.staff-container {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

/* ---- 7. Galería: álbumes con portada ---- */
.gallery-item.album-card {
  cursor: pointer;
  aspect-ratio: 16 / 10;
}

.album-card img {
  filter: brightness(0.75);
}

.album-card:hover img {
  filter: brightness(0.95);
}

.album-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), transparent);
  text-align: left;
}

.album-label h4 {
  margin: 0;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.gallery-item:not(.album-card) { cursor: zoom-in; }

/* ---- 8. Footer al final de la página (ya no fijo) ---- */
footer {
  position: static;
  background: rgba(2, 6, 23, 0.85);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 18px 16px;
}

.main-content {
  padding-bottom: 40px;
}

/* ---- Móvil ---- */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 32px 20px;
  }

  .hero-logo { width: 110px; height: 110px; }
  .hero-actions, .hero-chips { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---- 3b. Menú en una sola fila en escritorio ---- */
@media (min-width: 993px) {
  .header-container { max-width: 1320px; gap: 8px; }
  .logo-container { margin-right: 12px; }
  .logo-container img { width: 52px; height: 52px; }
  #main-nav { margin-left: auto; }
  nav ul { flex-wrap: nowrap; }
  nav ul li a { font-size: 0.8rem; padding: 6px 8px; white-space: nowrap; }
  .main-content { padding-top: 110px; }
}

@media (min-width: 993px) and (max-width: 1240px) {
  .subtitle { display: none; }
}

/* Menú móvil: scroll si los submenús abiertos no caben */
@media (max-width: 992px) {
  nav {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 80px 0 40px;
  }
}
