/* ==========================================================================
   sim-auth-gate.css — Auth gate styles for sim player pages
   
   Styles for the gated preview card shown to unauthenticated users.
   Matches the dark sim layout design system.
   ========================================================================== */

/* ── Root container ── */
.auth-gate-root {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1rem;
  animation: auth-gate-fade-in 0.3s ease-out;
}

@keyframes auth-gate-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card ── */
.auth-gate-card {
  max-width: 520px;
  width: 100%;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ── Thumbnail area ── */
.auth-gate-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.15));
}

.auth-gate-thumb-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.auth-gate-lock-icon {
  width: 28px;
  height: 28px;
  color: #94a3b8;
}

/* ── Body ── */
.auth-gate-body {
  padding: 1.5rem 1.75rem 2rem;
}

.auth-gate-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.auth-gate-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.auth-gate-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.auth-gate-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.15);
  margin: 0 0 1.25rem;
}

.auth-gate-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.auth-gate-value-prop {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

/* ── Action buttons ── */
.auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  line-height: 1.4;
  text-align: center;
}

.auth-gate-btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.auth-gate-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

.auth-gate-btn-primary:active {
  transform: translateY(0);
}

.auth-gate-btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.auth-gate-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.4);
  text-decoration: none;
}

.auth-gate-btn-secondary:active {
  background: rgba(148, 163, 184, 0.25);
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .auth-gate-actions {
    flex-direction: row;
  }

  .auth-gate-btn {
    flex: 1;
  }

  .auth-gate-thumb {
    height: 200px;
  }

  .auth-gate-body {
    padding: 2rem 2.25rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .auth-gate-root {
    min-height: 50vh;
    padding: 1.5rem 0.75rem;
  }

  .auth-gate-thumb {
    height: 140px;
  }

  .auth-gate-body {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .auth-gate-title {
    font-size: 1.1rem;
  }

  .auth-gate-desc {
    font-size: 0.8rem;
  }
}

/* ── WCAG focus indicators ── */
.auth-gate-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}
