/* Game Center — лента активности.
   https://docs.instantcms.ru/dev/templates/css-js
   Путь: controllers/activity/css/theme.css
   Подключение: $this->addControllerCSS('theme', 'activity', false);
*/

.gc-html {
  --bg: #071019;
  --surface: #0d1823;
  --surface-2: #122231;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f7fb;
  --muted: #7f93a8;
  --blue: #20a8f3;
}

.gc-html .gc-activity-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(41, 142, 193, 0.12), transparent 30rem),
    transparent;
}

.gc-html .gc-activity-page .section-shell {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.gc-html .gc-activity-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #83d8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gc-html .gc-activity-page .eyebrow::before {
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.gc-html .gc-activity-page .eyebrow--blue {
  color: #41b9e8;
}

.gc-html .activity-heading {
  padding-top: 42px;
  padding-bottom: 30px;
}

.gc-html .activity-crumbs {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 8px;
  color: #5f7485;
  font-size: 12px;
  font-weight: 600;
}

.gc-html .activity-crumbs a {
  color: inherit;
}

.gc-html .activity-crumbs a:hover {
  color: #dcecf4;
  text-decoration: none;
}

.gc-html .activity-heading__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.gc-html .activity-heading h1 {
  margin: 8px 0;
  color: #f3f7fb;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.gc-html .activity-heading p {
  margin: 0;
  max-width: 620px;
  color: #7d92a3;
  font-size: 14px;
}

.gc-html .activity-shell {
  display: grid;
  padding-bottom: 84px;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 28px;
}

.gc-html .activity-main {
  min-width: 0;
}

.gc-html .activity-toolbar {
  display: flex;
  min-height: 58px;
  margin-bottom: 22px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(11, 24, 34, 0.82);
}

.gc-html .activity-tabs {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.gc-html .activity-tabs .content_datasets,
.gc-html .activity-tabs .activity-datasets {
  margin: 0 !important;
}

.gc-html .activity-tabs .content_datasets_description {
  display: none;
}

.gc-html .activity-tabs .nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.gc-html .activity-tabs .nav-item {
  margin: 0;
}

.gc-html .activity-tabs .nav-link,
.gc-html .activity-tabs .nav-link.active,
.gc-html .activity-tabs span.nav-link {
  display: inline-flex;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: #6f8597;
  align-items: center;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.gc-html .activity-tabs .nav-link:hover {
  color: #d7e8f1;
}

.gc-html .activity-tabs .nav-link.active,
.gc-html .activity-tabs .is-active .nav-link,
.gc-html .activity-tabs span.nav-link.active {
  color: #06131b;
  background: linear-gradient(115deg, #70d8fa, #3bb5e9);
}

.gc-html .activity-tabs .badge {
  display: none;
}

.gc-html .activity-search {
  display: flex;
  width: 190px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #1a2d3b;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  background: #09151f;
  flex: none;
}

.gc-html .activity-search svg {
  width: 14px;
  height: 14px;
  color: #607587;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex: none;
}

.gc-html .activity-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #dceaf1;
  background: transparent;
  font: inherit;
  font-size: 11px;
}

.gc-html .activity-search input::placeholder {
  color: #526879;
}

.gc-html .activity-feed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 20, 29, 0.74);
}

.gc-html .activity-day {
  padding: 22px 22px 4px;
}

.gc-html .activity-day + .activity-day {
  border-top: 1px solid var(--line);
}

.gc-html .activity-day__heading {
  display: flex;
  margin-bottom: 3px;
  align-items: center;
  gap: 10px;
}

.gc-html .activity-day__heading h2 {
  margin: 0;
  color: #d9e8ef;
  font-size: 13px;
  font-weight: 800;
}

.gc-html .activity-day__heading i {
  height: 1px;
  background: var(--line);
  flex: 1;
}

.gc-html .activity-day__icon {
  display: grid;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(74, 192, 238, 0.22);
  border-radius: 50%;
  color: #55c4ec;
  background: #0b202c;
  place-items: center;
}

.gc-html .activity-day__icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gc-html .activity-entry {
  display: grid;
  padding: 18px 0 19px 35px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  animation: gc-activity-rise 450ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gc-html .activity-entry[hidden],
.gc-html .activity-day[hidden] {
  display: none;
}

.gc-html .activity-entry + .activity-entry {
  border-top: 1px solid rgba(28, 45, 58, 0.7);
}

.gc-html .activity-entry__avatar {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(112, 216, 250, 0.18);
  border-radius: 50%;
  color: #e8f5fa;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.gc-html .activity-entry__avatar--blue { background: linear-gradient(145deg, #288ec0, #16506e); }
.gc-html .activity-entry__avatar--green { background: linear-gradient(145deg, #319477, #185448); }
.gc-html .activity-entry__avatar--purple { background: linear-gradient(145deg, #7d68bd, #46366f); }
.gc-html .activity-entry__avatar--orange { background: linear-gradient(145deg, #bb7248, #6b3928); }

.gc-html .activity-entry__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-html .activity-entry__avatar i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  border: 2px solid #09151e;
  border-radius: 50%;
  background: #4cd590;
}

.gc-html .activity-entry__body {
  min-width: 0;
  padding-top: 1px;
}

.gc-html .activity-entry__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gc-html .activity-entry__top p,
.gc-html .activity-entry__top p.h6,
.gc-html .activity-entry__top h6 {
  margin: 0;
  color: #9cafbc;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.gc-html .activity-entry__top p a,
.gc-html .activity-entry__top a.author {
  color: #54c5ed;
  font-weight: 800;
}

.gc-html .activity-entry__top p a:hover,
.gc-html .activity-entry__top a.author:hover {
  color: #a7e9ff;
  text-decoration: none;
}

.gc-html .activity-entry__top button {
  border: 0;
  color: #536a7b;
  cursor: pointer;
  background: transparent;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gc-html .activity-entry__top .dropdown-menu {
  background: #0d1924;
  border-color: var(--line);
}

.gc-html .activity-entry time,
.gc-html .activity-entry .date {
  display: block;
  margin-top: 4px;
  color: #b16b52;
  font-size: 9px;
  font-weight: 700;
}

.gc-html .activity-entry__preview {
  display: flex;
  margin-top: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #1a2d3b;
  border-radius: 8px;
  color: #7e93a2;
  align-items: center;
  gap: 11px;
  background: #0b1822;
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
}

.gc-html .activity-entry__preview:hover {
  border-color: rgba(74, 192, 238, 0.3);
  color: #b8c9d2;
  text-decoration: none;
}

.gc-html .activity-entry__preview-icon {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #52c2eb;
  background: rgba(65, 169, 209, 0.12);
  flex: none;
  place-items: center;
}

.gc-html .activity-entry__preview-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gc-html .activity-entry__photo {
  position: relative;
  display: block;
  width: min(330px, 100%);
  height: 118px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: #0b1822;
  background-position: center;
  background-size: cover;
}

.gc-html .activity-entry__photo span {
  position: absolute;
  right: 13px;
  bottom: 11px;
  left: 13px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.gc-html .activity-empty {
  margin: 0;
  padding: 34px;
  color: #718697;
  text-align: center;
  font-size: 12px;
}

.gc-html .activity-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gc-html .activity-side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1822;
}

.gc-html .activity-stats {
  display: grid;
  margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gc-html .activity-stats div {
  display: flex;
  min-width: 0;
  padding: 12px 5px;
  border: 1px solid #192b38;
  border-radius: 8px;
  align-items: center;
  flex-direction: column;
  background: #09151e;
}

.gc-html .activity-stats strong {
  color: #e8f3f8;
  font-size: 18px;
}

.gc-html .activity-stats span {
  margin-top: 3px;
  color: #5f7485;
  text-align: center;
  font-size: 7px;
}

.gc-html .activity-side-title {
  display: flex;
  margin-bottom: 11px;
  align-items: center;
  justify-content: space-between;
}

.gc-html .activity-side-title h2 {
  margin: 0;
  color: #e8f3f8;
  font-size: 13px;
}

.gc-html .activity-side-title > span {
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #54c5ed;
  background: rgba(65, 169, 209, 0.12);
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}

.gc-html .activity-online-user {
  display: flex;
  padding: 10px 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.gc-html .activity-online-user + .activity-online-user {
  border-top: 1px solid rgba(28, 45, 58, 0.72);
}

.gc-html .activity-online-user .activity-entry__avatar {
  width: 31px;
  height: 31px;
  font-size: 8px;
  flex: none;
}

.gc-html .activity-online-user > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.gc-html .activity-online-user strong {
  color: #c3d2da;
  font-size: 10px;
}

.gc-html .activity-online-user small {
  margin-top: 2px;
  color: #5d7384;
  font-size: 8px;
}

.gc-html .activity-side-link {
  display: flex;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #52c2eb;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.gc-html .activity-side-link:hover {
  color: #a7e9ff;
}

.gc-html .activity-side-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gc-html .gc-activity-page .pagebar,
.gc-html .gc-activity-page .pagination {
  margin-top: 18px;
}

@keyframes gc-activity-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .gc-html .activity-shell {
    grid-template-columns: 1fr;
  }

  .gc-html .activity-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gc-html .activity-heading__row,
  .gc-html .activity-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .gc-html .activity-toolbar {
    padding-block: 12px;
  }

  .gc-html .activity-tabs {
    overflow-x: auto;
  }

  .gc-html .activity-search {
    width: 100%;
  }

  .gc-html .activity-day {
    padding-inline: 14px;
  }

  .gc-html .activity-entry {
    padding-left: 0;
  }

  .gc-html .activity-sidebar {
    display: flex;
  }
}
