/* ── WeissGuitar Learn — Auth Styles ─────────────────────────────────── */

/* Loading overlay — shown while verifying token */
#wg-auth-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050510;
  transition: opacity 0.3s ease;
}

#wg-auth-loading .wg-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#wg-auth-loading .wg-loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(96, 54, 232, 0.2);
  border-top-color: #6036e8;
  border-radius: 50%;
  animation: wgSpin 0.8s linear infinite;
}

#wg-auth-loading .wg-loader-text {
  color: #9b8fc4;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@keyframes wgSpin {
  to { transform: rotate(360deg); }
}

/* Content hidden until authenticated */
.lesson-content {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Locked overlay */
.wg-locked-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.wg-locked-card {
  text-align: center;
  max-width: 480px;
  padding: 48px 40px;
  background: rgba(18, 14, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(20px);
}

.wg-locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(96, 54, 232, 0.1);
  margin-bottom: 24px;
}

.wg-locked-icon svg {
  stroke: #6036e8;
}

.wg-locked-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f0eef6;
  margin-bottom: 12px;
}

.wg-locked-card p {
  color: #9b8fc4;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.wg-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: linear-gradient(135deg, #6036e8, #7c5ce8);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wg-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 54, 232, 0.3);
}

.wg-back-link {
  display: block;
  margin-top: 16px;
  color: #5c5480;
  font-size: 0.85rem;
  text-decoration: none;
}

.wg-back-link:hover {
  color: #9b8fc4;
}

/* API error notice */
.wg-api-notice {
  padding: 16px 24px;
  margin: 20px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  text-align: center;
}

.wg-api-notice p {
  color: #fbbf24;
  font-size: 0.9rem;
}

.wg-api-notice a {
  color: #fbbf24;
  text-decoration: underline;
}

/* User menu in header */
#wg-user-menu {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

#wg-user-name {
  display: none;
  color: #9b8fc4;
  font-size: 0.85rem;
  font-weight: 500;
}

#wg-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6036e8, #ca3fa0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

#wg-logout-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9b8fc4;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

#wg-logout-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0eef6;
}

#wg-login-btn {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 18px;
  background: linear-gradient(135deg, #6036e8, #7c5ce8);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

#wg-login-btn:hover {
  transform: translateY(-1px);
}
