/* ============================================================
   smgr · css/pages/viz_influencia_top.css — DISEÑO DE LA TARJETA capturable de
   "Top 20 influencia sobre el marcador" (visualizacion_influencia_top.php).
   Portado 1:1 del clásico, con TODO scopeado bajo #captureArea. Sin
   `body{background}` ni reset global (los aporta viz.css). Ancho fijo 900px.
   ============================================================ */

#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: 900px;
}
#captureArea * { box-sizing: border-box; }

/* ---------- Cabecera de la tarjeta ---------- */
#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: 28px; font-weight: 800; margin: 0; position: relative; z-index: 1; }
#captureArea .header p { font-size: 14px; opacity: 0.9; margin-top: 5px; position: relative; z-index: 1; }

/* ---------- Info de criterios ---------- */
#captureArea .criteria-info {
  background: #f8f9fa;
  padding: 6px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* ---------- Tabla ---------- */
#captureArea .content { padding: 0; }
#captureArea .table-header {
  background: #2d3748;
  color: #fff;
  padding: 5px;
  display: grid;
  grid-template-columns: 40px 100px 250px 60px 80px 80px 90px;
  gap: 10px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
#captureArea .table-header > div:nth-child(3) { text-align: left; }

#captureArea .player-row {
  display: grid;
  grid-template-columns: 40px 100px 250px 60px 80px 80px 90px;
  gap: 10px;
  padding: 5px;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
  font-size: 13px;
  text-align: center;
}
#captureArea .player-row > div:nth-child(3) { text-align: left; }
#captureArea .player-row:nth-child(even) { background: #f8f9fa; }

#captureArea .rank { font-weight: 800; font-size: 16px; color: #2d3748; text-align: center; }
#captureArea .team-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
#captureArea .team-shield {
  width: 32px;
  height: 36px;
  border-radius: 6px;
  border: 2px solid #e2e8f0;
}
#captureArea .team-abbr { font-weight: 600; font-size: 12px; color: #4a5568; }
#captureArea .player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
#captureArea .player-photo {
  width: 32px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
}
#captureArea .player-name { font-weight: 600; font-size: 14px; color: #2d3748; }
#captureArea .minutes { font-size: 12px; color: #6b7280; }

#captureArea .stat-value { font-weight: 600; font-size: 13px; }
#captureArea .stat-value.positive { color: #059669; }
#captureArea .stat-value.negative { color: #dc2626; }
#captureArea .stat-value.neutral { color: #6b7280; }

#captureArea .influence-value { font-weight: 800; font-size: 16px; }
#captureArea .influence-value.high { color: #059669; }
#captureArea .influence-value.low { color: #dc2626; }

#captureArea .empty-state {
  padding: 30px 15px;
  text-align: center;
  color: #718096;
  font-size: 14px;
  font-weight: 600;
}

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