/* Релакс-комната - Стили */

.relax-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* Увеличена прозрачность фона с 0.1 до 0.05 для более легкого эффекта */
  opacity: 0.05;
  /* Добавлен pointer-events: none для фона, чтобы события проходили к canvas */
  pointer-events: none;
}

#aquariumCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

/* Добавлены стили для footer, чтобы он был выше canvas */
footer {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Добавлены стили для звуковых контролов */
.sound-controls {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sound-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sound-btn.active {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.sound-select {
  padding: 8px 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sound-select:focus {
  border-color: #667eea;
  outline: none;
}

/* Добавлена подсказка об интерактивности */
.interaction-hint {
  font-size: 0.95rem;
  color: #667eea;
  margin-top: 15px;
  padding: 10px 20px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  display: inline-block;
}

.interaction-hint i {
  margin-right: 8px;
}

.relax-container {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  min-height: 100vh;
  /* Добавлен pointer-events: none для контейнера, чтобы события мыши проходили к canvas */
  pointer-events: none;
}

/* Добавлены pointer-events: auto для всех интерактивных элементов */
.relax-container * {
  pointer-events: auto;
}

/* Заголовок */
.relax-header {
  animation: fadeInDown 1s ease;
}

.relax-icon-container {
  display: inline-block;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.relax-icon {
  font-size: 40px;
  color: white;
}

.relax-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.relax-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 30px;
}

.relax-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item i {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 10px;
}

.stat-item span {
  font-size: 2rem;
  font-weight: 700;
  color: #343a40;
}

.stat-item small {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Выбор анимации */
.animation-selector h3,
.profession-selector h3,
.problems-section h3 {
  font-weight: 600;
  color: #c6d6e5;
}

.text-muted {
  color: #c6d6e5 !important;
}

.animation-card {
  width: 100%;
  padding: 30px 20px;
  background: white;
  border: 3px solid #e9ecef;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.animation-card i {
  font-size: 3rem;
  color: #667eea;
  transition: transform 0.3s ease;
}

.animation-card span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #343a40;
}

.animation-card small {
  color: #6c757d;
  font-size: 0.9rem;
}

.animation-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.animation-card:hover i {
  transform: scale(1.2);
}

.animation-card.active {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Выбор профессии */
.profession-card {
  width: 100%;
  padding: 25px 15px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profession-card i {
  font-size: 2.5rem;
  color: #667eea;
  transition: transform 0.3s ease;
}

.profession-card span {
  font-size: 1rem;
  font-weight: 600;
  color: #343a40;
}

.profession-card:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.profession-card:hover i {
  transform: scale(1.15);
}

.profession-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Проблемы */
.problem-card {
  padding: 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.problem-card:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.problem-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 10px;
}

.problem-card p {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.problem-views {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #667eea;
  font-size: 0.9rem;
}

/* Решение */
.solution-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.btn-back {
  background: #f8f9fa;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-back:hover {
  background: #e9ecef;
  transform: translateX(-5px);
}

.solution-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8f9fa;
  border-radius: 25px;
  font-weight: 500;
}

.stat-badge i {
  color: #667eea;
}

.stat-badge.success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
  color: #28a745;
}

.stat-badge.success i {
  color: #28a745;
}

.solution-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #343a40;
}

.solution-content h4 {
  color: #667eea;
  margin-top: 20px;
  margin-bottom: 15px;
}

.solution-content ul {
  padding-left: 20px;
}

.solution-content li {
  margin-bottom: 10px;
}

.solution-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Уникальная проблема */
.unique-problem-card {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

.unique-problem-card .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.unique-problem-card .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Успешная отправка */
.success-message {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.success-card {
  background: white;
  border-radius: 15px;
  padding: 60px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
}

.success-icon {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 20px;
  animation: heartBeat 1.5s infinite;
}

.success-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 15px;
}

.success-card p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 30px;
}

/* Анимации */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(1.1);
  }
  20%,
  40% {
    transform: scale(1);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .relax-title {
    font-size: 2rem;
  }

  .relax-subtitle {
    font-size: 1rem;
  }

  .relax-stats {
    gap: 20px;
  }

  .stat-item {
    min-width: 120px;
    padding: 15px;
  }

  .unique-problem-card {
    padding: 30px 20px;
  }

  .success-card {
    padding: 40px 20px;
  }

  /* Адаптивность для звуковых контролов */
  .sound-controls {
    top: 80px;
    right: 10px;
    padding: 10px;
  }

  .sound-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .sound-select {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .interaction-hint {
    font-size: 0.85rem;
    padding: 8px 15px;
  }
}
