/**
 * hora-sky Hora - Custom Events Styles
 * Template overrides for hora_events post type
 */

@import url("css-constants.css");

body.hora-sky-event-single {
  background: var(--hora-color-bg);
}

body.hora-sky-event-single h1,
body.hora-sky-event-single h2,
body.hora-sky-event-single h3,
body.hora-sky-event-single h4,
body.hora-sky-event-single h5,
body.hora-sky-event-single h6 {
  margin: 0;
}

body.hora-sky-event-single .hora-events-loader {
  border-top-color: var(--hora-color-primary);
}

body.hora-sky-event-single .hora-event-section {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-md);
}

.hora-sky-event-single {
  -webkit-font-smoothing: auto;
}

.hora-sky-single-event-wrapper .full-width {
  width: 100%;
}

.hora-sky-breadcrumbs .hora-breadcrumb-item {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 1.4rem */
}

.hora-sky-breadcrumbs .hora-breadcrumb-link {
  color: var(--hora-color-text-muted);
}

.hora-sky-breadcrumbs .hora-breadcrumb-link:hover {
  color: var(--hora-color-primary);
}

.hora-sky-breadcrumbs .hora-breadcrumb-separator {
  color: var(--hora-color-text-muted);
  display: flex;
}

.hora-sky-breadcrumbs
  .hora-breadcrumb-item.hora-breadcrumb-current
  .hora-breadcrumb-text {
  color: var(--hora-color-text-muted);
  font-weight: 500;
}

.hora-sky-event-single-post {
  display: flex;
  flex-direction: row;
  gap: var(--hora-gap-xl, 40px);
}

.hora-sky-event-details-header-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--hora-gap-lg, 24px);
}

body.hora-sky-event-single .hora-social-share-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: var(--hora-color-text);
  gap: var(--hora-gap-xs, 6px);
  padding: var(--hora-gap-xs, 6px);
  background: var(--hora-color-surface);
  border-radius: var(--hora-border-radius-xl, 16px);
  border: 0.5px solid var(--hora-color-border);
}

body.hora-sky-event-single .hora-social-share-btn svg {
  width: 12px;
  height: 12px;
}

.hora-sky-event-single .hora-event-register-btn {
  justify-content: center;
  align-items: center;
}

.hora-sky-event-single .hora-sky-event-details-col {
  flex-shrink: 0;
  width: 100%;
  max-width: var(--hora-details-col-max-width, 405px);
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-lg, 24px);
}

.hora-sky-event-single .hora-sky-event-meta-item {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.hora-sky-event-meta-label {
  display: inline-flex;
  align-items: center;
}

.hora-sky-single-event-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--hora-border-radius-lg, 16px);
}

.hora-sky-event-organizer {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--hora-gap-sm, 12px);
}

.hora-sky-event-organizers-list {
  display: flex;
  flex-direction: row;
  gap: var(--hora-gap-sm, 12px);
  margin-top: var(--hora-gap-sm, 12px);
}

.hora-sky-event-organizer img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.hora-sky-event-heading {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--hora-gap-lg);
}

.hora-sky-event-date-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--hora-gap-xs);
  padding: var(--hora-gap-md);
  background: var(--hora-color-surface);
  border-radius: var(--hora-border-radius-lg);
  min-width: 0;
  flex-shrink: 0;
}

.hora-sky-event-day {
  font-size: clamp(2.125rem, 4vw, 2.875rem);
  font-weight: 700;
  line-height: 120%;
}

.hora-sky-event-month {
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  color: var(--hora-color-primary);
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
}

.hora-sky-event-title {
  font-size: clamp(2.125rem, 4vw, 2.875rem);
  font-weight: 600;
  line-height: 120%;
}

.hora-sky-event-content {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-xl);

  flex-shrink: 1;
  flex-grow: 1;
}

.hora-sky-event-description p {
  margin-top: 0;
}

.hora-sky-event-description p:not(:last-child) {
  margin-bottom: var(--hora-gap-md);
}

.hora-sky-event-content .hora-event-agenda__tabs {
  margin: 0;
}

.hora-sky-event-content .hora-event-agenda-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-lg);
}

.hora-sky-event-content .hora-event-agenda__item:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-sm);
}

.hora-sky-event-content .hora-event-agenda-section {
  display: flex;
  flex-direction: row;
  gap: var(--hora-gap-md);
  padding-block: var(--hora-gap-sm);
}

.hora-sky-event-content .hora-event-agenda-section:not(:first-child) {
  border-top: 0.5px solid var(--hora-color-border);
}

.hora-sky-event-content .hora-event-agenda-section .hora-event-agenda-date {
  width: 120px;
  flex-shrink: 0;
}

.hora-sky-event-content .hora-event-agenda-description p {
  margin: 0;
}

.hora-sky-event-content .hora-event-agenda-content {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-sm);
}

.hora-sky-event-content .hora-event-agenda-peoples {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-lg);
}

.hora-sky-event-content
  .hora-event-agenda-speaker
  .hora-event-agenda-speaker-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: var(--hora-border-radius-xs);
}

.hora-sky-event-content .hora-event-agenda-moderators,
.hora-sky-event-content .hora-event-agenda-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  gap: var(--hora-gap-md);
}

.hora-sky-event-content .hora-event-speakers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 275px);
  gap: var(--hora-gap-md);
}

.hora-sky-event-content .hora-event-speakers-list .hora-event-speaker {
  position: relative;
  border-radius: var(--hora-border-radius-lg);
  overflow: hidden;
  display: inline-flex;
}

.hora-sky-event-content .hora-event-speakers-list .hora-event-speaker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    357deg,
    var(--hora-color-primary) 2.45%,
    var(--hora-color-primary) 18.82%,
    rgba(247, 134, 28, 0) 48.94%
  );
}
.hora-sky-event-content .hora-event-speakers-list .hora-event-speaker-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 1 / 1.1;
}

.hora-sky-event-content .hora-event-speakers-list .hora-event-speaker-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: var(--hora-gap-md);

  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--hora-color-text);
}

.hora-sky-event-content .hora-event-speakers-list .hora-event-speaker-name {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
}
.hora-sky-event-content .hora-event-speakers-list .hora-event-speaker-position {
  margin: 0;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.hora-sky-event-content .hora-event-partners-group-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-lg);
}

.hora-sky-event-content .hora-event-partners-group {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-md);
}

.hora-sky-event-content .hora-event-partners-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.hora-sky-event-content .hora-event-partners-list .hora-event-partner {
  padding: var(--hora-gap-md) var(--hora-gap-sm);
}

.hora-sky-event-content .hora-event-partner-image {
  height: 72px;
  width: auto;
}

.day-header {
  display: flex;
  flex-direction: row;
  gap: var(--hora-gap-xs);
  align-items: center;
}

.day-events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hora-gap-md);
}

.events-day-group {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-md);
}

.events-by-date {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-xl);
}

.day-indicator-icon {
  padding: 4px;
  border-radius: 4px;
  border: 0.5px solid var(--hora-color-border);
  color: var(--hora-color-text);
}

.hora-sky-event-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid var(--hora-color-border);
  padding: var(--hora-gap-md);
}

.hora-sky-event-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hora-sky-event-thumbnail {
  position: relative;
}

.hora-sky-event-item .hora-sky-event-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    357deg,
    #f7861c -7.31%,
    #f6781a 9.67%,
    rgba(248, 148, 30, 0) 48.52%
  );
  z-index: 3;
}
.hora-sky-event-item:hover .hora-sky-event-thumbnail-image {
  transform: scale(1.05);
}

.hora-sky-event-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hora-sky-event-categories {
  display: flex;
  flex-direction: row;
  gap: var(--hora-gap-xs);
  flex-wrap: wrap;
  z-index: 5;
  position: relative;
}

.hora-sky-event-category {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 140%;
  color: var(--hora-color-text);
  background: var(--hora-color-surface);
  padding: 4px 10px;
  border-radius: 40px;
  backdrop-filter: blur(9px);
}

.hora-sky-event-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--hora-gap-sm);
  z-index: 5;
  position: relative;
}

.event-date-overlay {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--hora-gap-xs);
  padding: var(--hora-gap-sm);
  background: var(--hora-color-surface);
  border-radius: var(--hora-border-radius-sm);
  color: var(--hora-color-text);
  backdrop-filter: blur(9px);
}

.event-date-overlay .date-day {
  font-size: clamp(2.125rem, 4vw, 2.25rem);
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
}

.event-date-overlay .date-month {
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}

.hora-sky-event-content {
  display: flex;
  flex-direction: column;
  gap: var(--hora-gap-xs);
}

.hora-sky-event-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  line-height: 120%;
  color: var(--hora-color-text);
}

.hora-sky-event-title a {
  color: inherit;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hora-sky-event-location {
  display: flex;
  flex-direction: row;
  gap: var(--hora-gap-xs);
  align-items: center;
  color: var(--hora-color-text);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
}

.no-events-message {
  position: relative;
}

.no-events-image {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.no-events-message .no-events-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.no-events-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 120%;
  color: var(--hora-color-text);
  text-align: center;
}

.no-events-description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 140%;
  color: var(--hora-color-text);
  text-align: center;
  margin-top: var(--hora-gap-sm);
}

@media (max-width: 768px) {
  .hora-sky-event-single-post {
    flex-direction: column;
  }

  :root {
    --hora-details-col-max-width: 100%;
  }

  .hora-sky-event-content .hora-event-agenda-moderators,
  .hora-sky-event-content .hora-event-agenda-speakers {
    grid-template-columns: repeat(auto-fill, 80px);
  }
}
