/* ===== header.css - Стили для новой шапки и нижнего меню ===== */

/* ========== TOPBAR ========== */
.trumpamole__topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 6px 12px 6px;
  overflow: hidden;
  box-shadow: 0px 9px 13px -2px rgb(31 22 22);
  background: radial-gradient(120% 110% at 50% -10%, #865949 0%, #412e2f 22%, #3f2b2d 48%, #342424 74%, #3d2424 100%), 
              linear-gradient(180deg, #3d2a2c 0%, #1d1a1a 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.trumpamole__topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" opacity="0.22"><path d="M50,30 Q80,5 120,20 Q160,35 140,70 Q120,105 80,100 Q40,95 30,60 Q20,25 50,30 Z" fill="white"/><path d="M200,90 Q240,60 290,80 Q340,100 310,140 Q280,180 220,170 Q160,160 140,120 Q120,80 200,90 Z" fill="white"/><path d="M380,40 Q430,10 480,30 Q530,50 500,90 Q470,130 410,120 Q350,110 320,70 Q290,30 380,40 Z" fill="white"/><path d="M600,80 Q650,50 710,70 Q770,90 740,130 Q710,170 640,160 Q570,150 540,110 Q510,70 600,80 Z" fill="white"/><path d="M800,20 Q860,-10 920,10 Q980,30 950,70 Q920,110 850,100 Q780,90 750,50 Q720,10 800,20 Z" fill="white"/><path d="M1000,60 Q1050,30 1110,50 Q1170,70 1140,110 Q1110,150 1040,140 Q970,130 940,90 Q910,50 1000,60 Z" fill="white"/></svg>');
  background-size: 1200px 120px;
  background-repeat: repeat;
  opacity: 0.55;
  mix-blend-mode: overlay;
  filter: blur(5px) contrast(1);
  pointer-events: none;
}

.trumpamole__topbar-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trumpamole__header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 2px 2px 0;
}

/* Аватар с рамкой */
.trumpamole__avatar-frame {
  width: 74px;
  height: 74px;
  position: relative;
  border-radius: 10px;
  overflow: visible;
  flex: 0 0 auto;
}

.trumpamole__avatar-behind {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 246, 230, 0.06);
}

.trumpamole__avatar-behind img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trumpamole__frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.55));
  transform: scale3d(1.3, 1.3, 1.3);
}

.trumpamole__level-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 6;
  background: linear-gradient(180deg, rgb(184 166 150), rgb(222 208 191));
  color: rgb(47 35 36);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 11px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  border-bottom: 3px solid rgba(0, 0, 0, 0.25);
}

/* Текст игрока */
.trumpamole__header-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding-left: 4px;
}

.trumpamole__header-title {
  font-family: var(--font-heading, "Unbounded", "Manrope", ui-sans-serif, system-ui);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.05;
  color: rgba(255, 246, 230, 0.94);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trumpamole__header-xp-bar {
  height: 14px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 246, 230, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 246, 230, 0.08), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.trumpamole__header-xp-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: radial-gradient(60% 55% at 50% 18%, #FFF6E6 0%, #F2E7D6 40%, #D7C7B4 75%, #8E7863 100%),
              linear-gradient(180deg, #F2E7D6 0%, #8E7863 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  transition: width 0.3s ease;
}

.trumpamole__header-subtitle {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: rgba(255, 246, 230, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Иконки справа */
.trumpamole__header-icons {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trumpamole__header-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.30);
  transition: transform 0.15s ease, background 0.15s ease;
  position: relative;
}

.trumpamole__header-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(20, 13, 13, 0.22);
}

.trumpamole__header-icon-btn:active {
  transform: translateY(0);
}

.trumpamole__header-icon-btn img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  opacity: 0.95;
}

.trumpamole__header-mail-badge {
  position: absolute;
  left: 3px;
  top: 3px;
  z-index: 6;
  background: radial-gradient(60% 55% at 50% 18%, #FCF9A0 0%, #F5D65A 40%, #EEB048 75%, #C37939 100%),
              linear-gradient(180deg, #F5D65A 0%, #C37939 100%);
  color: #312121;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 11px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  min-width: 18px;
  text-align: center;
}

.trumpamole__header-notify-dot {
  position: absolute;
  right: 9px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 rgba(255, 59, 48, 0.7);
  animation: trumpamole__pulse-red 1.6s infinite;
}

@keyframes trumpamole__pulse-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* ========== РЕСУРСЫ ========== */
.trumpamole__resources-inset {
  padding: 10px;
  z-index: 5;
}

.trumpamole__resources-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
}

.trumpamole__resource-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  background: radial-gradient(60% 55% at 50% 18%, #FFF6E6 0%, #F2E7D6 40%, #D7C7B4 75%, #8E7863 100%),
              linear-gradient(180deg, #F2E7D6 0%, #8E7863 100%);
  border-radius: 20px;
  padding: 2px 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.trumpamole__resource-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.trumpamole__resource-value {
  flex: 1 1 auto;
  text-align: left;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trumpamole__resource-plus {
  position: absolute;
  right: -4px;
  bottom: 10px;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: #312121;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  background: radial-gradient(60% 55% at 50% 18%, #FCF9A0 0%, #F5D65A 40%, #EEB048 75%, #C37939 100%),
              linear-gradient(180deg, #F5D65A 0%, #C37939 100%);
}

/* ========== НИЖНЕЕ МЕНЮ ========== */
.trumpamole__bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 12px 14px calc(12px + var(--safe-bottom, 0px));
  background: radial-gradient(120% 110% at 50% -10%, #865949 0%, #412e2f 22%, #3f2b2d 48%, #342424 74%, #3d2424 100%), 
              linear-gradient(180deg, #3d2a2c 0%, #1d1a1a 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0px -9px 13px -2px rgb(31 22 22);
}

.trumpamole__nav-items {
  max-width: 980px;
  margin: 0 auto;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.trumpamole__nav-btn {
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  border: 0;
  background: transparent;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  color: inherit;
  font-family: inherit;
}

.trumpamole__nav-pill {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 110% at 50% -10%, #865949 0%, #412e2f 22%, #3f2b2d 48%, #342424 74%, #3d2424 100%), 
              linear-gradient(180deg, #3d2a2c 0%, #1d1a1a 100%);
  border: 1px solid rgba(255, 246, 230, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease, filter 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
  position: relative;
  overflow: hidden;
}

.trumpamole__nav-btn:hover .trumpamole__nav-pill {
  transform: translateY(-2px);
}

.trumpamole__nav-btn--center {
  width: 92px;
}

.trumpamole__nav-btn--center .trumpamole__nav-pill {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  /* background: radial-gradient(60% 55% at 50% 18%, #FFF6E6 0%, #F2E7D6 40%, #D7C7B4 75%, #8E7863 100%), linear-gradient(180deg, #F2E7D6 0%, #8E7863 100%) !important; */
  background: radial-gradient(60% 55% at 50% 18%, #f1dc7c 0%, #ebcf6e 40%, #efd47d 75%, #dda15a 100%), linear-gradient(180deg, #f5e49a 0%, #dfa65f 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.trumpamole__nav-btn--center.active .trumpamole__nav-pill {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: radial-gradient(60% 55% at 50% 18%, #FFF6E6 0%, #F2E7D6 40%, #D7C7B4 75%, #8E7863 100%), linear-gradient(180deg, #F2E7D6 0%, #8E7863 100%) !important;
}

old.trumpamole__nav-btn--center:hover .trumpamole__nav-pill {
  transform: translateY(-20px);
}

.trumpamole__nav-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: rgba(255, 246, 230, 0.86);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.trumpamole__nav-btn--center .trumpamole__nav-label {
  display: none;
}

.trumpamole__nav-task-badge {
  position: absolute;
  left: 3px;
  top: 3px;
  z-index: 12;
  background: radial-gradient(60% 55% at 50% 18%, #FCF9A0 0%, #F5D65A 40%, #EEB048 75%, #C37939 100%),
              linear-gradient(180deg, #F5D65A 0%, #C37939 100%);
  color: #312121;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 11px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  min-width: 18px;
  text-align: center;
}

.trumpamole__nav-icon {
  width: 36px;
  height: 44px;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}

.trumpamole__nav-btn--center .trumpamole__nav-icon {
  width: 180px;
  height: 180px;
  position: absolute;
}

.trumpamole__nav-btn.active .trumpamole__nav-pill {
  background: linear-gradient(180deg, rgba(74, 52, 51, 0.92) 0%, rgba(74, 52, 51, 0.42) 55%, rgba(74, 52, 51, 0) 100%);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 28px rgba(0, 0, 0, 0.32);
  filter: drop-shadow(0 22px 55px rgba(0, 0, 0, 0.40)) drop-shadow(0 0 18px rgba(255, 246, 230, 0.08));
}

.trumpamole__nav-btn.active .trumpamole__nav-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 246, 230, 0) 0%, rgba(255, 246, 230, 0.28) 40%, rgba(255, 246, 230, 0.7) 100%) top / 100% 2px no-repeat,
              linear-gradient(180deg, rgba(255, 246, 230, 0.55) 0%, rgba(255, 246, 230, 0.22) 45%, rgba(255, 246, 230, 0) 100%) left / 2px 100% no-repeat,
              linear-gradient(180deg, rgba(255, 246, 230, 0.85) 0%, rgba(255, 246, 230, 0.28) 45%, rgba(255, 246, 230, 0) 100%) right / 2px 100% no-repeat;
  opacity: 1;
}

.trumpamole__nav-btn.active .trumpamole__nav-icon {
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 14px rgba(255, 246, 230, 0.08));
}

/* Плавающая кнопка PvP */
.trumpamole__pvp-float-btn {
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  cursor: pointer;
  animation: trumpamole__pvp-pulse 2s infinite;
}

.trumpamole__pvp-btn-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.trumpamole__pvp-btn-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  animation: trumpamole__pvp-ripple 2s infinite;
  pointer-events: none;
}

@keyframes trumpamole__pvp-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes trumpamole__pvp-ripple {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Адаптация для мобильных */
@media (max-width: 520px) {
  .trumpamole__header-row { min-height: 68px; }
  .trumpamole__avatar-frame { width: 66px; height: 66px; }
  .trumpamole__header-title { font-size: 13px; }
  .trumpamole__header-subtitle { font-size: 10.5px; }
  
  .trumpamole__header-xp-bar { height: 14px; border-radius: 6px; }
  .trumpamole__header-xp-fill { border-radius: 6px; }
  
  .trumpamole__resources-row { gap: 8px; }
  .trumpamole__resource-icon { width: 26px; height: 40px; position: relative; left: 6px; }
  .trumpamole__resource-value { font-size: 14px; }
  .trumpamole__resource-plus { width: 24px; height: 24px; }
  
  .trumpamole__nav-items { height: 42px; }
  .trumpamole__nav-btn { width: 68px; }
  .trumpamole__nav-pill { width: 54px; height: 54px; }
  .trumpamole__nav-btn--center { width: 90px; }
  .trumpamole__nav-btn--center .trumpamole__nav-pill { width: 76px; height: 76px; }
  .trumpamole__nav-label { font-size: 10px; }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 360px) {
  .trumpamole__resource-value { font-size: 12px; }
  .trumpamole__resource-icon { width: 22px; left: 4px; }
  .trumpamole__header-title { font-size: 12px; }
  .trumpamole__header-icon-btn { width: 40px; height: 40px; }
  .trumpamole__header-icon-btn img { width: 40px; height: 40px; }
}

