/* Accounts UI tokens & components for wow4everbis.com */

.acc-widget {
  position: relative;
  display: inline-block;
}

.acc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 14px 4px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.acc-trigger:hover,
.acc-trigger[aria-expanded="true"] {
  border-color: var(--gold);
  background: var(--panel);
}

.acc-trigger-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--gold);
  flex-shrink: 0;
}

.acc-trigger-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.acc-trigger-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.acc-trigger-sub {
  font-size: 11px;
  color: var(--muted);
}

.acc-trigger-chevron {
  color: var(--muted);
  transition: transform 0.15s ease;
  margin-left: 2px;
}

.acc-trigger[aria-expanded="true"] .acc-trigger-chevron {
  transform: rotate(180deg);
}

/* Panel */
.acc-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  padding: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acc-panel[hidden] {
  display: none !important;
}

.acc-panel-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0;
}

.acc-panel-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.acc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.acc-btn-bnet {
  background: var(--gold);
  color: #0c111f;
  border: none;
}

.acc-btn-bnet:hover {
  background: #e2ceaf;
  text-decoration: none;
}

.acc-btn-discord {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.acc-btn-discord:hover {
  border-color: var(--accent);
  background: #20314a;
  text-decoration: none;
}

.acc-rule {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.acc-feature-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.acc-feature-row:hover {
  background: var(--panel);
  text-decoration: none;
}

.acc-feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--gold);
  flex-shrink: 0;
}

.acc-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.03em;
}

.acc-feature-row:hover .acc-feature-title {
  color: var(--gold);
}

.acc-feature-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

/* Signed in character list */
.acc-char-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.acc-char-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.acc-char-item:hover {
  border-color: var(--gold);
  text-decoration: none;
}

.acc-char-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.acc-char-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.acc-char-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-char-meta {
  font-size: 11px;
  color: var(--muted);
}

.acc-menu-link {
  display: block;
  text-align: center;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.acc-menu-link:hover {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

.acc-menu-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.acc-menu-btn:hover {
  color: var(--text);
  border-color: var(--gold);
}

.acc-empty-chars {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px;
}

/* Phone screen full width under header */
@media (max-width: 760px) {
  .acc-trigger {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    justify-content: center;
  }
  .acc-trigger-text,
  .acc-trigger-chevron {
    display: none;
  }
  .acc-trigger-icon {
    width: 100%;
    height: 100%;
    background: transparent;
  }

  .acc-panel {
    position: fixed;
    top: var(--hd-h);
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 var(--radius) var(--radius);
    border-left: none;
    border-right: none;
    max-height: calc(100vh - var(--hd-h) - 20px);
    overflow-y: auto;
  }
}
