/**
 * @file
 * Event component styles.
 *
 * Provides styling for the Event content type template including
 * hero-style header, two-column body+sidebar layout, and responsive behavior.
 * Matches the site's aesthetic with Gelasio/Gotham fonts and maroon palette.
 */

/* ==========================================================================
   EVENT LAYOUT
   ========================================================================== */

.event {
  width: 100%;
}

/* ==========================================================================
   EVENT HERO BASIC
   ========================================================================== */

.event-hero {
  position: relative;
  width: 100%;
  padding: 63px 65px;
  min-height: 363px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--space-4);
  background-color: #500617;
}

.event-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.event-hero__bg-solid {
  position: absolute;
  inset: 0;
  background-color: #82142c;
}

.event-hero__bg-img-wrapper,
.event-hero__bg-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero__overlay-texture {
  position: absolute;
  inset: 0;
  background-image: url('../../images/texture.png'); /* Placeholder if needed */
  opacity: 0.1;
  pointer-events: none;
}

.event-hero__content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.event-hero__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-hero__title {
  font-family: 'Gelasio', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 78px);
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

/* Tags row */
.event__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  position: relative;
  z-index: 2;
}

.event__tag {
  display: inline-flex;
}

.event__tag .field__label {
  display: none;
}

.event__tag .field__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.event__tag .field__item {
  font-family: 'Gotham', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: 4px;
}

.event__tag--type .field__item {
  background-color: #840029;
  color: #fff;
}

.event__tag--category .field__item {
  background-color: #F5F3F1;
  color: #500617;
  border: 1px solid #e0dbd7;
}

/* ==========================================================================
   EVENT INFO SIDE-BY-SIDE
   ========================================================================== */

.event-info-wrapper {
  margin: 0 auto var(--space-6) auto;
  width: 100%;
}

.event-info {
  display: flex;
  gap: 4rem;
  padding: 4rem 0;
  background-color: transparent;
  align-items: flex-start;
}

.event-info__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.event-info__title {
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-size: 48px;
  line-height: calc(56 / 48);
  color: #840029;
  margin: 0;
}

.event-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.event-info__tags .tag-pill {
  font-family: 'Gelasio', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  color: #b40015;
  border: 1px solid #b40015;
  padding: 8px 12px 8px 16px; /* py-[8px] pl-[16px] pr-[12px] */
  height: 34px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.event-info__tags .tag-pill:hover,
.event-info__tags .tag-pill:focus {
  color: #500617;
  border-color: #500617;
  text-decoration: none;
}

.event-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.event-info__detail-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-family: 'Gelasio', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #500617;
}

.event-info__detail-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.event-info__detail-text .field__label {
  display: none;
}

.event-info__detail-text .field__item {
  font-family: 'Gelasio', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #500617;
}

.event-info__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.event-info__description {
  font-family: 'Gelasio', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.62;
  color: #500617;
}

.event-info__description p {
  margin-top: 0;
}

.event-info__cta-wrapper {
  margin-top: auto;
}

.event-info__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #500617;
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.39;
  letter-spacing: 0;
  vertical-align: middle;
  transition: all 0.3s ease;
  max-width: 100%;
  flex-wrap: nowrap;
}

.event-info__cta-link:hover {
  gap: 25px;
  color: #B40015;
  text-decoration: none;
}

.event-info__cta-text {
  font-family: 'Gelasio', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.39;
  letter-spacing: 0;
  vertical-align: middle;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 1;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.event-info__cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 56px;
}

.event-info__cta-arrow svg {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.event-info__cta-arrow svg circle {
  stroke: #B40015;
  transition: all 0.3s ease;
}

.event-info__cta-arrow svg path {
  stroke: #B40015;
  transition: all 0.3s ease;
}

.event-info__cta-link:hover .event-info__cta-arrow svg circle {
  fill: #B40015;
  stroke: #B40015;
}

.event-info__cta-link:hover .event-info__cta-arrow svg path {
  stroke: white;
}

/* ==========================================================================
   Event Component Styles
   Theme implementation for Event nodes
   ========================================================================== */

/* Hero Header Adjustments
   ========================================================================== */
.hero-small__background-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   NAVIGATION (Back to All Events)
   ========================================================================== */

.event__nav-wrapper {
  margin: 0 auto var(--space-4) auto;
}

.event__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.18;
  color: #840029;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.event__back-link:hover {
  color: #B40015;
}

.event__back-link:hover svg {
  transform: translateX(4px);
}

.event__back-link svg {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 1024px) {
  .event-info {
    padding: 3.5rem 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .event-info {
    flex-direction: column;
    gap: 2rem;
  }

  .event-info__title {
    font-size: 36px;
  }
}

@media (max-width: 567px) {
  .event-info {
    padding-bottom: 1rem;
  }
  
  .event__tag .field__item {
    font-size: 0.75rem;
    padding: 4px var(--space-2);
  }
}
.hero-small__background-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/**
  * Block customizing
  */
.event-hero-small {
  .hero-small__arrow {
    height: 110px;
  }

  @media (max-width: 768px) {
    --bottom-spacing: 40px;
  }
}
