/**
 * Top bar: Home + social icons (Font Awesome 6 via CDN, not Kit).
 */

.home-social {
  position: absolute;
  z-index: 100;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 20px max(24px, env(safe-area-inset-right)) 20px max(24px, env(safe-area-inset-left));
  pointer-events: none;
}

.home-social > * {
  pointer-events: auto;
}

/* Glass strip feel without full-width bar — cards read cleaner on any width */
.home-social__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Golos UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  border: 1px solid rgba(100, 120, 150, 0.45);
  background: rgba(12, 16, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.home-social__home:hover {
  color: #fff;
  border-color: rgba(147, 173, 189, 0.65);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.home-social__home:focus-visible {
  outline: 2px solid #93adbd;
  outline-offset: 3px;
}

.home-social__home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #c5d4e0;
  font-size: 16px;
  transition: background 0.25s ease, color 0.25s ease;
}

.home-social__home:hover .home-social__home-icon {
  background: rgba(147, 173, 189, 0.2);
  color: #fff;
}

.home-social__home-text {
  line-height: 1.2;
}

.home-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.home-social__list li {
  margin: 0;
  padding: 0;
}

.home-social__icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  background: rgba(12, 16, 24, 0.65);
  border: 1px solid rgba(100, 120, 150, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-social__icon-link:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(147, 173, 189, 0.5);
  background: rgba(20, 28, 40, 0.85);
}

.home-social__icon-link:focus-visible {
  outline: 2px solid #93adbd;
  outline-offset: 2px;
}

/* Brand tints on hover (subtle) */
.home-social__icon-link--fb:hover {
  color: #8b9cff;
  border-color: rgba(139, 156, 255, 0.45);
}
.home-social__icon-link--tg:hover {
  color: #5eb5ff;
  border-color: rgba(94, 181, 255, 0.45);
}
.home-social__icon-link--yt:hover {
  color: #ff7a7a;
  border-color: rgba(255, 122, 122, 0.45);
}
.home-social__icon-link--dc:hover {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.45);
}
.home-social__icon-link--ig:hover {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.45);
}

@media (max-width: 768px) {
  .home-social {
    padding: 14px max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
    gap: 12px 14px;
  }

  .home-social__home {
    padding: 10px 16px;
    font-size: 12px;
    gap: 10px;
    flex: 1 1 auto;
    min-width: min(100%, 220px);
    justify-content: center;
  }

  .home-social__home-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .home-social__list {
    flex: 1 1 100%;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .home-social__home {
    width: 100%;
    min-width: 0;
  }

  .home-social__icon-link {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 16px;
  }
}
