/* Основные стили для страницы команды в новом дизайне */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 211 100% 55%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.5rem;
}

/* Общие стили */
.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Стили для карточек */
.team-card {
  display: flex;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.team-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Стили для изображений команды */
.team-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.team-image-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.team-likes {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-top-left-radius: 0.5rem;
}

/* Стили для контента команды */
.team-content {
  padding: 0.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.team-title a {
  color: inherit;
  text-decoration: none;
}

.team-title a:hover {
  color: hsl(var(--primary));
}

.team-info {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.team-description {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.team-description img {
  width: 100%;
  height: auto;
}

/* Стили для книг команды */
.team-books {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.book-thumbnail {
  position: relative;
  width: 50px;
  height: 70px;
  overflow: hidden;
}

.book-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-thumbnail .icons {
  position: absolute;
  top: 0;
  right: 0;
}

.book-thumbnail .icon {
  width: 25px;
  height: 25px;
  background-size: cover;
  display: inline-block;
}

.book-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 70px;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  text-align: center;
}

/* Стили для бейджей */
.team-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  margin-left: 0.5rem;
}

/* Стили для вкладок */
.team-tabs {
  display: flex;
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 1.5rem;
}

.team-tab {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.team-tab:hover {
  color: hsl(var(--foreground));
}

.team-tab.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

/* Стили для кнопок */
.team-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.team-button-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.team-button-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.team-button-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.team-button-outline:hover {
  background-color: hsl(var(--muted));
}

.team-button-danger {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.team-button-danger:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.team-button-icon {
  margin-right: 0.5rem;
}

.team-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.team-actions .team-button {
  text-decoration: none;
}

/* Стили для таблицы участников */
.team-table {
  width: 100%;
  border-collapse: collapse;
}

.team-table th,
.team-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.team-table th {
  font-weight: 600;
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

.team-table tr:hover {
  background-color: hsl(var(--muted) / 0.5);
}

/* Стили для форм */
.team-form {
  margin-bottom: 1.5rem;
}

.team-form-group {
  margin-bottom: 1rem;
}

.team-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.team-form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.team-form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.team-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .team-card {
    flex-direction: column;
  }
  
  .team-image-container {
    width: 100%;
    height: 200px;
  }
  
  .team-image {
    width: 100%;
    height: 200px;
  }
  
  .team-books {
    justify-content: center;
  }
}
