/**
 * @package     Joomla.Site
 * @subpackage  Templates.baby-in-brazil
 * @author      Oleg Kosarev (DevOpsolution) <dev.oleg.kosarev@outlook.com>
 * @copyright   (C) 2026 Oleg Kosarev. All Rights Reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @version     1.2.0
 * @since       1.0.0
 *
 * UI Hero CSS. The heroic front line of the interface, disciplined and centered.
 */

.content-hero {
  overflow: hidden;
  border: 2px solid var(--theme-line);
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface-soft);
  box-shadow: var(--gallery-shadow-soft);
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 360px;
}

.content-hero__media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--theme-surface-soft);
}

.content-hero__media img,
.content-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-hero__image--svg,
.content-hero__image--contain {
  width: min(72%, 420px);
  height: auto;
  max-height: 76%;
  object-fit: contain;
}

.content-hero__svg-mask {
  width: min(72%, 420px);
  aspect-ratio: 1200 / 820;
  background: var(--theme-color);
  mask: var(--hero-mask-image) center / contain no-repeat;
  -webkit-mask: var(--hero-mask-image) center / contain no-repeat;
}

.content-hero__sprite {
  display: block;
  width: min(72%, 420px);
  height: min(76%, 320px);
  max-height: 76%;
  color: var(--theme-color);
  overflow: visible;
}

.content-hero__media-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: inherit;
}

.content-hero__media-link .photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(var(--theme-dark-surface-rgb), 0.1),
    rgba(var(--theme-dark-surface-rgb), 0.28)
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.content-hero__media-link:hover .photo-overlay {
  opacity: 1;
}

.content-hero__media-link .photo-overlay__icon {
  width: 64px;
  height: 64px;
  padding: 16px;
  border-radius: 50%;
  color: var(--theme-on-color);
  background: rgba(var(--theme-color-rgb), 0.24);
  backdrop-filter: blur(4px);
}

.content-hero__media-link .photo-overlay__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.content-hero__content {
  padding: clamp(24px, 4vw, 42px);
}

.content-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 0 12px;
  border-radius: var(--theme-radius-xs);
  color: var(--theme-on-color);
  background: var(--theme-color-secondary, var(--theme-color));
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.content-hero__title {
  margin: 0 0 12px;
  color: var(--theme-text);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.06em;
}

.content-hero__text {
  max-width: 62ch;
  margin: 0 0 22px;
  color: var(--theme-text-soft);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}

.content-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 680px;
}

.content-hero-meta__item {
  padding: 14px;
  border: 2px solid var(--theme-line);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-surface);
}

.content-hero-meta__value,
.content-hero-meta__label {
  display: block;
}

.content-hero-meta__value {
  color: var(--theme-text);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.content-hero-meta__label {
  margin-top: 5px;
  color: var(--theme-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content-hero__inline-html {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--theme-color);
}

.content-hero__inline-html svg {
  display: block;
  width: min(72%, 420px);
  height: min(76%, 320px);
  max-height: 76%;
  overflow: visible;
}

.content-hero__inline-html svg path {
  fill: currentColor;
}
