/* nav-starfyre-auth.css — StarFyre Nav Button and Authentication Modal */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-starfyre {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-starfyre:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.btn-starfyre.signed-in {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
}

.btn-starfyre.signed-in:hover {
  background: rgba(52, 211, 153, 0.24);
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
  transform: translateY(-1px);
}

/* Modal styles */
.sf-auth-overlay[hidden] {
  display: none !important;
}

.sf-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px;
}

.sf-auth-dialog {
  position: relative;
  width: min(560px, 96vw);
  background: #0c1018;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(32, 205, 228, 0.22);
  display: flex;
  flex-direction: column;
  animation: sfFadeIn 0.2s ease-out;
}

@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sf-auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.sf-auth-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.sf-auth-sparkle {
  color: #38bdf8;
  font-size: 1.1rem;
}

.sf-auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sf-auth-popout {
  font-size: 0.75rem;
  color: #38bdf8;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sf-auth-popout:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #fff;
}

.sf-auth-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.sf-auth-close:hover {
  color: #fff;
}

.sf-auth-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 1rem;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.sf-auth-frame-wrap {
  width: 100%;
  height: 480px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: #080d16;
}

.sf-auth-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
