/* Shared layout — Etsy Listing SEO Copilot site */

.site-header-inner {
  min-height: 3.5rem;
}

.site-main {
  flex: 1;
}

.site-footer-inner {
  min-height: 3rem;
}

.screenshot-card img {
  display: block;
}

.extension-bridge {
  border-color: #fcd34d;
  background: #fffbeb;
}

.extension-bridge--syncing {
  border-color: #fdba74;
  background: #fff7ed;
}

.extension-bridge--success {
  border-color: #86efac;
  background: #f0fdf4;
}

.extension-bridge--error {
  border-color: #fca5a5;
  background: #fef2f2;
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e4e4e7;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  padding: 0.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.screenshot-frame--popup {
  margin-inline: auto;
  max-width: 17.5rem;
}

.screenshot-frame--panel {
  max-height: 18.5rem;
}

.screenshot-img {
  display: block;
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid rgba(228, 228, 231, 0.8);
}

.screenshot-img--panel {
  max-height: 16.75rem;
  object-fit: cover;
  object-position: top center;
}

.screenshot-fade {
  pointer-events: none;
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  height: 3.5rem;
  border-radius: 0 0 0.625rem 0.625rem;
  background: linear-gradient(to bottom, rgba(244, 244, 245, 0), #f4f4f5 88%);
}

.screenshot-fab {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  z-index: 2;
  width: 7.5rem;
  max-width: 42%;
  border-radius: 9999px;
  border: 1px solid rgba(228, 228, 231, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Idle signup modal */
.signup-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(24, 24, 27, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.signup-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.signup-modal {
  position: relative;
  width: 100%;
  max-width: 26rem;
  transform: translateY(0.75rem) scale(0.98);
  border-radius: 1rem;
  border: 1px solid rgba(241, 100, 30, 0.2);
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 22px 50px -12px rgba(241, 100, 30, 0.22);
  transition: transform 0.2s ease;
}

.signup-modal-backdrop.is-open .signup-modal {
  transform: translateY(0) scale(1);
}

.signup-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.signup-modal-close:hover {
  background: #f4f4f5;
  color: #18181b;
}

.signup-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid rgba(241, 100, 30, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #d45616;
}

.signup-modal-badge-dot {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background: #f1641e;
}

.signup-modal-title {
  margin-top: 0.875rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #18181b;
}

.signup-modal-text {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #52525b;
}

.signup-modal-plans {
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: #52525b;
}

.signup-modal-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.signup-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(to right, #f1641e, #d45616);
  padding: 0.6875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 22px 50px -12px rgba(241, 100, 30, 0.22);
  transition: filter 0.15s ease;
}

.signup-modal-cta:hover {
  filter: brightness(1.05);
}

.signup-modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #fff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3f3f46;
  text-decoration: none;
  transition: background 0.15s ease;
}

.signup-modal-secondary:hover {
  background: #f4f4f5;
}

.signup-modal-dismiss {
  margin-top: 0.75rem;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.25rem;
  font-size: 0.8125rem;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.15s ease;
}

.signup-modal-dismiss:hover {
  color: #52525b;
}

/* Account page loading overlay */
.account-loading-overlay:not(.hidden) {
  display: flex;
}

.account-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
}

.account-loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #e4e4e7;
  border-top-color: #f1641e;
  animation: account-spin 0.75s linear infinite;
}

@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}
