/**
 * social-auth-buttons.css
 * Styling for 1-Click Fast Social Authentication (Google & Facebook)
 * Standards: Apple HIG, Google Material Design 3, WCAG 2.1 AAA Touch Targets (>= 48px)
 * Responsive: Mobile 320px -> 4K Desktop
 * Official Branding: AUTOGRADING AI
 */

.social-auth-tray,
.social-signup-tray {
  width: 100%;
  box-sizing: border-box;
}

.btn-social-auth {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  outline: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

.btn-social-auth:active {
  transform: scale(0.985);
}

.btn-social-auth:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* 1. Google Button */
.btn-social-google {
  background: #ffffff !important;
  color: #1f1f1f !important;
  border: 1.5px solid #dadce0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.btn-social-google:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Dark mode for Google button */
[data-theme="dark"] .btn-social-google {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .btn-social-google:hover:not(:disabled) {
  background: #334155 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* 2. Facebook Button (Tạm thời ẩn theo yêu cầu) */
.btn-social-facebook {
  display: none !important;
  background: #1877F2 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25) !important;
}

.btn-social-facebook:hover:not(:disabled) {
  background: #166fe5 !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35) !important;
}

.btn-social-facebook:active:not(:disabled) {
  background: #0e65d9 !important;
}

/* 3. Divider Styling */
.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.9rem 0 1.1rem;
  color: var(--text-muted, #64748b);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .social-divider {
  color: #94a3b8;
}

/* 4. Mobile Responsiveness */
@media (max-width: 480px) {
  .btn-social-auth {
    min-height: 46px !important;
    height: 46px !important;
    font-size: 0.85rem !important;
  }
}

/* 5. Social Auth Onboarding Plan Picker Modal */
.social-onboarding-modal-shell {
  background: var(--bg-surface, #ffffff) !important;
  color: var(--text-main, #0f172a) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="dark"] .social-onboarding-modal-shell {
  background: #111827 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.social-profile-chip {
  transition: all 0.2s ease;
}

[data-theme="dark"] .social-profile-chip {
  background: rgba(0, 197, 223, 0.12) !important;
  border-color: rgba(0, 197, 223, 0.35) !important;
}

[data-theme="dark"] #social-onboarding-name {
  color: #f8fafc !important;
}

.social-plan-card {
  box-sizing: border-box;
}

.social-plan-card:hover {
  transform: translateY(-2px);
  border-color: #00c5df !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .social-plan-card {
  background: #1f2937 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .social-plan-card.featured-plan {
  background: #1e293b !important;
  border-color: #00c5df !important;
  box-shadow: 0 4px 20px rgba(0, 197, 223, 0.25) !important;
}

[data-theme="dark"] .social-plan-card div[style*="color: var(--text-main"] {
  color: #f8fafc !important;
}

@media (max-width: 600px) {
  .social-plans-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .social-onboarding-modal-shell {
    width: 95% !important;
    padding: 1.15rem 1rem !important;
    margin: 0.5rem auto !important;
  }
}
