/*
static/css/player_edit.css

"Court Lights" Save/Cancel/Choose-file treatment for /player/<id>/edit/ -
see the "Save Button Directions" artifact reviewed before this was picked.
Two token sets, same shape/motion:
  .pl-edit-save / .pl-edit-cancel / .pl-edit-file-label - self-edit
    (player_self_edit.html, public site chrome) - static/css/base.css's
    --primary/--on-primary/--primary-rgb (Blacktop+ orange).
  .pl-edit-save--admin / .pl-edit-cancel--admin /
    .pl-edit-file-label--admin - staff full-edit (player_edit.html, admin
    console chrome) - admin_kit's own --ak-accent (cobalt), never the
    public site's orange - CLAUDE.md/admin_base.html's "deliberate
    exception to one brand everywhere": admin_kit stays in its own
    graphite/cobalt palette, nothing re-themes it to Blacktop+.

Deliberately scoped to just these two player-edit pages, not the shared
core/partials/media_upload_field.html partial team_edit.html/
league_settings.html also use for their own logo uploads - this file only
loads on the player-edit pages (league_public_base.html's unconditional
stylesheet list / player_edit.html's own {% block styles %}), so styling
that shared partial here would leave it looking for classes that never
loaded anywhere on those other pages.
*/

.pl-edit-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 20px -8px rgba(var(--primary-rgb), 0.65);
  transition: background-color 0.15s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.pl-edit-save:hover {
  background: var(--primary-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 10px 26px -6px rgba(var(--primary-rgb), 0.8);
}

.pl-edit-save:active {
  transform: scale(0.97);
}

.pl-edit-save:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.pl-edit-save:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pl-edit-save svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pl-edit-cancel {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pl-edit-cancel:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pl-edit-cancel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pl-edit-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.pl-edit-file-label:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}

.pl-edit-file-label:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.pl-edit-file-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Visually hidden but still focusable/keyboard-operable - the wrapping
   label above is what's actually seen/clicked; a screen reader or Tab
   press still reaches the real <input type="file"> inside it. */
.pl-edit-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Admin console (staff full-edit) variant - cobalt, not orange ──── */

.pl-edit-save--admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: var(--ak-radius-md);
  font-family: var(--ak-font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: var(--ak-accent);
  color: var(--ak-accent-contrast);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 20px -8px rgba(54, 103, 241, 0.65);
  transition: background-color 0.15s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.pl-edit-save--admin:hover {
  background: var(--ak-accent-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 10px 26px -6px rgba(54, 103, 241, 0.8);
}

.pl-edit-save--admin:active {
  transform: scale(0.97);
}

.pl-edit-save--admin:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.pl-edit-save--admin:focus-visible {
  outline: 2px solid var(--ak-accent);
  outline-offset: 2px;
}

.pl-edit-save--admin svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pl-edit-cancel--admin {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius-md);
  background: transparent;
  font-family: var(--ak-font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ak-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pl-edit-cancel--admin:hover {
  border-color: var(--ak-accent);
  color: var(--ak-accent);
}

.pl-edit-cancel--admin:focus-visible {
  outline: 2px solid var(--ak-accent);
  outline-offset: 2px;
}

.pl-edit-file-label--admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px dashed var(--ak-border);
  border-radius: var(--ak-radius-md);
  font-family: var(--ak-font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ak-text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.pl-edit-file-label--admin:hover {
  border-color: var(--ak-accent);
  color: var(--ak-accent);
  background: rgba(54, 103, 241, 0.06);
}

.pl-edit-file-label--admin:focus-within {
  outline: 2px solid var(--ak-accent);
  outline-offset: 2px;
  border-color: var(--ak-accent);
}

.pl-edit-file-label--admin svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Mobile admin pass: these three admin-console controls (Save/Cancel/
   Choose-photo) are custom-styled, not .ak-btn, so they sit outside the
   project's systemic .ak-btn min-height:2.75rem touch-target fix
   (static/admin/hl-admin-overrides.css) below the kit's 767px off-canvas
   breakpoint. At 42px/38px tall they're under the ~44px iOS guideline -
   bump to match, same breakpoint and floor as that systemic fix. */
@media (max-width: 767px) {
  .pl-edit-save--admin,
  .pl-edit-cancel--admin,
  .pl-edit-file-label--admin {
    min-height: 2.75rem;
  }
}
