.huse-upcoming {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
}

/* Inline (sayfa içi) render: fixed değil, içerik akışında */
.huse-upcoming.huse-upcoming--inline {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  z-index: 1;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  overflow: visible; /* hover afişi taşabilsin */
}
.huse-upcoming--inline .huse-upcoming__inner {
  border-radius: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

/* Inline bant: afiş sadece hover ile görünür */
.huse-upcoming--inline .huse-upcoming__poster {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  top: auto;
  bottom: 100%;
  right: 12px;
  margin-bottom: 8px;
  z-index: 2147483647;
}

/* Portal mode: poster is moved under body to escape stacking contexts */
.huse-upcoming__poster--portal {
  position: fixed !important;
  z-index: 2147483647 !important;
  pointer-events: none !important;
}
.huse-upcoming--inline .huse-upcoming__poster img {
  max-width: min(320px, 86vw);
  width: 40vw;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
/* Visibility is controlled by JS (portal breaks :hover selector). */
.huse-upcoming__poster--visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Inline bant: uzun intro taşmasın */
.huse-upcoming--inline .huse-upcoming__intro {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 56ch;
}

/* Inline grid layout */
.huse-upcoming-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 18px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.huse-upcoming-card {
  background: var(--huse-bg, #111);
  color: var(--huse-text, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

.huse-upcoming-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.huse-upcoming-card__body {
  padding: 14px 14px 16px 14px;
  display: grid;
  gap: 10px;
}

.huse-upcoming-card__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  opacity: .95;
}

.huse-upcoming-card__title {
  font-family: var(--typo-title-family, inherit) !important;
  font-size: var(--typo-title-size, 1.05rem);
  line-height: var(--typo-title-lineheight, 1.2);
  letter-spacing: var(--typo-title-spacing, normal);
  text-decoration: var(--typo-title-underline, none);
  text-underline-offset: 8px;
  font-weight: 700;
  color: inherit;
}

.huse-upcoming-card__title:hover {
  color: var(--huse-text-hover, inherit);
}

/* WPBakery / sayfa builder önyüz editöründe yeşil edit şeritlerini engellememek için
   editör sınıfları varken tıklamaları almayı kapatıyoruz. */
.vc_editor .huse-upcoming,
.vc_inline-shortcodes .huse-upcoming {
  pointer-events: none !important;
}

.huse-upcoming.huse-upcoming--top {
  top: calc(var(--huse-adminbar-h, 0px) + var(--huse-stack-y, 0px));
}

.huse-upcoming.huse-upcoming--bottom {
  bottom: calc(0px + var(--huse-stack-y, 0px));
}

/* Banner: sade şerit, ortalı içerik, ölçü ve dikey konum ayarlanabilir */
.huse-upcoming.huse-upcoming--banner {
  left: 0;
  right: 0;
  width: var(--huse-banner-w, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  box-shadow: none;
}
.huse-upcoming--banner.huse-upcoming--banner-top {
  top: calc(var(--huse-adminbar-h, 0px) + var(--huse-stack-y, 0px));
  transform: none;
}
.huse-upcoming--banner.huse-upcoming--banner-center {
  top: calc(50% + var(--huse-stack-y, 0px));
  transform: translateY(-50%);
}
.huse-upcoming--banner.huse-upcoming--banner-bottom {
  top: auto;
  bottom: calc(0px + var(--huse-stack-y, 0px));
  transform: none;
}
.huse-upcoming--banner .huse-upcoming__inner {
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.huse-upcoming.huse-upcoming--popup {
  position: fixed;
  left: 50%;
  right: auto;
  top: calc(50% + var(--huse-stack-y, 0px));
  transform: translate(-50%, -50%);
  width: var(--huse-popup-w, min(680px, 92vw));
  max-width: 92vw;
  height: var(--huse-popup-h, auto);
  max-height: 92vh;
  overflow: auto;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

/* Right-docked panel */
.huse-upcoming.huse-upcoming--right {
  position: fixed;
  top: calc(50% + var(--huse-stack-y, 0px));
  right: 0;
  left: auto;
  transform: translateY(-50%);
  width: var(--huse-side-w, min(420px, 92vw));
  max-width: 92vw;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.huse-upcoming--right .huse-upcoming__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
}
.huse-upcoming--right .huse-upcoming__poster {
  position: static;
  opacity: 1;
  transform: none;
  margin: 0;
  width: 100%;
}
.huse-upcoming--right .huse-upcoming__poster img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  border-radius: 0 0 0 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.huse-upcoming {
  --huse-bg: #111;
  --huse-text: #fff;
}

.huse-upcoming__spacer {
  height: 0;
  width: 100%;
  display: block;
}

/* Push site content down when top banner is active */
html.huse-upcoming-active {
  margin-top: var(--huse-banner-height, 0px) !important;
  transition: margin-top 0.25s ease-out;
}

html.huse-upcoming-active body {
  margin-top: 0 !important;
}

.huse-upcoming__inner {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 16px;
  background: var(--huse-bg) !important;
  color: var(--huse-text) !important;
  justify-content: flex-start;
}

.huse-upcoming--align-center .huse-upcoming__inner {
  justify-content: center;
}

.huse-upcoming--align-right .huse-upcoming__inner {
  justify-content: flex-end;
}

.huse-upcoming--align-right .huse-upcoming__date {
  margin-left: 12px;
  margin-right: 0;
}

/* Popup square layout: stack as 3+ rows (label, title, date, intro) */
.huse-upcoming--popup-square .huse-upcoming__inner {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.huse-upcoming--popup-square .huse-upcoming__date {
  margin-left: 0;
}

/* Tema link çizgisini kapat; sadece eklenti tipografi "Altı çizili" geçerli olsun */
.huse-upcoming__inner a {
  color: inherit;
  text-decoration: none !important;
}

.huse-upcoming__inner a:hover {
  color: var(--huse-text-hover, inherit);
  text-decoration: none !important;
}

.huse-upcoming--has-border .huse-upcoming__inner {
  border-top: 1px solid var(--huse-border-color, rgba(255, 255, 255, .2));
  border-bottom: 1px solid var(--huse-border-color, rgba(0, 0, 0, .5));
}

.huse-upcoming--glow .huse-upcoming__inner {
  box-shadow: 0 0 12px 2px var(--huse-glow-c1, rgba(255, 214, 0, .45)), 0 0 24px var(--huse-glow-c2, rgba(255, 214, 0, .25)) inset;
}

.huse-upcoming--glow-pulse .huse-upcoming__inner {
  animation: huseGlow var(--huse-pulse-speed, 1.8s) ease-in-out infinite;
}

.huse-upcoming--glow-shimmer .huse-upcoming__inner {
  position: relative;
  overflow: hidden;
}

.huse-upcoming--glow-shimmer .huse-upcoming__inner:after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: var(--huse-shimmer-width, 40%);
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, var(--huse-shimmer-opacity, .18)) 50%, rgba(255, 255, 255, 0) 100%);
  filter: saturate(1.6);
  animation: huseShimmer var(--huse-shimmer-speed, 3.2s) linear infinite;
  pointer-events: none;
}

@keyframes huseShimmer {
  0% {
    left: -40%;
  }

  100% {
    left: 120%;
  }
}

.huse-upcoming--glow.huse-upcoming--popup {
  animation: none;
}

@keyframes huseGlow {
  0% {
    box-shadow: 0 0 6px 1px var(--huse-glow-cLow1, rgba(255, 214, 0, .25)), 0 0 12px var(--huse-glow-cLow2, rgba(255, 214, 0, .15)) inset;
  }

  50% {
    box-shadow: 0 0 18px 4px var(--huse-glow-c1, rgba(255, 214, 0, .55)), 0 0 28px var(--huse-glow-c2, rgba(255, 214, 0, .35)) inset;
  }

  100% {
    box-shadow: 0 0 6px 1px var(--huse-glow-cLow1, rgba(255, 214, 0, .25)), 0 0 12px var(--huse-glow-cLow2, rgba(255, 214, 0, .15)) inset;
  }
}

.huse-upcoming__title {
  font-weight: 700;
  font-size: 1.1rem;
}

.huse-upcoming__label {
  font-family: var(--typo-label-family, inherit) !important;
  font-size: var(--typo-label-size, .82rem);
  line-height: var(--typo-label-lineheight, 1.2);
  letter-spacing: var(--typo-label-spacing, normal);
  text-decoration: var(--typo-label-underline, none);
  text-underline-offset: 8px;
}

.huse-upcoming__title {
  font-family: var(--typo-title-family, inherit) !important;
  font-size: var(--typo-title-size, 1.1rem);
  line-height: var(--typo-title-lineheight, 1.2);
  letter-spacing: var(--typo-title-spacing, normal);
  text-decoration: var(--typo-title-underline, none);
  text-underline-offset: 8px;
}

.huse-upcoming__label {
  font-size: .82rem;
  text-transform: lowercase;
  opacity: .9;
  margin-right: 12px;
}

.huse-typo.huse-typo--gradient {
  background: linear-gradient(90deg, #ff8a00, #e52e71, #9b00ff, #00c3ff, #ff8a00);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: huseGradientText 4s ease infinite;
  opacity: var(--huse-typo-grad-opacity, 1);
}

@keyframes huseGradientText {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.huse-typo.huse-typo--shimmer {
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--huse-text, #fff) 0%, var(--huse-text, #fff) 20%, rgba(255, 255, 255, 0) 45%, var(--huse-text, #fff) 70%, var(--huse-text, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% 100%;
  animation: huseTextShimmer 3.2s linear infinite;
}

/* Glitch text (subtle) */
.huse-typo.huse-typo--glitch {
  position: relative;
  display: inline-block;
}

.huse-typo.huse-typo--glitch::before,
.huse-typo.huse-typo--glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: .85;
}

.huse-typo.huse-typo--glitch::before {
  color: #ff3366;
  mix-blend-mode: screen;
}

.huse-typo.huse-typo--glitch::after {
  color: #33ccff;
  mix-blend-mode: screen;
}

.huse-typo.huse-typo--glitch {
  animation: huseGlitchBase 8s steps(1) infinite;
}

.huse-typo.huse-typo--glitch::before {
  animation: huseGlitchShiftR 8s linear infinite;
}

.huse-typo.huse-typo--glitch::after {
  animation: huseGlitchShiftC 8s linear infinite;
}

@keyframes huseGlitchBase {

  0%,
  88%,
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, .08);
  }

  90% {
    text-shadow: 0 0 3px rgba(255, 255, 255, .35);
  }

  92% {
    text-shadow: 0 0 5px rgba(255, 255, 255, .5);
  }

  94% {
    text-shadow: 0 0 2px rgba(255, 255, 255, .25);
  }
}

@keyframes huseGlitchShiftR {

  0%,
  88%,
  100% {
    transform: translate(0, 0) skewX(0deg);
    opacity: .0;
  }

  90% {
    transform: translate(-2px, 0) skewX(-4deg);
    opacity: .45;
  }

  92% {
    transform: translate(3px, 0) skewX(4deg);
    opacity: .75;
  }

  94% {
    transform: translate(-1px, 0) skewX(-2deg);
    opacity: .55;
  }

  96% {
    transform: translate(0, 0) skewX(0deg);
    opacity: .0;
  }
}

@keyframes huseGlitchShiftC {

  0%,
  88%,
  100% {
    transform: translate(0, 0) skewX(0deg);
    opacity: .0;
  }

  90% {
    transform: translate(2px, 0) skewX(4deg);
    opacity: .45;
  }

  92% {
    transform: translate(-3px, 0) skewX(-4deg);
    opacity: .75;
  }

  94% {
    transform: translate(1px, 0) skewX(2deg);
    opacity: .55;
  }

  96% {
    transform: translate(0, 0) skewX(0deg);
    opacity: .0;
  }
}

@keyframes huseTextShimmer {
  0% {
    background-position: -50% 0;
  }

  100% {
    background-position: 150% 0;
  }
}

/* Text Fill animation removed per request */
.huse-upcoming__intro {
  font-size: .82rem;
  opacity: .9;
}

.huse-upcoming__intro {
  font-family: var(--typo-intro-family, inherit) !important;
  font-size: var(--typo-intro-size, .82rem);
  line-height: var(--typo-intro-lineheight, 1.3);
  letter-spacing: var(--typo-intro-spacing, normal);
  text-decoration: var(--typo-intro-underline, none);
  text-underline-offset: 8px;
}

.huse-upcoming__date {
  font-size: .78rem;
  opacity: .8;
  margin-left: 12px;
}

.huse-upcoming__date {
  font-family: var(--typo-date-family, inherit) !important;
  font-size: var(--typo-date-size, .78rem);
  line-height: var(--typo-date-lineheight, 1.2);
  letter-spacing: var(--typo-date-spacing, normal);
  text-decoration: var(--typo-date-underline, none);
  text-underline-offset: 8px;
}

.huse-upcoming__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}

.huse-upcoming__close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .huse-upcoming--mobile-hide {
    display: none !important;
  }
}

.huse-upcoming__poster {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.huse-upcoming__poster img {
  max-width: 320px;
  width: 40vw;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

.huse-upcoming:hover .huse-upcoming__poster {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.huse-upcoming--top .huse-upcoming__poster {
  top: 100%;
  right: 12px;
}

.huse-upcoming--bottom .huse-upcoming__poster {
  bottom: 100%;
  right: 12px;
}

.huse-upcoming--popup .huse-upcoming__poster {
  position: static;
  opacity: 1;
  transform: none;
  margin: 0;
  width: 100%;
}

.huse-upcoming--popup .huse-upcoming__poster img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  border-radius: 0 0 10px 10px;
}

@media (max-width: 600px) {
  .huse-upcoming__inner {
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
  }

  .huse-upcoming__title {
    font-size: 1rem;
    line-height: 1.15;
  }

  .huse-upcoming__label {
    font-size: .78rem;
    line-height: 1.15;
  }

  .huse-upcoming__intro {
    font-size: .78rem;
    line-height: 1.2;
  }

  .huse-upcoming__date {
    font-size: .74rem;
    line-height: 1.15;
  }
}

/* Inline mobile mode: dokunmatik uyumlu, hover'a bağlı değil */
@media (max-width: 600px) {
  .huse-upcoming--inline.huse-upcoming--inline-mobile .huse-upcoming__inner {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .huse-upcoming--inline.huse-upcoming--inline-mobile .huse-upcoming__label {
    margin-right: 8px;
  }

  .huse-upcoming--inline.huse-upcoming--inline-mobile .huse-upcoming__title,
  .huse-upcoming--inline.huse-upcoming--inline-mobile .huse-upcoming__intro {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
  }

  .huse-upcoming--inline.huse-upcoming--inline-mobile .huse-upcoming__intro {
    max-width: none;
  }

  /* Mobil modda hover afişini tamamen kapat */
  .huse-upcoming--inline.huse-upcoming--inline-mobile .huse-upcoming__poster {
    display: none !important;
  }
}