/* Base button styles */
.apple-linker-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* Main “Continue with Apple” button (Discord-ish style) */

.apple-linker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  margin-left: auto;
  margin-right: auto;
  flex-grow: 1;
}

.dal-button--apple {
  background-color: #000 !important; /* Apple black */
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  width: 100%;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  flex: 1 1 48%;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}

.dal-button--apple:hover {
  box-shadow: -7px 0px 7px 0px rgb(145 145 145 / 45%);
  text-decoration: none;
}

.dal-button--apple:active {
  box-shadow: -7px 0px 7px 0px rgb(145 145 145 / 45%);
}

.dal-button--apple img.apple-linker-img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(1);
}

.dal-button--apple:hover img.apple-linker-img {
  filter: brightness(0.9);
}

.dal-button--apple .apple-linker-text {
  font-size: 14px;
  font-weight: 600;
}

/* Link-account button (account/settings) */
.apple-linker-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  width: 160px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.apple-linker-btn-link:hover {
  background: #111827;
}

/* Shared icon/text styling */
.apple-linker-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.apple-linker-text {
  line-height: 1;
  white-space: nowrap;
}

/* Username modal (Apple version) */
.apple-umodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483646;
}

.apple-umodal {
  background: #fff;
  color: #111827;
  border-radius: 14px;
  max-width: 420px;
  width: 92vw;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Arial, sans-serif;
}

.apple-umodal h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.apple-umodal p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #4b5563;
}

.apple-u-field {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.apple-u-field input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 14px;
}

.apple-u-field input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 1px #1118271a;
}

.apple-u-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}

.apple-u-sugs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.apple-u-sugs button {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  padding: 4px 9px;
  cursor: pointer;
}

.apple-u-sugs button:hover {
  border-color: #111827;
}

.apple-u-error {
  margin-top: 6px;
  font-size: 13px;
  color: #b91c1c;
  min-height: 1em;
}

.apple-u-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.apple-u-btn-primary {
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 14px;
  padding: 9px 16px;
  cursor: pointer;
}

.apple-u-btn-primary:hover {
  background: #000;
}

.apple-u-btn-secondary {
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  color: #111827;
  font-size: 14px;
  padding: 9px 16px;
  cursor: pointer;
}

.apple-u-btn-secondary:hover {
  background: #e5e7eb;
}

/* Complete profile overlay (for new users) */
.apple-profile-cta-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483646;
}

.apple-profile-cta {
  background: #fff;
  color: #111827;
  border-radius: 14px;
  max-width: 420px;
  width: 92vw;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Arial, sans-serif;
}

.apple-profile-cta h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.apple-profile-cta p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #4b5563;
}

.apple-profile-cta-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.apple-profile-cta-btn-primary {
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 14px;
  padding: 9px 16px;
  cursor: pointer;
}

.apple-profile-cta-btn-primary:hover {
  background: #000;
}

.apple-profile-cta-btn-secondary {
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  color: #111827;
  font-size: 14px;
  padding: 9px 16px;
  cursor: pointer;
}

.apple-profile-cta-btn-secondary:hover {
  background: #e5e7eb;
}
