/* styles.css */
@font-face {
  font-family: 'Keleti';
  src: url('Keleti-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  background: linear-gradient(to bottom, #000, #001020);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Логотип и кнопки сверху, вкладки ниже */
  font-family: 'Keleti', 'Arial', sans-serif;
  touch-action: manipulation;
}
#container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: -1;
}
.logo-container {
  position: relative;
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 800px;
  margin: 20px auto; /* Небольшой отступ сверху */
}
#logo {
  width: 70vw;
  max-width: 800px;
  min-width: 250px;
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.5));
  pointer-events: none;
}
.buttons {
  margin-top: 5vw;
  display: flex;
  justify-content: center;
  gap: 8vw;
  flex-wrap: nowrap;
}
.button {
  width: 18vw;
  height: 18vw;
  max-width: 150px;
  max-height: 150px;
  min-width: 80px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.9;
  cursor: pointer;
  color: #ffffff;
  font-size: 14vw;
  text-decoration: none;
}
.button:focus,
.button:active,
.button:visited {
  text-decoration: none;
  outline: none;
}
.button:hover,
.button:active {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
}
@media (max-width: 768px) {
  #logo { width: 80vw; min-width: 200px; }
  .buttons { margin-top: 8vw; gap: 10vw; }
  .button { width: 20vw; height: 20vw; font-size: 16vw; }
}
@media (max-width: 480px) {
  .buttons { gap: 12vw; }
  .button { width: 22vw; height: 22vw; font-size: 18vw; }
}
audio { display: none; }

.tabs {
width: 90%;
max-width: 900px;
margin: 20px auto;
z-index: 10;
}
.tab-buttons {
display: flex;
flex-wrap: wrap; /* Перенос на мобильных */
justify-content: center;
gap: 15px; /* Меньший gap для мобильных */
margin-bottom: 20px;
background: rgba(0, 0, 0, 0.7); /* Черное поле для кнопок */
padding: 15px;
border-radius: 15px; /* Закругленные углы */
box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* Легкое свечение */
}
.tab-button {
padding: 12px 25px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.3);
color: #fff;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Keleti', sans-serif;
font-size: 18px;
border-radius: 10px;
opacity: 0.9;
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
flex: 1 1 45%; /* Каждая кнопка занимает ~45% ширины, по 2 в ряд */
max-width: 200px; /* Ограничение максимальной ширины */
text-align: center;
}
.tab-button:hover {
background: rgba(255, 255, 255, 0.15);
transform: scale(1.1);
opacity: 1;
filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
}
.tab-button.active {
background: rgba(255, 255, 255, 0.25);
filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}
.tab-content {
background: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 10px;
color: #ffffff;
display: none;
}
.tab-content.active {
display: block;
}

/* Медиа-запрос для мобильных устройств (до 768px) */
@media (max-width: 768px) {
.tab-buttons {
  gap: 10px;
  padding: 10px;
}
.tab-button {
  padding: 10px 15px;
  font-size: 16px;
  flex: 1 1 40%; /* На маленьких экранах ~2 в ряд */
}
}

/* Для очень маленьких экранов (до 480px) — 2 кнопки в ряд */
@media (max-width: 480px) {
.tab-button {
  flex: 1 1 48%; /* Почти полная ширина для 2 в ряд */
  font-size: 14px;
  padding: 8px 10px;
}
}

/* Стили для новостей */
#news-list .news-item {
margin-bottom: 40px;
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 10px;
opacity: 0;
transform: translateY(50px);
transition: opacity 0.5s ease, transform 0.5s ease;
text-align: left;
}
#news-list .news-item.visible {
opacity: 1;
transform: translateY(0);
}
.news-title {
font-size: 24px;
margin-bottom: 10px;
}
.news-date {
font-size: 14px;
color: #aaa;
margin-bottom: 10px;
}
.news-content {
font-size: 16px;
margin-bottom: 20px;
line-height: 1.65;
}
.news-content p {
  margin-bottom: 1.2em;
}

.news-content p:last-child {
  margin-bottom: 0;
}
.news-image {
max-width: 100%;
height: auto;
border-radius: 5px;
display: block;
margin: 10px auto;
}

/* Стили для контактов (простой текст) */
#contacts-list {
text-align: left;
font-size: 16px;
line-height: 1.5;
}
.contact-label {
font-weight: bold;
margin-top: 15px;
display: block;
}
.contact-value {
margin-bottom: 10px;
}
.contact-image {
max-width: 100%;
height: auto;
border-radius: 5px;
display: block;
margin: 10px 0;
}

/* Стили для магазина (аутентично общему стилю) */
#shop-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.shop-item {
padding: 15px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 10px;
text-align: center;
opacity: 0;
transform: translateY(50px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.shop-item.visible {
opacity: 1;
transform: translateY(0);
}
.shop-image {
max-width: 100%;
height: auto;
border-radius: 5px;
margin-bottom: 10px;
}
.shop-title {
font-size: 20px;
margin: 10px 0;
}
.shop-descr {
font-size: 14px;
margin-bottom: 10px;
}
.shop-sizes {
font-size: 14px;
color: #aaa;
margin-bottom: 10px;
}
.shop-price {
font-size: 18px;
color: #ffd700; /* Золотой цвет для цены */
margin-bottom: 15px;
}
.shop-buy-button {
padding: 10px 20px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: all 0.3s;
display: inline-block;
}
.shop-buy-button:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.controls {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}
#language-select {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px;
  border-radius: 5px;
  font-family: 'Keleti', sans-serif;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.3s ease;
}
#language-select:hover {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}
.music-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.3s ease;
}
.music-toggle:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.vk-open-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 18px;
  background: #0077ff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}
.vk-open-button:hover {
  background: #0055cc;
  transform: translateY(-2px);
}
.vk-mention {
  color: #0077ff;
  text-decoration: underline;
}
.irc-window {
  background: #000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  padding: 20px;
  height: 620px;
  overflow-y: auto;
  border: 3px solid #00aa00;
  box-shadow: 0 0 20px #00ff00;
  line-height: 1.45;
}

.irc-line { margin-bottom: 8px; }
.irc-time { color: #00cc00; }
.irc-user { color: #00ffff; font-weight: bold; }
.irc-text { color: #aaffaa; }

.irc-open-button {
  display: block;
  margin: 20px auto 0;
  padding: 14px 40px;
  background: #001100;
  color: #00ff00;
  border: 2px solid #00ff00;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.3s;
}

.irc-open-button:hover {
  background: #003300;
  box-shadow: 0 0 20px #00ff00;
}

.server-card {
  border: 1px solid rgba(0, 255, 0, 0.3);
  background: rgba(0, 20, 0, 0.4);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.server-card h3 {
  color: #00ff00;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.server-address code {
  background: #222;
  padding: 2px 6px;
  color: #ff0044;
}

/* Статус конкретного сервера D2DF */
.d2df-item {
  border-left: 3px solid #00ff00;
  padding-left: 10px;
  margin-top: 10px;
}

.status-online { color: #00ff00; font-weight: bold; }
.status-map { color: #aaa; font-size: 0.9em; }

/* Интерфейс раздела Группа */
.band-interface {
  color: #aaffaa;
  text-shadow: 0 0 5px #00ff00;
}

.band-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #00ff00;
}

.band-divider {
  border: 0;
  border-top: 1px double #00ff00;
  margin: 15px 0;
  opacity: 0.5;
}

.manifesto-text {
  font-size: 1.1em;
  line-height: 1.4;
  margin-bottom: 20px;
  min-height: 100px;
}

/* Сетка для "компонентов" группы */
.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.band-card {
  border: 1px solid #004400;
  padding: 10px;
  background: rgba(0, 20, 0, 0.6);
  transition: all 0.3s;
}

.band-card:hover {
  border-color: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

.card-label {
  font-size: 0.7em;
  color: #00ff00;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.card-value {
  font-size: 1em;
}