/**
 * Hello Home — "Look Inside Drum Channel" element.
 *
 * Wrapper, content column and background live in hello-home.css (the shared
 * base this stylesheet depends on). Accent color comes from --hello-accent,
 * set inline by the shortcode.
 */

.hello-look-inside {
  text-align: center;
}

/**
 * The shared .hello-widget__heading carries the sizes with !important, because
 * the BuddyBoss theme options inject an inline `h2 { font-size … !important }`
 * that otherwise pins every heading on the page. This section wants its own
 * (smaller, uppercase, positively tracked) treatment, so it has to answer in
 * kind -- same as .hello-academy__heading does.
 */
.hello-look-inside__heading {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Colour and face are inherited from the band, so --hello-bg and the on-dark
   switch both reach this without a second rule. */
.hello-look-inside__subtitle {
  margin: 0 auto 40px;
  max-width: 640px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.78;
}

.hello-look-inside__buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  flex-wrap: wrap;
}

/* Big rounded square button, red border, white fill. Fills red on hover. */
.hello-look-inside__btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 280px;
  aspect-ratio: 1 / 1;
  padding: 24px;
  margin: 0;
  background: #fff;
  border: 4px solid var(--hello-accent);
  border-radius: 24px;
  color: var(--hello-accent);
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Older Safari without aspect-ratio support. */
@supports not (aspect-ratio: 1 / 1) {
  .hello-look-inside__btn { height: 280px; }
}

.hello-look-inside__btn:hover,
.hello-look-inside__btn:focus-visible {
  background: var(--hello-accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  outline: none;
}
.hello-look-inside__btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15), 0 10px 24px rgba(0, 0, 0, 0.16);
}
.hello-look-inside__btn:active {
  transform: translateY(-1px);
}

.hello-look-inside__btn.is-disabled,
.hello-look-inside__btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.hello-look-inside__btn.is-disabled:hover,
.hello-look-inside__btn[disabled]:hover {
  background: #fff;
  color: var(--hello-accent);
}

.hello-look-inside__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 3px solid currentColor;
  border-radius: 50%;
}
.hello-look-inside__play svg {
  display: block;
  width: 40px;
  height: 40px;
  margin-left: 4px; /* optical centering of the triangle */
}

/**
 * Reserve two lines even when the label only needs one, so a one-line and a
 * two-line button keep their play icons on the same baseline. Without this the
 * column centring shifts each icon by half a line and the pair looks crooked.
 */
.hello-look-inside__label {
  display: block;
  min-height: 2.4em; /* 2 lines at the button's line-height: 1.2 */
}

/* --------------------------------------------------------------------------
 * On a dark background color (see Hello_Home_Widget::is_dark). Buttons drop
 * their white fill so the band shows through; hover still fills with accent.
 * ------------------------------------------------------------------------ */
/* The heading and subtitle need nothing here now: both inherit the band's
   colour, and the subtitle's tint is an opacity rather than a fixed grey. */

/**
 * An *asterisked* run stays red on a dark band here.
 *
 * The shared rule turns accents white on dark, because in most sections the
 * accent would be competing with a coloured background. On flat black it is
 * not competing with anything, and losing it would leave the heading a
 * single undifferentiated white. The brighter red is the one the palette
 * keeps for display type on dark -- #dc1a40 is muddy at this size.
 */
.hello-look-inside.hello-widget--on-dark .hello-widget__accent {
  color: var(--hello-accent-bright);
}

/**
 * White buttons.
 *
 * On a light band these are a white fill with an accent border and label,
 * which on black would read as four empty outlines. Keeping the fill white
 * and dropping the border into it gives the solid white tiles the section
 * needs, with the accent still carrying the label and the play ring.
 */
.hello-widget--on-dark .hello-look-inside__btn {
  background: #fff;
  border-color: #fff;
  color: var(--hello-accent);
  box-shadow: none;
}
.hello-widget--on-dark .hello-look-inside__btn:hover,
.hello-widget--on-dark .hello-look-inside__btn:focus-visible {
  background: var(--hello-accent);
  border-color: var(--hello-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.hello-widget--on-dark .hello-look-inside__btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}
.hello-widget--on-dark .hello-look-inside__btn.is-disabled:hover,
.hello-widget--on-dark .hello-look-inside__btn[disabled]:hover {
  background: #fff;
  border-color: #fff;
  color: var(--hello-accent);
}

@media (max-width: 767px) {
  .hello-look-inside__buttons {
    gap: 24px;
  }
  .hello-look-inside__btn {
    width: min(280px, 100%);
    font-size: 18px;
  }
}

/* Modal styles now live in assets/hello-modal.css, shared by every widget. */
