/* ==========================================================================
   MyManageRH — Select Role Styles
   Aesthetics: Premium SaaS, 3D Hover, Glowing Cards
   ========================================================================== */

.role-select-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--brand-50);
  background: radial-gradient(circle at 50% 0%, var(--brand-100) 0%, var(--brand-50) 100%);
}

.role-select-intro {
  text-align: center;
  max-width: 600px;
  margin-bottom: 60px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--white);
  color: var(--brand-700);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-100);
}

.role-select-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  margin-top: 24px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-select-desc {
  font-size: 18px;
  color: var(--slate-600);
  line-height: 1.6;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 800px;
  perspective: 1000px;
}

.role-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.role-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.role-card:hover::before {
  opacity: 1;
}

.role-card-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.role-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  color: var(--brand-700);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
  transition: transform 0.3s ease;
}

.role-card:hover .role-card-icon {
  transform: scale(1.1);
}

.role-card-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 4px 0;
}

.text-subtle {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-500);
  margin-bottom: 32px;
  flex: 1;
}

.role-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.role-card-company .role-btn {
  background: var(--brand-900);
  color: white;
}

.role-card-employee .role-btn {
  background: var(--brand-50);
  color: var(--brand-700);
}

.role-btn-arrow {
  transition: transform 0.3s ease;
}

.role-card:hover .role-btn {
  background: var(--brand-700);
  color: white;
}

.role-card:hover .role-btn-arrow {
  transform: translateX(4px);
}

.role-select-trust {
  margin-top: 60px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.role-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 500;
}

.role-trust-item svg {
  color: var(--brand-500);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .role-select-title { font-size: 36px; }
  .role-grid { perspective: none; }
  .role-card:hover { transform: translateY(-4px); }
  .role-select-trust { flex-direction: column; gap: 16px; }
}
