/* custom.css */

.logotype__img,
.logotype__dec,
.logo__img {
  height: auto;
}

.box_discord {
  content-visibility: auto;
  contain-intrinsic-size: 377px;
}

.widget_discord {
  position: relative;
  min-height: max(23.5625rem, 377px);
}

.widget_discord iframe {
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(17, 17, 17, 0.65);
}

.widget_discord_loaded iframe {
  opacity: 1;
}

.widget__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  color: rgba(232, 209, 166, 0.85);
  border: 1px solid rgba(94, 94, 94, 0.35);
  background: rgba(17, 17, 17, 0.72);
  z-index: 1;
  pointer-events: none;
}

.widget_discord_loaded .widget__placeholder {
  display: none;
}

/* ========================================================
   СОЦІАЛЬНІ КНОПКИ: "ДИХАННЯ ЗОЛОТОМ" (Glow & Shimmer)
   ======================================================== */
.scl__item {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  background: #1e1a1a !important;
  border: 1px solid rgba(86, 74, 74, 0.7) !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffae4f !important;
  text-decoration: none !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  animation: sclPulse 4s infinite !important;
  box-sizing: border-box !important;
}

.scl__item svg,
.scl__item .scl__svg {
  z-index: 2;
  width: 24px !important;
  height: 24px !important;
  fill: currentColor;
  transition: transform 0.3s ease;
  display: block;
}

/* Ефект бліку (shimmer) */
.scl__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 174, 79, 0.25) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: sclShimmer 4s infinite;
  pointer-events: none;
}

/* Зміщуємо анімацію для Discord, щоб вони не блимали одночасно */
.scl__item:nth-child(2),
.scl__item.discord {
  animation-delay: 2s !important;
}

.scl__item:nth-child(2)::after,
.scl__item.discord::after {
  animation-delay: 2s !important;
}

.scl__item:hover {
  transform: translateY(-2px) !important;
  border-color: #ffae4f !important;
  box-shadow: 0 0 15px rgba(255, 174, 79, 0.5) !important;
  background: rgba(255, 174, 79, 0.12) !important;
  color: #ffae4f !important;
}

.scl__item:hover svg,
.scl__item:hover .scl__svg {
  transform: scale(1.12);
}

@keyframes sclPulse {

  0%,
  100% {
    border-color: rgba(86, 74, 74, 0.7);
    box-shadow: 0 0 0 transparent;
  }

  50% {
    border-color: rgba(255, 174, 79, 0.6);
    box-shadow: 0 0 8px rgba(255, 174, 79, 0.25);
  }
}

@keyframes sclShimmer {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* ========================================================
   БЛОК СПІЛЬНОТИ ТА СПІВПРАЦІ (Community & Creators)
   ======================================================== */
.section[data-section="community"] {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

/* Зменшуємо надмірний відступ перед футером після блоку */
.section[data-section="community"]~.spacer {
  min-height: 3.5rem !important;
}

.social-community__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.social-card {
  background: rgba(37, 33, 33, 0.75);
  border: 1px solid rgba(86, 74, 74, 0.6);
  border-radius: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-sizing: border-box;
}

.social-card:hover {
  background-color: #262121;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.social-card__icon-box {
  width: 48px;
  height: 48px;
  background: #252121;
  border: 1px solid rgba(86, 74, 74, 0.7);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  transition: all 0.25s ease;
  color: #a39494;
  flex-shrink: 0;
}

.social-card__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.25s ease;
  display: block;
}

.social-card:hover .social-card__icon {
  transform: scale(1.1);
}

/* Бренд-акценти при ховері */
.social-card_discord:hover {
  border-color: rgba(88, 101, 242, 0.6);
}

.social-card_discord:hover .social-card__icon-box {
  color: #5865F2;
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.12);
}

.social-card_telegram:hover {
  border-color: rgba(42, 171, 238, 0.6);
}

.social-card_telegram:hover .social-card__icon-box {
  color: #2AABEE;
  border-color: rgba(42, 171, 238, 0.7);
  background: rgba(42, 171, 238, 0.12);
}

.social-card_support:hover,
.social-card_creators:hover {
  border-color: rgba(255, 174, 79, 0.6);
}

.social-card_support:hover .social-card__icon-box,
.social-card_creators:hover .social-card__icon-box {
  color: #ffae4f;
  border-color: rgba(255, 174, 79, 0.7);
  background: rgba(255, 174, 79, 0.12);
}

.social-card__content {
  flex-grow: 1;
}

.social-card__title {
  font-family: var(--font-0);
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
}

.social-card__desc {
  font-size: 0.875rem;
  color: #a39494;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.social-card__action {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffae4f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.25s ease;
}

.social-card__action::after {
  content: '→';
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.social-card:hover .social-card__action {
  gap: 10px;
}

@media (max-width: 1050px) {
  .social-community__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .social-community__grid {
    grid-template-columns: 1fr;
  }
}