/* Импорт классного жирного шрифта */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;700;900&display=swap');

body {
  font-family: 'Rubik', sans-serif;
  background: radial-gradient(circle at 20% 30%, #2b3f4f, #0b0f17);
  color: #e0e0e0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px; /* Немного расширил для воздуха */
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px; /* Добавил отступы по бокам */
  box-sizing: border-box;
}

.container {
  width: 100%;
  flex-grow: 1;
  backdrop-filter: blur(2px); /* Легкий эффект свечения фона */
}

/* Шапка в стиле Glassmorphism */
.header {
  background: rgba(20, 30, 40, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0 0 30px 30px;
  padding: 15px 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0, 255, 200, 0.1);
  border-top: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header .logo {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-left: 5px;
  background: linear-gradient(135deg, #fff 30%, #00ffc3 70%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 195, 0.3);
}

.logo a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: inline-block;
}

.logo a:hover {
  transform: scale(1.05);
  text-shadow: 0 0 30px #00ffc3;
}

.header .icon-buttons {
  display: flex;
  gap: 15px;
  margin-left: 20px;
}

.header .icon-buttons .btn {
  background: rgba(60, 80, 100, 0.4);
  border: 1px solid rgba(0, 255, 195, 0.3);
  padding: 8px 15px;
  font-size: 18px;
  font-weight: bold;
  color: #ccf0e0;
  border-radius: 40px; /* Скругленные пилюли */
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
}

.header .icon-buttons .btn:hover {
  background: #00ffc3;
  border-color: #00ffc3;
  color: #0b0f17;
  box-shadow: 0 0 20px #00ffc3;
  transform: translateY(-2px);
}

/* Баннер в стиле "кибер-панель" */
.advert-banner {
  width: 470px;
  height: 62px;
  display: inline-block;
  margin-right: 20px;
  position: relative;
  overflow: hidden; /* Чтобы плюс не вылазил за скругления */
}

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

/* Кнопка "+" — стильный чип */
.plus-button {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #0b0f17;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.plus-button:hover {
  opacity: 1;
}

#bannerUpload {
  display: none;
}

/* Основной контент */
.main-content {
  padding-top: 10px;
}

/* Карточки (Glassmorphism) */
.item {
  background: rgba(18, 28, 36, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 195, 0.15);
  border-radius: 32px;
  margin-bottom: 20px;
  padding: 20px 25px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.item:hover {
  border-color: rgba(0, 255, 195, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 25px 45px -15px #00ffc322;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.item-title {
  font-size: 1.1em;
  color: #c0f5e8;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  width: 70%;
  flex-grow: 1;
}

.favicon-container {
  width: 38px;
  height: 38px;
  background: #14222b;
  border-radius: 12px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #00ffc3;
  box-shadow: 0 0 8px #00ffc3;
}

.favicon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(1.2);
}

.title-and-small {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-title-text {
  font-size: 1.3em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 255, 200, 0.3);
}

.text-small {
  font-size: 0.75em;
  color: #9aaeb9;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* Кнопка действия */
.item button {
  background: linear-gradient(145deg, #00ffc3, #00a6ff);
  color: #0b0f17;
  font-weight: 700;
  border: none;
  padding: 12px 32px;
  border-radius: 40px;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 255, 195, 0.3);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.item button:hover {
  background: linear-gradient(145deg, #00a6ff, #00ffc3);
  box-shadow: 0 10px 25px #00ffc3;
  transform: scale(1.05);
  color: #000;
}

button:hover {
  filter: brightness(1.1); /* Заменил на более мягкий эффект */
}

/* Футер */
.footer {
  border-top: 2px solid #00ffc3;
  background: rgba(10, 18, 24, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 25px 20px;
  margin-top: 40px;
  text-align: center;
  color: #7f8f99;
  border-radius: 30px 30px 0 0;
  font-size: 0.9em;
}

.footer p {
  margin: 0;
  transition: color 0.2s;
}

.footer:hover p {
  color: #b0c4d4;
}

/* Адаптивность (мобильная версия) */
@media (max-width: 767px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    border-radius: 0 0 20px 20px;
  }

  .header .logo {
    margin-bottom: 5px;
    font-size: 36px;
  }

  .header .advert-banner {
    margin: 5px 0;
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 62px;
  }

  .item-title {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .item button {
    width: 100%;
    padding: 15px;
  }

  .favicon-container {
    width: 32px;
    height: 32px;
  }

  .item-title-text {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .favicon-container {
    display: none; /* Прячем иконку на очень узких экранах */
  }

  .item-title {
    width: 100%;
  }

  .text-small.mHidden {
    display: none;
  }

  .banner_ls,
  .banner_ls div,
  .banner_ls img {
    width: 100% !important;
    height: auto !important;
    min-height: 50px;
  }

  .header .icon-buttons .btn {
    padding: 6px 12px;
    font-size: 16px;
  }
}