/* sm */
@media screen and (min-width: 640px) {
}

/* md */
@media screen and (min-width: 768px) {
}

/* lg */
@media screen and (min-width: 1024px) {
}

/* xl */
@media screen and (min-width: 1280px) {
}

:root {
  --iws--color--grey-light: #d9d9d9;
  --iws--color--grey-medium: #808080;
  --iws--color--black: #000000;
  --iws--color--white: #ffffff;
  --iws--color--links: var(--iws--color--black);
  --iws--font-size--smaller: 66%;
  --iws--font-size--small: 80%;
  --iws--shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2);
  --iws--shadow-3xl:
    0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.6);
  /* --iws--content-max-width: 1425px; */
  --iws--content-max-width: var(--content-width, 1440px);
  --iws--content-whitespace: calc((100vw - var(--iws--content-max-width)) / 2);
}

/*******************************************************************
Archive page
*******************************************************************/
.post-type-archive-workshop,
.post-type-archive-coach {
  max-width: var(--iws--content-max-width);
  margin-inline: auto;
}

.post-type-archive-workshop *,
.post-type-archive-coach * {
  box-sizing: border-box;
}

/*******************************************************************
Filter
*******************************************************************/
.ws-filter__wrapper {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
}

.ws-filter__wrapper a {
  color: var(--iws--color--links);
}

#workshop-filter {
  position: relative;
  margin-top: 3rem;
  padding-block: 1rem;
  background-color: var(--iws--color--grey-light);
  max-width: 100vw;
}
#workshop-filter::after {
  content: '';
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  height: 100%;
  width: 3rem;
  background-image: linear-gradient(
    to left,
    var(--iws--color--grey-light),
    transparent
  );
}

@media screen and (min-width: 768px) {
  #workshop-filter {
    margin-top: 6rem;
    width: max-content;
    padding-inline: 2rem;
    border-radius: 0.75rem;
  }

  #workshop-filter::after {
    display: none;
  }
}

.ws-filter__title {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.5rem;
  margin-bottom: 0.5rem;
}
.ws-filter__title p {
  font-size: var(--iws--font-size--smaller);
  margin-bottom: 0;
}
.ws-filter__title p a {
  display: block;
  background-color: var(--iws--color--white);
  text-decoration: none;
  text-transform: uppercase;
  padding-block: 0.25rem;
  padding-inline: 1rem;
  border-radius: 0.75rem;
}

#workshop-filter ul {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
  padding-block: 1rem;
  padding-left: 0.5rem;
  padding-right: 2rem;
  overflow-x: auto;
  border-bottom: 2px solid var(--iws--color--white);
}

@media screen and (min-width: 768px) {
  #workshop-filter > ul {
    overflow-x: clip;
  }
}

@media screen and (min-width: 1024px) {
  #workshop-filter > ul {
    padding-block: 0.5rem;
    padding-right: 0;
  }
}

#workshop-filter ul li {
  list-style-type: none !important;
  font-size: var(--iws--font-size--small);
  white-space: nowrap;
  margin-left: 0 !important;
}

#workshop-filter ul li a {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  line-height: 1;
  background-color: transparent;
  border-radius: 0.75rem;
}

@media (min-width: 1024px) {
  #workshop-filter ul li a {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}

#workshop-filter ul li a.filter--active {
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: var(--iws--color--grey-medium) !important;
  color: var(--iws--color--white);
}

/* Color markings */
#workshop-filter ul li a div {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 100%;
}

.ws-filter__lastline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws-filter__lastline ul {
  border-bottom: none !important;
  margin-top: 0;
}
.ws-filter__lastline div {
  font-size: var(--iws--font-size--small);
}

.ws-filter__switch-view {
  position: fixed;
  z-index: 10;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
  font-size: var(--iws--font-size--small);
  background-color: var(--iws--color--black);
  color: var(--iws--color--white);
  border-radius: 0.75rem;
  box-shadow: var(--iws--shadow-xl);
  padding-inline: 1rem;
  padding-block: 0.5rem;
}
.ws-filter__switch-view > a {
  color: var(--iws--color--white);
  text-decoration: none;
}
.ws-filter__switch-view > a.font-bold {
  font-weight: 700;
}

/*******************************************************************
Workshop List
*******************************************************************/
#workshop-list {
  position: relative;
  display: grid;
  grid-template-columns: auto;
  row-gap: 2rem;
  column-gap: 1rem;
  min-width: 95vw;
  margin-left: 50%;
  transform: translateX(-50%);
  transition: all 150ms linear;
  /* Ensure consistent grid item sizing */
  grid-auto-rows: 1fr;
}

.workshop-list__notice {
  list-style-type: none;
  text-align: center;
}

@media screen and (min-width: 640px) {
  #workshop-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .workshop-list__notice {
    grid-column: span 2;
  }
}

@media screen and (min-width: 768px) {
  #workshop-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .workshop-list__notice {
    grid-column: span 3;
  }
}

@media screen and (min-width: 1280px) {
  #workshop-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .workshop-list__notice {
    grid-column: span 4;
  }
}

@media screen and (min-width: 1800px) {
  #workshop-list {
    grid-template-columns: repeat(5, 1fr);
  }
  .workshop-list__notice {
    grid-column: span 5;
  }
}

@media screen and (min-width: 2400px) {
  #workshop-list {
    grid-template-columns: repeat(6, 1fr);
  }
  .workshop-list__notice {
    grid-column: span 6;
  }
}

#workshop-list.blur {
  filter: blur(8px);
  pointer-events: none;
}

/*******************************************************************
Workshop Cards
*******************************************************************/
#workshop-list li {
  list-style-type: none !important;
  margin-left: 0 !important;
}

.workshop-card {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: var(--iws--shadow-xl);
  overflow: hidden;
  /* Ensure consistent sizing in grid */
  min-height: 0;
  max-width: 100%;
}

.workshop-card > a:not(.indes-wishlist) {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  text-decoration: none !important;
}

.workshop-card__color {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  border-radius: 100%;
  transition: all 500ms linear;
  opacity: 30%;
}

.workshop-card:hover .workshop-card__color {
  scale: 150;
  opacity: 20%;
}

.workshop-card__content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--iws--color--links);
}
.workshop-card__content > div:first-of-type {
  margin-bottom: 2rem;
}

.workshop-card__content h3 {
  margin-bottom: 1rem;
}

.workshop-card__content__coaches {
  font-size: var(--iws--font-size--small);
  text-transform: uppercase;
}
.workshop-card__content__coaches span:not(:last-of-type)::after {
  content: '+';
  padding-inline: 0.25rem;
}

.workshop-card__content__excerpt {
  /* font-size: var(--iws--font-size--small); */
}

.workshop-card__content__divider {
  width: 100%;
  border-top: 1px solid var(--iws--color--black);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.workshop-card__content__data {
  padding-left: 0;
}

.workshop-card__content__data li {
  list-style-type: none !important;
  font-size: var(--iws--font-size--small);
  margin-left: 0 !important;
}

.workshop-card__content__data__gear {
  padding-top: 1rem;
  display: flex;
}

.workshop-card__content__data__special-gear {
  padding-top: 0.5rem;
  display: flex;
}

.workshop-card__content__data__beginner {
  padding-block: 1rem;
}

.workshop-card__content__data__beginner > div {
  display: flex;
  align-items: center;
}

.workshop-card__content__weapon {
  text-transform: uppercase;
  font-weight: 600;
  font-size: var(--iws--font-size--smaller);
}

.indes-wishlist {
  position: absolute;
  z-index: 20;
  bottom: 0;
  right: 0;
  /* translate: 0 -100%; */
  padding: 1rem;
}
.indes-wishlist svg {
  width: 1rem;
  height: 1rem;
}
.indes-wishlist svg:first-of-type {
  display: block;
}
.indes-wishlist svg:last-of-type {
  display: none;
}

.indes-wishlist.wishlist-entry svg:first-of-type {
  display: none;
}
.indes-wishlist.wishlist-entry svg:last-of-type {
  display: block;
}

/* Detail view wishlist button */
.indes-wishlist-detail {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  padding: 1rem;
  transition: all 0.3s ease;
}
.indes-wishlist-detail:hover {
  transform: scale(1.1);
}
.indes-wishlist-detail svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: #666;
  transition: fill 0.3s ease;
}
.indes-wishlist-detail:hover svg {
  fill: #333;
}
.indes-wishlist-detail svg:first-of-type {
  display: block;
}
.indes-wishlist-detail svg:last-of-type {
  display: none;
}

.indes-wishlist-detail.wishlist-entry svg:first-of-type {
  display: none;
}
.indes-wishlist-detail.wishlist-entry svg:last-of-type {
  display: block;
  fill: #e74c3c;
}

/* Schedule wishlist indicators */
.workshop-entry__wishlist {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
}

.wishlist-indicator {
  width: 1rem;
  height: 1rem;
  fill: #e74c3c;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/*******************************************************************
Wishlist Link
*******************************************************************/
#workshop-wishlist {
  position: fixed;
  z-index: 100;
  bottom: 4rem;
  right: 1rem;
  background-color: var(--iws--color--white);
  box-shadow: var(--iws--shadow-3xl);
  padding: 1rem;
  border-radius: 100%;
  overflow: visible;
}

/* Ripple animation effect */
#workshop-wishlist::before,
#workshop-wishlist::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid darkred;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

#workshop-wishlist.ripple-animate::before {
  animation: ripple 2s ease-out forwards;
}

#workshop-wishlist.ripple-animate::after {
  animation: ripple 2s ease-out 0.4s forwards;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    border-width: 4px;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
  }
  50% {
    opacity: 0.6;
    border-width: 3px;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
  }
  100% {
    transform: translate(-50%, -50%) scale(6);
    opacity: 0;
    border-width: 2px;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0);
  }
}

#workshop-wishlist a {
  display: block;
  text-decoration: none;
  height: 1rem;
  width: 1rem;
}
#workshop-wishlist svg {
  height: 1rem;
  width: 1rem;
  translate: 0 -1px;
}
#workshop-wishlist.hidden {
  display: none;
}

/*******************************************************************
Embla Carousel
*******************************************************************/
body .iws-showcase {
  width: 100vw;
  /* width: calc(100vw - var(--iws--content-whitespace)); */
  max-width: var(--iws--full-width);
  margin-left: 50% !important;
  translate: -50% 0;
  box-sizing: border-box;
}

body .iws-showcase * {
  box-sizing: border-box;
}

body .iws-showcase .embla {
  padding-bottom: 3rem;
}

@media screen and (min-width: 1280px) {
  body .iws-showcase .embla__container {
    padding-left: calc(
      calc(var(--iws--full-width) - var(--iws--content-max-width)) / 2
    );
    /* padding-left: var(--iws--content-max-width); */
  }
}

.iws-showcase .embla__slide {
  height: auto;
}

.iws-showcase__cta {
  height: 100%;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-right: 2rem;
}
.iws-showcase__cta > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: var(--iws--color--grey-medium);
  color: var(--iws--color--white);
  text-decoration: none;
  transition: all 150ms linear;
  text-transform: uppercase;
  font-weight: 700;
}
.iws-showcase__cta > a:hover {
  background-color: var(--iws--color--black);
}

.iws-showcase__footer-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

/*******************************************************************
Workshop single
*******************************************************************/
.iws-single-grid {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 1rem;
  display: grid;
  grid-template-columns: 1fr;
}

.iws-single-grid .article-full,
.iws-single-grid .article-left,
.iws-single-grid .article-right {
  grid-column: 1 / 2;
}

@media screen and (min-width: 1024px) {
  .iws-single-grid {
    grid-template-columns: 1fr 3fr;
  }

  .iws-single-grid .article-left {
    grid-column: 1 / 2;
  }
  .iws-single-grid .article-right {
    grid-column: 2 / 3;
  }
  .iws-single-grid .article-full {
    grid-column: 1 / 3;
  }

  .indes-back-to-archive {
    position: sticky;
    top: 7rem;
    z-index: 10;
  }

  .workshop-sidebar {
    position: sticky;
    top: 10rem;
    z-index: 10;
  }
}

.workshop-sidebar {
  height: max-content;
  padding-top: 3rem;
}

.archive-link {
  text-decoration: none !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--iws--font-size--smal);
}

.workshop-types {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.workshop-type {
  list-style-type: none !important;
  padding-right: 1rem;
  padding-top: 0;
  padding-bottom: 0;
  font-size: var(--iws--font-size--smal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0 !important;
}

.type-color {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

.workshop-info {
  padding: 0;
  margin: 0;
}

.workshop-info li {
  list-style-type: none !important;
  margin-left: 0 !important;
}

.weapons {
  text-transform: uppercase;
  font-weight: 600;
  font-size: var(--iws--font-size--smal);
  padding-bottom: 2rem;
}

.weapon-name:not(:last-of-type)::after {
  content: '+';
  padding: 0 0.25rem;
}

.datetime,
.halls {
  font-weight: 600;
  font-size: var(--iws--font-size--smal);
}

.gears {
  padding-top: 2rem;
}

.gear-title {
  font-weight: 600;
  font-size: var(--iws--font-size--smal);
}

.gear-list {
  display: flex;
  align-items: stretch;
}

.gear-item {
  font-size: var(--iws--font-size--smal);
}

.gear-item:not(:last-of-type)::after {
  content: '—';
  padding: 0 0.25rem;
}

.special-gear {
  padding-top: 1rem;
  font-size: var(--iws--font-size--smal);
}

.special-gear-title {
  font-weight: 600;
}

.beginner-badge {
  padding-top: 2rem;
}

.badge {
  border: 2px solid black;
  border-radius: 9999px;
  width: max-content;
  padding: 1rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  color: var(--iws--color--white);
  background-color: black;
  transform: rotate(-12deg);
  text-align: center;
  font-size: var(--iws--font-size--smal);
}

.coach-picture {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 1rem;
  height: max-content;
  padding-bottom: 2rem;
}

.coach-card {
  position: relative;
  /* max-width: 200px; */
  min-width: 200px;
}

.coach-image {
  height: auto;
  width: 100%;
  aspect-ratio: 1 / 1.5;
  object-fit: cover;
  border-radius: 0.75rem;
}

.coach-placeholder {
  position: relative;
  width: 200px;
  height: 100%;
  background-color: var(--iws--color--grey-light);
  border-radius: 0.75rem;
}

.coach-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.25rem;
  background-color: var(--iws--color--white);
  text-align: center;
  transform: translateY(-100%);
  opacity: 0.9;
  font-size: var(--iws--font-size--smal);
}

/*******************************************************************
Workshop Modal
*******************************************************************/
.workshop-modal-backdrop {
  transition: opacity 0.3s ease;
}

.workshop-modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.workshop-modal {
  transition: opacity 0.3s ease;
}

.workshop-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.workshop-modal__content {
  animation: modalSlideIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workshop-modal__close {
  transition: color 0.2s ease;
}

.workshop-modal__close:hover {
  color: var(--iws--color--black);
}

.workshop-modal__title {
  color: var(--iws--color--black);
}

.workshop-modal__description {
  line-height: 1.6;
}

.workshop-modal__details-btn {
  text-decoration: none !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.workshop-modal__wishlist-btn {
  cursor: pointer;
  pointer-events: auto;
  position: relative;
}

.workshop-modal__wishlist-btn svg {
  transition: transform 0.2s ease;
}

.workshop-modal__wishlist-btn:hover svg {
  transform: scale(1.1);
}

.workshop-modal__wishlist-btn * {
  pointer-events: none;
}

/* Workshop entry clickable state */
.workshop-entry--clickable {
  cursor: pointer;
}

.workshop-entry--clickable .workshop-entry__link {
  display: block;
  width: 100%;
  height: 100%;
}

.single-workshop-content {
  display: flex;
  flex-direction: column;
}
