/* Основные стили для prototype_v2 */

/* Дополнительные стили для улучшения внешнего вида */
.unread-dot {
  width: 10px;
  height: 10px;
  background: #0095f6;
  border-radius: 50%;
  margin-left: 8px;
}

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

.profile-card, .result-card, .message-item, .notification-item {
  animation: fadeIn 0.3s ease;
}

/* Улучшения для десктопной версии */
@media (min-width: 1025px) {
  .app-container {
    animation: fadeIn 0.5s ease;
  }
  
  .desktop-header {
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* Улучшения для мобильной версии */
@media (max-width: 1024px) {
  .mobile-bottom-nav {
    animation: slideUp 0.3s ease;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* Эффекты при наведении */
.action-btn, .result-btn, .nav-item {
  position: relative;
  overflow: hidden;
}

.action-btn::after, .result-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.action-btn:hover::after, .result-btn:hover::after {
  width: 100px;
  height: 100px;
}

/* Плавные переходы */
* {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Кастомный скроллбар */
.scroll-area::-webkit-scrollbar {
  width: 6px;
}

.scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Эффект загрузки */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Адаптивные улучшения */
@media (max-width: 768px) {
  .profile-card {
    max-width: 100%;
    margin: 0 16px 20px;
  }
  
  .actions-container {
    gap: 16px;
    padding: 0 16px;
  }
  
  .action-btn {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }
  
  .result-img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .action-btn {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  
  .profile-name {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 24px;
    padding: 16px 0 8px;
  }
}

/* Эффект премиума */
.premium-glow {
  position: relative;
}

.premium-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #feda77, #d62976, #962fbf, #feda77);
  border-radius: inherit;
  z-index: -1;
  animation: premiumGlow 3s linear infinite;
  background-size: 400% 400%;
}

@keyframes premiumGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Улучшения для форм */
.range-select:focus {
  outline: none;
  border-color: #0095f6;
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.2);
}

/* Эффект пульсации для новых уведомлений */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.notification-item:first-child {
  animation: pulse 0.5s ease;
}

/* Эффект для активной навигации */
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #0095f6;
  border-radius: 50%;
}

/* Адаптация для очень больших экранов */
@media (min-width: 1600px) {
  .app-container {
    max-width: 1400px;
  }
  
  .header-content {
    max-width: 1400px;
  }
}

/* Поддержка темной темы систем */
@media (prefers-color-scheme: dark) {
  body {
    background: #0a0a0a;
  }
}

/* Улучшение доступности */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #0095f6;
  outline-offset: 2px;
}

/* Эффект скелетона для загрузки */
.skeleton {
  background: linear-gradient(90deg, #141414 25%, #1a1a1a 50%, #141414 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Фикс для Bootstrap в темной теме */
.form-select, .form-control {
  background-color: #0f0f0f !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.form-select:focus, .form-control:focus {
  border-color: #0095f6 !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 149, 246, 0.25) !important;
}

/* Кастомные стили для Bootstrap компонентов */
.btn-primary {
  background-color: #0095f6 !important;
  border-color: #0095f6 !important;
}

.btn-primary:hover {
  background-color: #0081d6 !important;
  border-color: #0081d6 !important;
}

/* Улучшение отзывчивости изображений */
img {
  max-width: 100%;
  height: auto;
}

/* Оптимизация производительности */
.will-change-transform {
  will-change: transform;
}

/* Поддержка touch устройств */
@media (hover: none) and (pointer: coarse) {
  .action-btn:hover, .result-btn:hover, .nav-item:hover {
    transform: none;
  }
  
  .action-btn:active, .result-btn:active {
    transform: scale(0.95);
  }
}