/* frontend/css/profile-modal.css */

/* Очень широкое окно */
.modal-card.profile-card {
  width: 1100px;
  max-width: 95%;
}

/* Layout без скролла */
.profile-layout {
  display: flex;
  gap: 0;
  padding: 20px;
  min-height: 550px;
  overflow: hidden;
}

/* Левая секция: Характеристики (22%) */
.profile-left {
  flex: 0 0 22%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Центр: Силуэт (73%) */
.profile-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Правая секция: Статус (40px светлая) */
.profile-right {
  flex: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 15px;
  gap: 10px;
  background: rgb(255 255 255 / 5%);
  border-radius: 4px;
  text-align: center;
}

/* Вертикальные разделители */
.profile-divider {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 10%,
    rgba(255, 255, 255, 0.2) 90%,
    transparent 100%
  );
  margin: 0 15px;
}

/* Контейнер героя с бордерами сверху и снизу */
.character-container {
  width: 100%;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 18% 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Увеличенный силуэт героя */
.character-silhouette {
  transform: scale(1.3);
  transform-origin: center;
}

.warrior-silhouette img {
  width: 250px;
  height: 375px;
}


/* Стили характеристик */
.profile-stats {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow-y: auto;
}

.profile-stats h4 {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e6ebff;
  font-size: 13px;
}

.stat-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8a93a5;
}

.stat-row span:last-child {
  color: #e6ebff;
  font-weight: bold;
}

/* Информация внизу */
.profile-info-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

/* ОДИН КЛИКАБЕЛЬНЫЙ СЛОТ ИНФОРМАЦИИ */
.info-slot {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 10px;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.info-slot:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.info-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.info-line:last-child {
  margin-bottom: 0;
}

.info-line .info-label {
  font-size: 11px;
  color: #8a93a5;
}

.info-line .info-value {
  font-size: 13px;
  color: #e6ebff;
  font-weight: bold;
}

/* Статус онлайн/оффлайн */
.status-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #95a5a6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.status-indicator.online .status-dot {
  background: #2ecc71;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.7);
}

.status-indicator.offline .status-dot {
  background: #95a5a6;
  box-shadow: 0 0 10px rgba(149, 165, 166, 0.5);
}

/* Battle status */
.battle-status-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.battle-status-indicator.hidden {
  display: none;
}

.battle-status-icon {
  font-size: 18px;
  color: #dc3545;
  filter: drop-shadow(0 0 6px rgba(220, 53, 69, 0.7));
  animation: battle-pulse 1.5s ease-in-out infinite;
}

.battle-status-text {
  font-size: 8px;
  color: #dc3545;
  font-weight: bold;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@keyframes battle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* БЕЗ drag-and-drop */
.profile-layout .slot.equip {
  cursor: default;
  pointer-events: none;
}

.profile-layout .slot.equip.has-item {
  pointer-events: auto;
  cursor: help;
}

/* Кастомные стили для профиля */
.profile-layout .stat-grid {
  gap: 0;
  padding: 0px 30px;
}

.profile-layout .profile-stats h4 {
  margin: 0 0 12px 0;
  color: #e6ebff;
  font-size: 16px;
  border-bottom: 1px solid #2a3146;
  padding-bottom: 6px;
  margin-top: 20px;
  text-align: center;
  background-color: #505050;
}

/* ========================================= */
/* МОДАЛЬНОЕ ОКНО "ИНФО ПЕРСОНАЖА" */
/* ========================================= */

.modal-card.info-card-modal {
  width: 600px;
  max-width: 90%;
}

.info-modal-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 15px;
}

/* Основная информация */
.info-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-header {
  display: flex;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-name-block,
.info-location-block {
  display: flex;
  gap: 8px;
  align-items: center;
}

.info-header .label {
  font-size: 12px;
  color: #8a93a5;
}

.info-header .value {
  font-size: 14px;
  color: #e6ebff;
  font-weight: bold;
}

/* Секция bio */
.info-bio-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 15px;
}

.info-bio-section h4 {
  margin: 0 0 10px 0;
  color: #e6ebff;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.info-bio-text {
  font-size: 13px;
  color: #b8c1d3;
  line-height: 1.6;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
}

/* ПОЛОСА ПОДАРКОВ 60px */
.info-gifts-bar {
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.gifts-label {
  font-size: 12px;
  color: #8a93a5;
  font-weight: bold;
  min-width: 80px;
}

.gifts-list {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
}

.gift-item {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gift-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.gift-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.gifts-list:empty::after {
  content: 'Нет подарков';
  color: #6a7383;
  font-size: 11px;
  font-style: italic;
}

/* ========================================= */
/* TOOLTIP ДЛЯ ЭКИПИРОВКИ */
/* ========================================= */

.equipment-tooltip {
  position: fixed;
  width: 200px;
  height: 450px;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #ffffff;
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.equipment-tooltip.hidden {
  display: none;
}

.tooltip-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

.tooltip-body {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tooltip-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 8px;
}

.tooltip-icon-container img {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.tooltip-section {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.tooltip-label {
  color: #aaaaaa;
}

.tooltip-value {
  color: #ffffff;
  font-weight: bold;
}

.tooltip-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 8px 0;
}

.tooltip-description {
  font-size: 11px;
  color: #cccccc;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Курсор при наведении на предмет */
.profile-layout .slot.equip.has-item {
  pointer-events: auto;
  cursor: help;
}
.profile-layout .slot .item i.ra {
    font-size: 30px;
    width: 100%;
    height: 100%;
}