:root {
  --primary-color: #4f46e5;
  --secondary-color: #06b6d4;
  --background: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --error-color: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.user-card {
  background: var(--card-background);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.user-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.info-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  padding: 0.75rem;
  background: var(--background);
  border-radius: 8px;
}

.info-item .label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 150px;
}

.info-item .value {
  color: var(--text-primary);
  font-weight: 500;
}

.roles-section {
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.roles-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.role-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 8px;
  font-weight: 500;
}

.role-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.role-description {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.links-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.links-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  display: block;
  padding: 1.25rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border-color: var(--primary-color);
}

.link-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.link-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.no-links {
  color: var(--text-secondary);
  font-style: italic;
}

.loading, .error {
  text-align: center;
  padding: 3rem;
  font-size: 1.25rem;
}

.loading {
  color: var(--text-secondary);
}

.error {
  color: var(--error-color);
}

.error h2 {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header h1 {
    font-size: 1.75rem;
  }

  .user-card {
    padding: 1.5rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}
