/*=============================================================================
  Подключение шрифта Oswald и глобальные сбросы
=============================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Oswald', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
}

/*=============================================================================
  Общие элементы: контейнер, центрирование, заголовки
=============================================================================*/
.container {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 20px;
  z-index: 2;
}

.arrow-down {
  font-size: 1.8em;
  color: #ff3333;
  margin: 20px 0;
  animation: arrow-bounce 1.5s infinite ease-in-out;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/*=============================================================================
  === СТИЛИ ДЛЯ index.html (главная “ранний доступ”) ===
=============================================================================*/
body.split {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

.panel.left {
  flex: 0 0 55%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: #1e1e1e;
  color: #ffffff;
  border-top-right-radius: 100vh;
  border-bottom-right-radius: 100vh;
  box-shadow: 5px 0px 15px 0px rgba(255, 215, 0, 0);
  animation: panel-left-glow 5s infinite ease-in-out;
  z-index: 2;
  margin-right: -10vh;
  padding: 20px;
}

@keyframes panel-left-glow {
  0%   { box-shadow: 5px 0px 15px 0px rgba(255, 215, 0, 0.3); }
  50%  { box-shadow: 7px 0px 25px 5px rgba(255, 215, 0, 0.6); }
  100% { box-shadow: 5px 0px 15px 0px rgba(255, 215, 0, 0.3); }
}

.panel.right {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #121212;
  color: #e0e0e0;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.panel.left .container { color: #ffffff; }
.panel.left .logo {
  width: 80px; height: auto; margin-bottom: 12px; border-radius: 50%;
  border: 3px solid rgba(255, 0, 0, 0.7);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  display: block; margin-left: auto; margin-right: auto; object-fit: cover;
}
.panel.left h1 { color: #ffffff; font-size: 2.2em; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.panel.left p  { color: #cccccc; font-size: 1em; font-weight: 500; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }

.panel.left .link-button {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  position: relative; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.1em; font-weight: 700; padding: 12px 20px;
  margin: 20px auto; border-radius: 30px; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  width: fit-content;
}
.panel.left .link-button .icon { margin-right: 8px; font-size: 1.3em; }
.panel.left .link-button:hover {
  background-color: #2a2a2a;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
  transform: scale(1.05);
}
.panel.left footer { color: #777777; margin-top: 30px; font-size: 0.85em; }

.invite-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background-color: #1e1e1e;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.invite-box h2, .invite-box label, .invite-box input, .invite-box button, .invite-box .flash { color: #e0e0e0; }
.invite-box h2 { color: #ffffff; }
.invite-box input {
  background-color: #121212;
  border: 2px solid #333333;
  color: #ffffff;
  width: 100%;
  padding: 12px;
  font-size: 1em;
}
.invite-box input:focus { border-color: #ff3333; box-shadow: 0 0 5px rgba(255, 0, 0, 0.4); }
.invite-box button {
  background-color: #ff3333;
  color: #ffffff;
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.invite-box button:hover { background-color: #cc0000; transform: translateY(-2px); }
.invite-box .flash { color: #e05252; }

/*=============================================================================
  === СТИЛИ ДЛЯ link_page.html (мультиссылки) ===
=============================================================================*/
body.linkpage-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.linkpage-header { margin-bottom: 25px; }
.linkpage-header .logo {
  width: 100px;
  height: auto;
  margin: 0 auto 12px auto;
  display: block;
  border-radius: 50%;
  border: 3px solid rgba(255, 0, 0, 0.7);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  object-fit: cover;
}

.bot-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.bot-subtitle {
  font-size: 0.9em;
  font-weight: 500;
  color: #cccccc;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.linkpage-body .link-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #1e1e1e;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 20px;
  margin: 12px 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  animation: glow-red 2s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  width: 100%;
}

body.linkpage-body .link-button .btn-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  background-color: #2a2a2a;
  border: 2px solid rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

body.linkpage-body .link-button .text {
  flex-grow: 1;
  text-align: center;
  font-size: 1.25em;
  font-weight: 600;
  padding-right: 40px;
}

/* Эффекты при наведении */
body.linkpage-body .link-button:hover {
  transform: scale(1.05);
  animation: none;
  box-shadow: 0 0 16px 4px rgba(255, 0, 0, 0.6), 0 0 22px 8px rgba(255, 0, 0, 0.3);
}

@keyframes glow-red {
  0%   { box-shadow: 0 0 8px rgba(255, 0, 0, 0.5); }
  50%  { box-shadow: 0 0 16px rgba(255, 0, 0, 0.8); }
  100% { box-shadow: 0 0 8px rgba(255, 0, 0, 0.5); }
}

body.linkpage-body .link-button:nth-of-type(1)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 8%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  filter: blur(0.5px);
  animation: sheen 3s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes sheen {
  0%   { left: -20%; }
  100% { left: 120%; }
}

.footer-note {
  margin-top: 25px;
  font-size: 0.85em;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === КНОПКА ПОДДЕРЖКИ: компактная «пилюля» как у основных === */
body.linkpage-body .support-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.support-button:link,
.support-button:visited {
  color: #ffffff;
  text-decoration: none;
}

.support-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;            /* меньше, чем у больших кнопок */
  border-radius: 30px;
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  font-weight: 700;
  line-height: 1;
  animation: glow-red 2s infinite ease-in-out;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.support-button:hover {
  transform: scale(1.04);
  background-color: #1a1a1a;
  animation: none;
  box-shadow: 0 0 16px 4px rgba(255, 0, 0, 0.6), 0 0 22px 8px rgba(255, 0, 0, 0.3);
}

/* Круглая иконка слева — как у .link-button, но меньше */
.support-button .btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #2a2a2a;
  border: 2px solid rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.support-button .text {
  font-size: 1.0em;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/*=============================================================================
  Адаптивные стили для экранов
=============================================================================*/
@media (max-width: 768px) {
  /* === Адаптация для index.html === */
  body.split { flex-direction: column; }
  .panel.left, .panel.right { flex: none; width: 100%; margin-left: 0; margin-right: 0; }
  .panel.left {
    border-radius: 0 0 35vw 35vw;
    min-height: 55vh;
    margin-bottom: -15vh;
    box-shadow: 0px 5px 15px 0px rgba(255, 215, 0, 0);
    animation: panel-left-glow-mobile 5s infinite ease-in-out;
    z-index: 1;
    padding: 20px;
  }
  @keyframes panel-left-glow-mobile {
    0%   { box-shadow: 0px 5px 15px 0px rgba(255, 215, 0, 0.3); }
    50%  { box-shadow: 0px 7px 25px 5px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0px 5px 15px 0px rgba(255, 215, 0, 0.3); }
  }
  .panel.right { min-height: 45vh; padding-top: 18vh; background-color: #121212; z-index: 0; border-radius: 0; padding: 20px; padding-top: 18vh; }

  /* Общие адаптивные стили */
  .bot-title { font-size: 1.8em; }
  .panel.left h1 { font-size: 1.8em; }
  .bot-subtitle { font-size: 0.75em; }
  .panel.left p { font-size: 0.75em; }

  body.linkpage-body .link-button .text { font-size: 1.05em; padding-right: 20px; }
  .panel.left .link-button { font-size: 0.9em; padding: 10px 15px; margin-top: 15px; }
  body.linkpage-body .link-button { font-size: 0.9em; padding: 10px 15px; }
  body.linkpage-body .link-button .btn-icon { width: 28px; height: 28px; margin-right: 8px; }

  .arrow-down { font-size: 1.3em; margin-bottom: 10px; color: #ff3333; }

  .invite-box { padding: 20px; margin-top: 2vh; max-width: 90%; }
  .invite-box h2 { font-size: 1.1em; }
  .invite-box input, .invite-box button { font-size: 0.85em; padding: 10px; }

  /* Поддержка — мобильные размеры */
  .support-button { padding: 8px 14px; border-radius: 24px; }
  .support-button .btn-icon { width: 24px; height: 24px; }
}
