/* ============================================================
   smgr · css/pages/viz_jornadas_200.css — DISEÑO DE LA TARJETA capturable
   de "Jornadas por encima de 200 puntos" (visualizacion_jornadas_200.php).
   Portado 1:1 del smgr/visualizacion_jornadas_200.php clásico, con TODO
   scopeado bajo #captureArea (no colisiona con el chrome "Foco").
   Tabla blanca, cabecera azul, pie oscuro. Ancho natural 1100px. Sin
   `body{background}` ni reset global.
   ============================================================ */

#captureArea {
  font-family: 'Inter', sans-serif;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 1100px;
}
#captureArea * { box-sizing: border-box; }

/* ---------- Cabecera ---------- */
#captureArea .header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff;
  padding: 10px;
  text-align: center;
  position: relative;
}
#captureArea .header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23000" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}
#captureArea .logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
#captureArea .logo {
  width: 91px; height: 69px;
  background: #fff;
  border-radius: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.3);
  overflow: hidden;
}
#captureArea .logo img { width: 100%; height: 100%; object-fit: contain; }
#captureArea .header h1 { font-size: 26px; font-weight: 800; position: relative; z-index: 1; }
#captureArea .header p { font-size: 14px; opacity: 0.9; margin-top: 5px; position: relative; z-index: 1; }

/* ---------- Barra de destacados ---------- */
#captureArea .highlight-bar {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  padding: 8px 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 13px;
  font-weight: 600;
}
#captureArea .highlight-bar span { opacity: 0.9; }
#captureArea .highlight-bar strong { font-size: 16px; }

/* ---------- Tabla ---------- */
#captureArea .content { padding: 0; }
#captureArea .table-header {
  background: #2d3748;
  color: #fff;
  padding: 8px;
  display: grid;
  grid-template-columns: 40px 150px 170px 60px 50px 80px 80px 120px 80px 90px;
  gap: 8px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
#captureArea .table-header > div:nth-child(2),
#captureArea .table-header > div:nth-child(3) {
  text-align: left;
  padding-left: 10px;
}
#captureArea .table-row {
  display: grid;
  grid-template-columns: 40px 150px 170px 60px 50px 80px 80px 120px 80px 90px;
  gap: 8px;
  padding: 7px 8px;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}
#captureArea .table-row:nth-child(even) { background: #f8fafc; }
#captureArea .table-row > div { text-align: center; }
#captureArea .table-row > div:nth-child(2),
#captureArea .table-row > div:nth-child(3) {
  text-align: left;
  padding-left: 10px;
}

#captureArea .rank-cell { font-weight: 800; font-size: 15px; color: #2c5282; }
#captureArea .user-info { display: flex; align-items: center; gap: 8px; }
#captureArea .user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}
#captureArea .username { font-weight: 700; color: #2d3748; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#captureArea .team-name { font-weight: 600; color: #4a5568; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#captureArea .jornadas-cell { font-weight: 800; font-size: 18px; color: #059669; }
#captureArea .pct-cell { font-size: 12px; color: #6b7280; }
#captureArea .avg-cell { color: #4a5568; }
#captureArea .max-cell { font-weight: 700; color: #b45309; }
#captureArea .streak-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; }
#captureArea .streak-length { font-weight: 800; font-size: 16px; color: #7c3aed; }
#captureArea .streak-range { font-size: 10px; color: #6b7280; font-weight: 500; }
#captureArea .position-cell { font-weight: 700; color: #2c5282; }
#captureArea .broker-cell { font-weight: 700; color: #2d3748; font-size: 12px; }
#captureArea .medal { font-size: 14px; }

/* ---------- Pie ---------- */
#captureArea .footer {
  background: #2d3748;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
}
#captureArea .social-links { margin-top: 5px; font-size: 12px; opacity: 0.9; }
