/* Role Selection Panel Styles */

.role-selection-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.role-selection-panel.role-selection-visible {
  opacity: 1;
  pointer-events: all;
}

.role-selection-panel.role-selection-hiding {
  opacity: 0;
  pointer-events: none;
}

.role-selection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.role-selection-content {
  position: relative;
  background: var(--bg-card, #0f0f0f);
  border: 1px solid var(--border-primary, #2a2a2a);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl, 0 25px 50px -12px rgba(0, 0, 0, 0.9));
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.role-selection-panel.role-selection-visible .role-selection-content {
  transform: translateY(0) scale(1);
}

.role-selection-header {
  text-align: center;
  margin-bottom: 2rem;
}

.role-selection-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 0.5rem 0;
}

.role-selection-subtitle {
  font-size: 1rem;
  color: var(--text-secondary, #e5e5e5);
  margin: 0;
}

.role-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.role-card {
  background: var(--bg-primary, #1a1a1a);
  border: 2px solid var(--border-primary, #2a2a2a);
  border-radius: 1rem;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.role-card:hover {
  border-color: var(--accent-primary, #6366f1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.7));
}

.role-card-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.role-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin: 0 0 0.5rem 0;
}

.role-card-description {
  font-size: 0.875rem;
  color: var(--text-secondary, #e5e5e5);
  margin: 0 0 1.5rem 0;
}

.role-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  width: 100%;
}

.role-feature {
  font-size: 0.875rem;
  color: var(--text-tertiary, #b3b3b3);
}

.role-card-button {
  background: var(--accent-primary, #6366f1);
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.role-card-button:hover {
  background: var(--accent-hover, #818cf8);
  transform: scale(1.02);
}

.role-card-button:active {
  transform: scale(0.98);
}

.role-selection-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary, #2a2a2a);
}

.role-selection-skip {
  background: transparent;
  color: var(--text-tertiary, #b3b3b3);
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.role-selection-skip:hover {
  color: var(--text-primary, #ffffff);
  background: var(--bg-hover, #252525);
}

/* Mobile styles */
@media (max-width: 640px) {
  .role-selection-content {
    padding: 1.5rem;
    width: 95%;
    max-height: 95vh;
  }

  .role-selection-title {
    font-size: 1.5rem;
  }

  .role-cards-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .role-card {
    padding: 1.5rem;
  }

  .role-card-icon {
    font-size: 3rem;
  }
}

/* Scrollbar styles */
.role-selection-content::-webkit-scrollbar {
  width: 8px;
}

.role-selection-content::-webkit-scrollbar-track {
  background: var(--bg-primary, #1a1a1a);
  border-radius: 4px;
}

.role-selection-content::-webkit-scrollbar-thumb {
  background: var(--border-secondary, #3a3a3a);
  border-radius: 4px;
}

.role-selection-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover, #4a4a4a);
}

