.character-selection-container {
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.character-selection-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.character-selection-header h1 {
  font-size: 2.5rem;
  color: #646cff;
  margin-bottom: 0.5rem;
}

.character-selection-header .subtitle {
  color: #888;
  font-size: 1rem;
}

.logout-button {
  position: absolute;
  top: 0;
  right: 0;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.character-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.character-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #646cff 0%, #535bf2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.character-info {
  text-align: center;
}

.character-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.character-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  color: #aaa;
  font-size: 0.9rem;
}

.character-attributes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1rem;
  margin: 0.5rem 0;
}

.character-attributes span {
  padding: 0.25rem 0.5rem;
  background-color: #1a1a1a;
  border-radius: 4px;
}

.character-meta {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.character-actions {
  display: flex;
  gap: 0.5rem;
}

.character-actions button {
  flex: 1;
}

.button-danger {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s;
}

.button-danger:hover {
  background-color: #c82333;
}

.button-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.create-character-card {
  cursor: pointer;
  border: 2px dashed #646cff;
  background-color: rgba(100, 108, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.create-character-card:hover {
  background-color: rgba(100, 108, 255, 0.2);
  border-color: #535bf2;
}

.create-character-icon {
  font-size: 4rem;
  color: #646cff;
  margin-bottom: 1rem;
}

.create-character-card h3 {
  color: #646cff;
  margin-bottom: 0.5rem;
}

.create-character-subtitle {
  color: #888;
  font-size: 0.9rem;
}

.premium-banner {
  background: linear-gradient(135deg, #646cff 0%, #535bf2 100%);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 600px;
  margin: 2rem auto 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.premium-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.premium-banner p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.premium-banner button {
  background-color: white;
  color: #646cff;
  font-weight: bold;
}

.premium-banner button:hover {
  background-color: #f0f0f0;
}

.no-characters {
  text-align: center;
  color: #888;
  padding: 3rem;
  max-width: 500px;
  margin: 0 auto;
}

.no-characters p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .character-selection-container {
    padding: 1rem;
  }
  
  .character-selection-header h1 {
    font-size: 1.8rem;
  }
  
  .logout-button {
    position: static;
    margin-top: 1rem;
  }
  
  .characters-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
