/* =============================================================================
   AUTH STYLES - ParlayBuilder

   Styles for authentication UI elements:
   - Login/logout buttons
   - User menu dropdown
   - Auth prompts
   ============================================================================= */

/* Hide all auth UI while login is disabled */
.navbar-profile { display: none !important; }
.landing-nav .auth-menu { display: none !important; }

/* =============================================================================
   AUTH BUTTON (Login/Profile)
   ============================================================================= */
.auth-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--theme-accent, #00D3BD);
  background: transparent;
  color: var(--theme-accent, #00D3BD);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: rgba(0, 211, 189, 0.1);
  box-shadow: 0 0 12px rgba(0, 211, 189, 0.2);
}

.auth-btn--primary {
  background: var(--theme-gradient-primary, linear-gradient(135deg, #00F5D4 0%, #00D3BD 50%, #00AD84 100%));
  color: #000;
  border: none;
}

.auth-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 211, 189, 0.3);
}

/* =============================================================================
   USER AVATAR
   ============================================================================= */
.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-gradient-primary, linear-gradient(135deg, #00D3BD 0%, #00AD84 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
}

.auth-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* =============================================================================
   USER MENU DROPDOWN
   ============================================================================= */
.auth-menu {
  position: relative;
}

.auth-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-menu__trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 211, 189, 0.3);
}

.auth-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px 0;
  background: var(--bg-base, #0a1628);
  border: 1px solid rgba(0, 211, 189, 0.2);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 211, 189, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.auth-menu--open .auth-menu__dropdown,
.auth-menu__dropdown.auth-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-menu__header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-menu__email {
  font-size: 13px;
  color: var(--ink-60, #b4d7c4);
  word-break: break-all;
}

.auth-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--ink-80, #e8ffe9);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.auth-menu__item:hover {
  background: rgba(0, 211, 189, 0.08);
  color: var(--theme-accent, #00D3BD);
}

.auth-menu__item--danger {
  color: var(--brand-red, #e74c3c);
}

.auth-menu__item--danger:hover {
  background: rgba(231, 76, 60, 0.1);
  color: var(--brand-red, #e74c3c);
}

.auth-menu__divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.06);
}

/* =============================================================================
   AUTH PROMPT (Login to continue)
   ============================================================================= */
.auth-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
}

.auth-prompt__icon {
  font-size: 48px;
  opacity: 0.6;
}

.auth-prompt__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-100, #ffffff);
  margin: 0;
}

.auth-prompt__message {
  font-size: 14px;
  color: var(--ink-60, #b4d7c4);
  max-width: 280px;
  margin: 0;
}

.auth-prompt__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* =============================================================================
   AUTH MODAL OVERLAY
   ============================================================================= */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 22, 37, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483645;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.auth-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  width: min(420px, 92vw);
  padding: 32px;
  background: var(--bg-base, #0a1628);
  border: 1px solid rgba(0, 211, 189, 0.15);
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 211, 189, 0.1);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.25s ease;
}

.auth-overlay--visible .auth-modal {
  transform: scale(1) translateY(0);
}

.auth-modal__header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modal__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-100, #ffffff);
  margin: 0 0 8px 0;
}

.auth-modal__subtitle {
  font-size: 14px;
  color: var(--ink-60, #b4d7c4);
  margin: 0;
}

.auth-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-lg, 12px);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-modal__btn--google {
  background: #ffffff;
  color: #333333;
  border: none;
}

.auth-modal__btn--google:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.auth-modal__btn--email {
  background: transparent;
  color: var(--theme-accent, #00D3BD);
  border: 1px solid var(--theme-accent, #00D3BD);
}

.auth-modal__btn--email:hover {
  background: rgba(0, 211, 189, 0.1);
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ink-60, #b4d7c4);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.auth-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-100, #ffffff);
}

/* =============================================================================
   SAVED PARLAYS LIST
   ============================================================================= */
.saved-parlays {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saved-parlay-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg, 12px);
  transition: all 0.2s ease;
}

.saved-parlay-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 211, 189, 0.2);
}

.saved-parlay-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.saved-parlay-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-100, #ffffff);
}

.saved-parlay-card__date {
  font-size: 12px;
  color: var(--ink-60, #b4d7c4);
}

.saved-parlay-card__legs {
  font-size: 13px;
  color: var(--ink-60, #b4d7c4);
}

.saved-parlay-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 480px) {
  .auth-modal {
    padding: 24px 20px;
  }

  .auth-menu__dropdown {
    right: -8px;
    min-width: 180px;
  }

  .auth-prompt {
    padding: 24px 16px;
  }
}
