@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  background-color: #0f111a;
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
  padding-bottom: 180px;
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 1;
}

/* Кнлопки */

.button-grid.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}


.button-grid.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.button-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 8px;
}

.card-btn {
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  padding: 20px 10px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
  min-height: 110px;
  gap: 10px;
}

.card-btn.is-visible {
  display: flex !important;
}

.card-btn.full-width {
  grid-column: 1 / -1;
}

.card-btn i {
  font-size: 26px;
}

.card-btn span {
  font-size: 0.95rem;
  font-weight: 500;
}

.card-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) inset;
}
.game-thumb {
  width: 100%;
  max-width: 80px;
     object-fit: cover;
  height: auto;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.card-btn:hover .game-thumb {
  transform: scale(1.05);
}

/* ГЛАВНОЕ МЕНЮ */
.global-home-button {
  margin-top: 20px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  display: none;
  text-align: center;
  padding: 0 10px;
}

/* По умолчанию скрыта */
.global-home-button {
  display: none;
}

/* Показывать только если экран активен */
#screen-warzone-main.active .global-home-button {
  display: block;
}



h1 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}


.subtext {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.user-info-block {
  display: none;
  background: #1f2937;
  color: #ddd;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  font-size: 0.95rem;
}

.form-section {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-block {
  background-color: #1c1f2a;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #ccc;
}

.form-input,
select {
  width: 100%;
  padding: 11px 14px;
  background-color: #0f111a;
  border: 1px solid #2a2e3b;
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  height: 44px;
}

select:disabled {
  color: #888;
}

.tab-block {
  background-color: #1c1f2a;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.mod-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mod-row select {
  flex: 1 1 45%;
  min-width: 100px;
}

.btn {
  background: #1f2937;
  width: 100%;
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn:hover {
  background-color: #15566b;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.delete-tab {
  background-color: #402222;
}

.btn.delete-tab:hover {
  background-color: #612626;
}

.btn-back {
  background-color: #2d2d2d;
  color: #fff;
}

.top-tag {
  padding: 5px 10px;
  border-radius: 5px;
  margin-right: 5px;
  font-size: 13px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tab-btn {
  background-color: #202532;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.tab-btn:hover {
  background-color: #2c3442;
}

.tab-panel {
  padding: 12px;
  background: #141821;
  border-radius: 8px;
}

.mod-block {
  background: #22242d;
  padding: 8px 10px;
  border-radius: 6px;
  margin: 5px 0;
  font-size: 0.95rem;
}

#tabs-container .form-input,
#tabs-container select {
  margin-bottom: 0;
}

#submit-build {
  margin-top: 20px;
}

.tab-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.tab-actions .delete-tab {
  background-color: #402222;
}

.tab-actions .delete-tab:hover {
  background-color: #612626;
}



/* анимация перехода */

.screen {
  opacity: 0;
  transform: translateY(10px); /* чуть меньше — плавнее */
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.screen.active {
  display: block; /* останется, но будет изначально */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* СБОРКИ */

.loadout__header {
  display: flex;
  padding: 20px;
  border-radius: 8px;
  flex-direction:column;
  background: #171D25;
  color: #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


.loadout__header--top{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    width:100%;
}

.loadout__toggle-icon {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.loadout__title {
  flex: 1;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  text-transform: capitalize;
}


.loadout__tab-content {
  display: none;
}
.loadout__tab-content.is-active {
  display: block;
}


.loadout__meta {
  display: flex;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.loadout__tab-buttons{
  display:flex;
  gap:20px;
}

.loadout__tops {
  display: flex;
  gap: 8px;
}

.loadout__top {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
}

.loadout__top--gold {
  background: linear-gradient(90deg, #ffe259, #ffa751);
}

.loadout__top--orange {
  background: linear-gradient(90deg, #ff9966, #ff5e62);
}

.loadout__top--silver {
  background: linear-gradient(90deg, #bdc3c7, #2c3e50);
}

.loadout__type {
  padding: 5px 10px;
  background: #2d2d2d;
  border-radius: 4px;
  color: #17a51c;
  font-size: 0.9rem;
  font-weight: 500;
}



.loadout{
    transition: 0.3s ease;
    background: #171D25;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


.loadout__tab{
        color: #fff;
    padding: 5px 15px;
    border-radius: 20px 4px 20px 4px;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    background: transparent;
    border: 1px solid rgba(23, 165, 28, 0.5);
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    
  transform: scale(1);
}

.loadout__tab:active {
  transform: scale(0.95); /* "вжимание" при клике */
}

.loadout__inner {
  padding: 20px;
}


.loadout__toggle-icon i {
  transition: transform 0.3s ease;
}

.loadout.is-open .loadout__toggle-icon i {
  transform: rotate(180deg);
}

.loadout__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}


.loadout__thumb {
  width: 200px;
  height: auto;
}

.loadout__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.loadout__module {
  width: calc(50% - 10px);
  background: #1B2838;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  box-sizing: border-box;
}

.loadout__module-slot {
  font-size: 1rem;
  color: #666;
  margin-right: 10px;
  white-space: nowrap;
}

.loadout__module-name {
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin-list li {
  margin-bottom: 10px;
}


#builds-list{
    display: flex;
    gap: 20px;
    flex-direction: column;
}

/* стили для красивой таблицы */

.build-card {
  background-color: #1e1f26;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.build-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn.btn-sm {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
}

/* версия приложение стили */

.footer-note {
  margin-top:50px;
    display: flex;
    flex-direction: column;
  gap:10px;
  background: #1f2937;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  color: #aaa;
  text-align: center;
  font-size: 1rem;
  padding-top:20px;
  padding-bottom:30px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  opacity: 1;
}


.version-clickable {
  transition: color 0.2s ease, transform 0.1s ease;
}

.version-clickable:hover {
  color: #22c55e; /* ярко-зелёный оттенок */
  text-decoration: underline;
  cursor: pointer;
}

.version-clickable:active {
  transform: scale(0.95); /* эффект нажатия */
}

.version-hint {
  position: fixed;
  bottom: 90px; /* чуть выше футера */
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #6ee7b7;
  opacity: 0.8;
  z-index: 998;
  animation: fadeIn 0.6s ease, fadeOut 0.6s ease 6s forwards;
}

@keyframes fadeOut {
  from { opacity: 0.8; transform: translateY(0); }
  to { opacity: 0; transform: translateY(5px); }
}



.version-entry {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

.version-entry br{
  display:none;
}

@media (max-width: 550px) {
  .loadout__module {
    width: 100%;
  }

  .loadout__module-slot{
    font-size: 0.8rem;
  }

  .loadout__module-name {
      font-size: 0.9rem;
  }

}
