/* WC User Avatar Manager — Account Page CSS */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --wcua-bg:      #0d0d14;
  --wcua-card:    #14141e;
  --wcua-border:  #1e1e2e;
  --wcua-accent:  #7c3aed;
  --wcua-acc2:    #a78bfa;
  --wcua-text:    #e2e8f0;
  --wcua-muted:   #64748b;
  --wcua-success: #10b981;
  --wcua-danger:  #ef4444;
}

.wcua-account-wrap {
  font-family: 'DM Sans', sans-serif;
  max-width: 680px;
  color: var(--wcua-text);
}

/* ── Current Avatar ──────────────────────────────────────────────────── */
.wcua-current-avatar {
  display: flex; align-items: center; gap: 20px;
  background: var(--wcua-card); border: 1px solid var(--wcua-border);
  border-radius: 16px; padding: 24px 28px; margin-bottom: 20px;
}
.wcua-avatar-ring {
  position: relative; flex-shrink: 0; cursor: pointer;
}
.wcua-avatar-ring img,
.wcua-avatar-ring .wcua-initials-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  display: block; transition: filter .2s;
}
.wcua-initials-avatar {
  background: linear-gradient(135deg, var(--wcua-accent), var(--wcua-acc2));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: #fff;
}
.wcua-ring-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); display: flex; align-items: center;
  justify-content: center; opacity: 0; transition: opacity .2s;
}
.wcua-ring-overlay span { color: #fff; font-size: 12px; font-weight: 700; }
.wcua-avatar-ring:hover .wcua-ring-overlay { opacity: 1; }
.wcua-avatar-ring:hover img,
.wcua-avatar-ring:hover .wcua-initials-avatar { filter: brightness(.7); }

.wcua-current-info h3 { margin: 0; font-size: 20px; font-weight: 800; }
.wcua-type-badge {
  display: inline-block; margin-top: 8px;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.wcua-type--upload  { background: rgba(37,99,235,.15); color: #60a5fa; }
.wcua-type--preset  { background: rgba(124,58,237,.15); color: var(--wcua-acc2); }
.wcua-type--gravatar{ background: rgba(16,185,129,.15); color: var(--wcua-success); }
.wcua-type--none    { background: rgba(100,116,139,.1); color: var(--wcua-muted); }

/* ── Tabs ────────────────────────────────────────────────────────────── */
.wcua-tabs {
  display: flex; gap: 2px;
  background: var(--wcua-card); border: 1px solid var(--wcua-border);
  border-radius: 12px 12px 0 0; overflow: hidden;
}
.wcua-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border: none; background: transparent;
  color: var(--wcua-muted); font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s;
}
.wcua-tab svg { width: 16px; height: 16px; }
.wcua-tab:hover { color: var(--wcua-acc2); }
.wcua-tab.active { color: var(--wcua-accent); border-bottom-color: var(--wcua-accent); background: rgba(124,58,237,.06); }

/* ── Panels ──────────────────────────────────────────────────────────── */
.wcua-panel {
  display: none;
  background: var(--wcua-card); border: 1px solid var(--wcua-border);
  border-top: none; border-radius: 0 0 12px 12px; padding: 24px;
}
.wcua-panel.active { display: block; }

/* ── Dropzone ────────────────────────────────────────────────────────── */
.wcua-dropzone {
  border: 2px dashed var(--wcua-border); border-radius: 12px;
  padding: 36px 20px; text-align: center; cursor: pointer;
  transition: all .2s;
}
.wcua-dropzone:hover,
.wcua-dropzone.drag-over { border-color: var(--wcua-accent); background: rgba(124,58,237,.04); }

.wcua-dropzone-icon svg { width: 56px; height: 56px; color: var(--wcua-muted); margin-bottom: 12px; }
.wcua-dropzone-title { margin: 0; font-size: 15px; font-weight: 700; }
.wcua-dropzone-sub {
  margin: 6px 0 0; color: var(--wcua-muted); font-size: 13px;
}
.wcua-browse-btn {
  background: none; border: none; color: var(--wcua-accent);
  font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
  text-decoration: underline; padding: 0;
}

/* ── File preview (before upload) ────────────────────────────────────── */
.wcua-file-preview {
  display: flex; align-items: center; gap: 14px;
  background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2);
  border-radius: 10px; padding: 12px 16px; margin-top: 14px;
}
.wcua-file-preview img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wcua-clear-file { background: none; border: none; color: var(--wcua-muted); cursor: pointer; font-size: 18px; margin-left: auto; }

/* ── Progress ────────────────────────────────────────────────────────── */
.wcua-progress { height: 4px; background: var(--wcua-border); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.wcua-progress-bar { height: 100%; width: 0%; background: var(--wcua-accent); border-radius: 4px; transition: width .3s; }

/* ── Preset Style Row ────────────────────────────────────────────────── */
.wcua-preset-style-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.wcua-preset-style-row label { font-size: 13px; font-weight: 600; color: var(--wcua-muted); white-space: nowrap; }
.wcua-select {
  border: 1px solid var(--wcua-border); border-radius: 8px;
  padding: 8px 12px; background: var(--wcua-bg); color: var(--wcua-text);
  font-family: inherit; font-size: 13px; outline: none;
}

/* ── Preset Grid ─────────────────────────────────────────────────────── */
.wcua-preset-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.wcua-preset-item {
  cursor: pointer; border-radius: 12px; padding: 10px 8px; text-align: center;
  border: 2px solid var(--wcua-border); transition: all .15s;
}
.wcua-preset-item:hover { border-color: var(--wcua-acc2); transform: scale(1.04); }
.wcua-preset-item.selected { border-color: var(--wcua-accent); background: rgba(124,58,237,.1); transform: scale(1.06); }
.wcua-preset-item img { width: 52px; height: 52px; border-radius: 50%; display: block; margin: 0 auto; }
.wcua-preset-item span { display: block; font-size: 10px; color: var(--wcua-muted); margin-top: 6px; }

/* ── Actions ─────────────────────────────────────────────────────────── */
.wcua-actions { display: flex; gap: 10px; margin-top: 20px; }
.wcua-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px; font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer; border: none; transition: all .2s;
}
.wcua-btn--primary { background: var(--wcua-accent); color: #fff; }
.wcua-btn--primary:hover:not(:disabled) { background: #6d28d9; }
.wcua-btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.wcua-btn--danger { background: transparent; border: 1px solid var(--wcua-danger); color: var(--wcua-danger); }
.wcua-btn--danger:hover { background: var(--wcua-danger); color: #fff; }

/* ── Notice ──────────────────────────────────────────────────────────── */
.wcua-notice {
  margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.wcua-notice--success { background: rgba(16,185,129,.12); color: var(--wcua-success); border: 1px solid rgba(16,185,129,.25); }
.wcua-notice--error   { background: rgba(239,68,68,.1);   color: var(--wcua-danger);  border: 1px solid rgba(239,68,68,.2); }

/* ── Mini Avatar (navigation) ────────────────────────────────────────── */
.wcua-mini-avatar-wrap { margin: 12px 0; text-align: center; }
.wcua-mini-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--wcua-accent); }
.wcua-mini-initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--wcua-accent), var(--wcua-acc2));
  color: #fff; font-size: 22px; font-weight: 800;
}

/* ── Sidebar Avatar Kartı (sol panel üstü) ───────────────────────────── */
.wcua-sidebar-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.wcua-sidebar-avatar-link {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 3px solid var(--wcua-accent);
  transition: border-color .2s;
  text-decoration: none;
}
.wcua-sidebar-avatar-link:hover { border-color: var(--wcua-acc2); }

.wcua-sidebar-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.wcua-sidebar-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wcua-accent), var(--wcua-acc2));
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  border-radius: 50%;
}

.wcua-sidebar-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  border-radius: 50%;
}
.wcua-sidebar-avatar-overlay span {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.wcua-sidebar-avatar-link:hover .wcua-sidebar-avatar-overlay { opacity: 1; }

.wcua-sidebar-avatar-info {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wcua-sidebar-avatar-info strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.wcua-sidebar-avatar-info span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
