/*
 * ALPHA FITNESS — AVATAR UPLOAD MODAL STYLES
 * Refactor: 2026-06-02
 */

.alpha-avatar-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.alpha-avatar-modal {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(57, 255, 20, 0.05);
}

.alpha-avatar-head {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1a1a1a;
  background: linear-gradient(135deg,
    rgba(57, 255, 20, 0.06) 0%,
    rgba(57, 255, 20, 0.01) 100%);
}

.alpha-avatar-head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.alpha-avatar-close {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition:
    background var(--t-fast, 150ms) var(--ease-out, ease),
    border-color var(--t-fast, 150ms) var(--ease-out, ease),
    transform var(--t-fast, 150ms) var(--ease-out, ease);
}
.alpha-avatar-close:hover {
  background: #39ff14;
  color: #000;
  border-color: #39ff14;
  transform: rotate(90deg);
}

.alpha-avatar-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  overflow-y: auto;
}

.alpha-avatar-preview {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #1a1a1a;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.2),
              0 8px 24px rgba(0, 0, 0, 0.6);
}

.alpha-avatar-dropzone {
  width: 100%;
  padding: 28px 20px;
  border: 2px dashed #333;
  border-radius: 12px;
  background: #050505;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--t-fast, 150ms) var(--ease-out, ease),
    background var(--t-fast, 150ms) var(--ease-out, ease);
}
.alpha-avatar-dropzone:hover,
.alpha-avatar-dropzone.drag {
  border-color: #39ff14;
  background: rgba(57, 255, 20, 0.04);
}

.alpha-avatar-msg {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  animation: ax-fade-in var(--t-normal, 250ms) var(--ease-out, ease) both;
}
.alpha-avatar-msg.is-error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff8b8b;
}
.alpha-avatar-msg.is-ok {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: #39ff14;
}

.alpha-avatar-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.alpha-avatar-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--t-fast, 150ms) var(--ease-out, ease);
}
.alpha-avatar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.alpha-avatar-btn.primary {
  background: linear-gradient(135deg, #39ff14, #2ecc00);
  border: none;
  color: #000;
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.25);
}
.alpha-avatar-btn.primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(57, 255, 20, 0.4);
}
.alpha-avatar-btn.outline {
  background: transparent;
  border: 1px solid #333;
  color: #ccc;
}
.alpha-avatar-btn.outline:not(:disabled):hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

@media (max-width: 480px) {
  .alpha-avatar-modal { border-radius: 14px; max-height: 92vh; }
  .alpha-avatar-head { padding: 14px 16px; }
  .alpha-avatar-body { padding: 18px 16px; gap: 14px; }
  .alpha-avatar-preview { width: 130px; height: 130px; }
}
