/* KOMIKSAN - Homepage Grand Opening Popup
   Upload to FTP: /upload/komiksan-opening-popup.css
*/

#komiksan-opening-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#komiksan-opening-popup-overlay.is-visible {
  display: flex;
}

#komiksan-opening-popup {
  position: relative;
  width: min(94vw, 860px);
  max-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  background:
    radial-gradient(circle at top right, rgba(255, 216, 0, 0.28), transparent 35%),
    radial-gradient(circle at bottom left, rgba(255, 0, 216, 0.35), transparent 42%),
    #1806FD;
  border: 4px solid #FF00D8;
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-family: inherit;
}

#komiksan-opening-popup::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.komiksan-opening-image {
  position: relative;
  min-height: 520px;
  background: #ffffff;
  overflow: hidden;
}

.komiksan-opening-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.komiksan-opening-content {
  position: relative;
  z-index: 2;
  padding: 46px 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.komiksan-opening-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: #FFD800;
  color: #000000;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 #000000;
}

#komiksan-opening-popup h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #FF00D8;
}

.komiksan-opening-date {
  margin: 0 0 20px;
  color: #00FF38;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.komiksan-opening-text {
  margin: 0 0 20px;
  max-width: 430px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.komiksan-opening-address {
  margin: 0 0 24px;
  padding: 16px 18px;
  max-width: 430px;
  background: rgba(0, 0, 0, 0.34);
  border: 2px solid #FFD800;
  border-radius: 18px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.komiksan-opening-address strong {
  display: block;
  margin-bottom: 4px;
  color: #FFD800;
  text-transform: uppercase;
}

.komiksan-opening-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 50px;
  padding: 14px 22px;
  background: #FF00D8;
  color: #ffffff !important;
  border: 3px solid #FFD800;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 #000000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.komiksan-opening-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000000;
}

#komiksan-opening-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #FFD800;
  color: #000000;
  font-size: 26px;
  line-height: 40px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000000;
}

@media (max-width: 760px) {
  #komiksan-opening-popup-overlay {
    padding: 14px;
  }

  #komiksan-opening-popup {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    display: block;
    border-width: 3px;
    border-radius: 22px;
  }

  .komiksan-opening-image {
    min-height: 0;
    height: 250px;
  }

  .komiksan-opening-image img {
    object-fit: cover;
    object-position: center 18%;
  }

  .komiksan-opening-content {
    padding: 28px 20px 24px;
    text-align: center;
    align-items: center;
  }

  .komiksan-opening-kicker {
    font-size: 12px;
    margin-bottom: 14px;
  }

  #komiksan-opening-popup h2 {
    font-size: clamp(30px, 10vw, 42px);
    text-shadow: 3px 3px 0 #FF00D8;
  }

  .komiksan-opening-date {
    font-size: 30px;
  }

  .komiksan-opening-text {
    font-size: 16px;
  }

  .komiksan-opening-address {
    width: 100%;
    font-size: 15px;
    padding: 14px;
  }

  .komiksan-opening-cta {
    width: 100%;
    font-size: 14px;
    padding: 13px 16px;
  }

  #komiksan-opening-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 24px;
  }
}
