/* =========================================================
   SHADY REACTIONS — SECTION
   ========================================================= */

.shady-reactions-section {
  margin-top: 28px;
  margin-bottom: 28px;
}

.shady-reactions-inner-content {
    box-sizing: border-box;

    padding-top: 24px !important;
    padding-bottom: 16px !important;
    padding-left: var(--global-sm-spacing) !important;
    padding-right: var(--global-sm-spacing) !important;

    background: var(--global-palette7);
}

.shady-reactions-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;

  margin: 0 0 14px !important;
  padding-top: 16px;

  color: var(--global-palette3);
  font-family: var(--global-heading-font-family);
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
}

.shady-reactions-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.shady-reactions-title::after {
  content: "❤";
  flex: 1 1 auto;
  min-width: 60px;
  padding-left: 8px;

  color: var(--global-palette5);
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  text-align: right;

  background:
    linear-gradient(
      var(--global-palette5),
      var(--global-palette5)
    )
    left center / calc(100% - 34px) 2px no-repeat;
}

/* =========================================================
   SHADY REACTIONS — BUTTON GRID
   ========================================================= */

.shady-reactions-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  padding: 0;
  overflow: visible;
}

.shady-reaction {
  position: relative;
  flex: 1 1 auto;

  min-width: 60px;
  max-width: calc(12.5% - 0.5rem);

  box-sizing: border-box;
  text-align: center;
  cursor: pointer;

  background: var(--shady-bg, #fff);
  border: 2px solid var(--shady-border, #ccc);
  border-radius: 12px;
  padding: 0.5rem;

  font-size: 1.5rem;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.shady-reaction:hover {
  transform: scale(1.05);
}

.shady-reaction[disabled] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.shady-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shady-inner img,
.shady-inner .icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  object-fit: contain;
}

.shady-reaction .count {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #444;
}

/* ---------- ANIMATIONS ---------- */

.shady-inner.shady-pop {
  animation: shady-pop 0.3s ease;
}

@keyframes shady-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.shady-flash {
  animation: shady-flash 0.3s ease;
}

@keyframes shady-flash {
  0% { filter: brightness(1); }
  50% { filter: brightness(2); }
  100% { filter: brightness(1); }
}

/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media screen and (max-width: 768px) {
  .shady-reaction {
    max-width: calc(25% - 0.5rem);
  }
}

@media screen and (max-width: 600px) {

    .shady-reactions-inner-content {
        padding-top: 18px !important;
        padding-bottom: 14px !important;
    }

    .shady-reactions-note {
        margin-top: 9px !important;

        font-size: 9px;
    }
}

  .shady-reactions-inner-content {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .shady-reactions-title {
    gap: 9px;
    margin-bottom: 12px !important;
    padding-top: 14px;
    font-size: 24px;
  }

  .shady-reactions-title::after {
    min-width: 35px;
    font-size: 15px;
    background-size: calc(100% - 27px) 2px;
  }
}

@media screen and (max-width: 500px) {
  .shady-reaction {
    max-width: calc(33.333% - 0.5rem);
  }
}

@media screen and (max-width: 360px) {
  .shady-reaction {
    max-width: calc(50% - 0.5rem);
  }
}

/* ---------- SUPPORT NOTE ---------- */

.shady-reactions-note {
    margin: 11px 0 0 !important;

    color: var(--global-palette2);

    font-family: var(--global-body-font-family);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;

    letter-spacing: 0.04em;
    text-align: center;
}