/* ============================
   WARCRAFT III TECH SUPPORT UI
   Полный стиль под меню WC3
   ============================ */

/* ---- БАЗА СТРАНИЦЫ ---- */

html,
body,
#root {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #e6f1ff;
}










/* Фон как в меню – лёд/небо. Поставь свой скрин вместо war3-bg.jpg */
body {
  background:
    #000
    url("/img/war3-bg.jpg") center center / cover fixed no-repeat;
  overflow-x: hidden;
  cursor: url("/img/war3-cursor-gauntlet.cur"), auto;
}

/* Лёгкий «туман» поверх фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.15), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(140, 190, 255, 0.15), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(140, 190, 255, 0.18), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
  z-index: 0;
}






/* ---- ОБЁРТКИ ---- */

.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Главная металлическая панель справа как в WC3 */
.container {
  position: relative;
  margin-left: auto;
  margin-right: 0;
  max-width: 480px;

  padding: 18px 16px 20px;
  box-sizing: border-box;

  background:
    linear-gradient(180deg, #3b3b3b 0%, #262626 45%, #1c1c1c 100%);
  border-radius: 4px;

  border: 4px solid #111317;
  box-shadow:
    0 0 0 1px #6a6a6a,
    0 0 22px rgba(0, 0, 0, 0.9),
    inset 0 0 18px rgba(0, 0, 0, 0.9);
}

/* Внутренняя рамка */
.container::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  border: 2px solid #3f4348;
  box-shadow:
    inset 0 0 0 1px #090a0c,
    0 0 18px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

/* Металлические уголки */
.container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, #d3d3d3 0, #696969 30%, transparent 55%) top left / 40px 40px no-repeat,
    radial-gradient(circle at 100% 0, #d3d3d3 0, #696969 30%, transparent 55%) top right / 40px 40px no-repeat,
    radial-gradient(circle at 0 100%, #d3d3d3 0, #696969 30%, transparent 55%) bottom left / 40px 40px no-repeat,
    radial-gradient(circle at 100% 100%, #d3d3d3 0, #696969 30%, transparent 55%) bottom right / 40px 40px no-repeat;
}

/* Цепи сверху – чисто декоративно */
.container-chains::before,
.container-chains::after {
  content: "";
  position: absolute;
  top: -72px;
  width: 64px;
  height: 160px;
  background-image:
    radial-gradient(circle, #000 0 35%, transparent 36%),
    radial-gradient(circle, #e7e7e7 0 24%, #5b5b5b 25% 40%, transparent 41%);
  background-size: 16px 32px;
  background-repeat: repeat-y;
  filter: drop-shadow(0 0 4px #000);
  z-index: -1;
}
.container-chains::before {
  left: 8px;
}
.container-chains::after {
  right: 8px;
}

/* ---- ЗАГОЛОВОК ПАНЕЛИ (как "Кампания" и т.п.) ---- */

.main-title {
  margin: 4px 8px 10px;
  padding: 4px 8px;

  background: linear-gradient(180deg, #2e2e2e 0%, #161616 100%);
  border-radius: 2px;
  border: 2px solid #040507;
  box-shadow:
    0 0 0 1px #6b6b6b,
    inset 0 0 8px rgba(0, 0, 0, 0.9);

  font-size: 20px;
  color: #f3e7b5;
  text-shadow:
    1px 1px 0 #000,
    0 0 8px #000;
}

/* Подзаголовок (если нужен) */
.main-subtitle {
  margin: 0 8px 12px;
  font-size: 13px;
  color: #d1e0ff;
  text-shadow: 1px 1px 0 #000;
}

/* Блок с логотипом */
.logo-container {
  text-align: center;
  margin: 6px 0 10px;
}
.logo-container img {
  max-width: 260px;
  filter:
    drop-shadow(0 0 10px #000)
    drop-shadow(0 0 20px rgba(0, 160, 255, 0.8));
}

/* ---- АУДИОПЛЕЕР ---- */

.war3-audio {
  margin: 6px 0 10px;
  padding: 6px;
  background: linear-gradient(180deg, #303030 0%, #141414 100%);
  border-radius: 3px;
  border: 2px solid #000;
  box-shadow:
    0 0 0 1px #676767,
    inset 0 0 10px #000;
}
.war3-audio audio {
  width: 100%;
  height: 28px;
  filter: invert(0.9) hue-rotate(180deg) contrast(1.1);
}

/* ---- ПОИСК ---- */

#search {
  display: block;
  width: 100%;
  margin: 6px 0 10px;
  padding: 7px 10px;
  box-sizing: border-box;

  font-size: 13px;
  color: #eaf2ff;

  background: #161925;
  border-radius: 3px;
  border: 2px solid #000;
  box-shadow:
    0 0 0 1px #6e6e6e,
    inset 0 0 10px #000;
  outline: none;
}

#search::placeholder {
  color: #a3b0d0;
}

#search:focus {
  box-shadow:
    0 0 0 1px #c7c7c7,
    0 0 10px rgba(0, 180, 255, 0.7),
    inset 0 0 12px #000;
}

/* ---- СИНИЕ КНОПКИ МЕНЮ (ВОПРОСЫ, КРАШИ И Т.Д.) ---- */

/* если у тебя другой класс для больших кнопок – просто добавь его сюда */
#vop,
.menu-btn,
.big-btn {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px 10px;
  box-sizing: border-box;
  text-align: center;

  font-size: 15px;
  font-weight: normal;
  color: #f5e7b5;
  text-shadow:
    1px 1px 0 #000,
    0 0 6px #000;

  background:
    linear-gradient(180deg, #1a1f4e 0%, #040724 60%, #000214 100%);
  border-radius: 2px;

  border: 2px solid #000205;
  box-shadow:
    0 0 0 1px #5d5c91,
    0 0 12px rgba(0, 0, 0, 0.9),
    inset 0 0 10px rgba(0, 0, 0, 0.9);

  cursor: pointer;
  text-decoration: none;
  transition:
    box-shadow 0.12s ease,
    transform 0.06s ease,
    background 0.12s ease,
    color 0.12s ease;
}

#vop:hover,
.menu-btn:hover,
.big-btn:hover {
  background:
    linear-gradient(180deg, #232a6b 0%, #050735 55%, #010318 100%);
  box-shadow:
    0 0 0 1px #d2c566,
    0 0 16px rgba(255, 222, 111, 0.5),
    inset 0 0 12px rgba(0, 0, 0, 0.95);
  color: #fff6cf;
}

#vop:active,
.menu-btn:active,
.big-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 0 0 1px #c7a94e,
    0 0 8px rgba(0, 0, 0, 0.9),
    inset 0 0 16px rgba(0, 0, 0, 1);
}

/* ---- ОБЩАЯ ТИПИЗАЦИЯ КНОПОК (submit и т.п.) ---- */

button,
.btn {
  @apply .menu-btn;
}

/* Если @apply не поддерживается – продублируй .menu-btn в HTML-классе */



/* ---- ПАНЕЛИ ВНУТРИ (ТЕКСТ / ФОРМЫ) ---- */

.space2,
.space22,
form {
  margin-top: 10px;
  padding: 10px 10px 12px;
  box-sizing: border-box;

  background: #14161f;
  border-radius: 3px;

  border: 2px solid #000;
  box-shadow:
    0 0 0 1px #595959,
    inset 0 0 10px #000;
}

.space2 p,
.space22 p,
.space2 li,
.space22 li {
  font-size: 13px;
  line-height: 1.5;
  color: #e3ecff;
  text-shadow: 1px 1px 0 #000;
}

/* ---- INPUT / TEXTAREA ---- */

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  margin: 5px 0;
  padding: 7px 9px;
  box-sizing: border-box;
  font-size: 13px;
  font-family: inherit;

  color: #eaf2ff;
  background: #111321;
  border-radius: 3px;
  border: 2px solid #000;
  box-shadow:
    0 0 0 1px #555a7f,
    inset 0 0 10px #000;
  outline: none;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a0aec8;
}

input:focus,
textarea:focus {
  box-shadow:
    0 0 0 1px #cec58b,
    0 0 10px rgba(255, 228, 124, 0.5),
    inset 0 0 12px #000;
}

/* ---- СПОЙЛЕРЫ details/summary КАК ПАНЕЛИ ---- */

details {
  margin-top: 10px;
  background: #1d1f2b;
  border-radius: 3px;
  border: 2px solid #000;
  box-shadow:
    0 0 0 1px #5c5c5c,
    inset 0 0 10px #000;
}

details[open] {
  box-shadow:
    0 0 0 1px #d2c566,
    0 0 14px rgba(255, 216, 104, 0.3),
    inset 0 0 12px #000;
}

details > summary {
  padding: 7px 9px;
  cursor: pointer;
  list-style: none;
  user-select: none;

  font-size: 14px;
  color: #f5e7b5;
  text-shadow:
    1px 1px 0 #000,
    0 0 6px #000;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Внутренний контент спойлера */
details .spoiler-content {
  padding: 6px 9px 9px;
  border-top: 1px solid #343843;
  animation: wc3Spoiler 0.18s ease-out;
}

@keyframes wc3Spoiler {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- ССЫЛКИ ---- */

a {
  color: #cdd8ff;
  text-decoration: none;
}
a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(173, 198, 255, 0.8);
}

/* ---- СКРОЛЛБАР ---- */

::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #050507;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2d2f4f, #5a5d9a);
  border-radius: 6px;
  border: 1px solid #020309;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #444982, #7c81c7);
}

/* ---- АДАПТИВ ---- */

@media (max-width: 1100px) {
  .container {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .wrapper {
    padding: 16px 8px 24px;
  }
  .container {
    max-width: 100%;
    padding: 14px 10px 16px;
    border-width: 3px;
  }
  .main-title {
    font-size: 17px;
    margin: 2px 4px 8px;
  }
  #vop,
  .menu-btn,
  .big-btn {
    font-size: 14px;
    padding: 7px 8px;
  }
}












/* Глобальный курсор Warcraft III */
body {
  cursor: url("/img/war3-cursor-gauntlet.cur"), auto;
}

/* Все интерактивные элементы наследуют тот же курсор */
a,
button,
input,
textarea,
summary,
label,
select {
  cursor: inherit;
}





html, body {
  font-size: 16px; /* было 14px → увеличено */
}

textarea {
  min-height: 140px;   /* базовый размер как просил */
  max-height: 320px;   /* чтобы не растягивало страницу */
  overflow-y: auto;    /* внутренний скролл */
  resize: vertical;    /* только вертикальное растяжение */

  font-size: 15px;     /* чуть крупнее текст */
  padding: 8px 9px;
  box-sizing: border-box;

  background: #111321;
  border-radius: 3px;
  border: 2px solid #000;

  color: #eaf2ff;
  box-shadow:
    0 0 0 1px #555a7f,
    inset 0 0 10px #000;
}









/* Все кнопки получают стиль WC3, кроме "Наверх" */
button:not([title="Наверх"]) {
  display: inline-block;
  padding: 8px 14px;
  min-width: 160px;
  text-align: center;
  box-sizing: border-box;

  font-size: 15px;
  font-weight: normal;
  color: #f5e7b5;
  text-shadow:
    1px 1px 0 #000,
    0 0 6px #000;

  background: linear-gradient(180deg, #1a1f4e 0%, #040724 60%, #000214 100%);
  border: 2px solid #000205;
  border-radius: 2px;

  box-shadow:
    0 0 0 1px #5d5c91,
    0 0 12px rgba(0, 0, 0, 0.9),
    inset 0 0 10px rgba(0, 0, 0, 0.9);

  cursor: inherit;
  transition:
    background 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.06s ease,
    color 0.12s ease;
}

button:not([title="Наверх"]):hover {
  background: linear-gradient(180deg, #232a6b 0%, #050735 55%, #010318 100%);
  color: #fff6cf;
  box-shadow:
    0 0 0 1px #d2c566,
    0 0 16px rgba(255, 222, 111, 0.5),
    inset 0 0 12px rgba(0, 0, 0, 0.95);
}

button:not([title="Наверх"]):active {
  transform: translateY(1px);
  box-shadow:
    0 0 0 1px #c7a94e,
    0 0 8px rgba(0, 0, 0, 0.9),
    inset 0 0 16px rgba(0, 0, 0, 1);
}


/* Глобальное увеличение текста на всём сайте */
html, body {
  font-size: 17px !important;
  line-height: 1.5;
}







/* 1. Базово: все изображения подстраиваются под родителя */
img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* 2. В твоих основных блоках (контейнер, спойлеры и т.п.) */
.container img,
.space2 img,
.space22 img,
details img,
form img {
  max-width: 100%;
  height: auto;
}

/* 3. На мобильных — жёстко запрещаем картинкам вылезать за блоки */
@media (max-width: 640px) {
  .container img,
  .space2 img,
  .space22 img,
  details img,
  form img {
    display: block;
    width: 100%;   /* вписать по ширине родителя */
    height: auto;
  }

  /* Если где-то из-за картинок появлялся горизонтальный скролл — режем */
  body {
    overflow-x: hidden;
  }
}


/* === ВАРКРАФТОВСКИЙ КУРСОР — ПОЛНОЕ ПРИНУЖДЕНИЕ === */
html, body, body * {
  cursor: url("/img/Pointer_gauntlet_32x32.png"), auto !important;
}
