/* AWP PrintWise - Showcase Slider Styles */

/* Slider kapalıyken main, Güvenli Ödeme bandının altında başlasın; overlap olmasın */
.awp-no-showcase-slider main {
  margin-top: 0;
}

.awp-showcase-slider-container {
  width: 100%;
  max-width: none; /* JavaScript will set this dynamically */
  margin: 0 auto;  
  position: relative;
  box-sizing: border-box;
  /* Slider verisi yüklenmeden önce bile alan sabit kalsın (layout jump engeli) */
  min-height: 180px;
}

/* Slider container is now outside main, so no need for override */

.awp-showcase-slider-container.awp-showcase-slider-fullwidth {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
  /* Ensure no right gap by using viewport width */
  right: auto;
}

/* Premium: no border-radius on slider/cards */
.awp-showcase-slider-wrapper,
.awp-showcase-slider,
.awp-showcase-slide,
.awp-showcase-slide-canvas,
.awp-showcase-element,
.awp-showcase-slider-container .card,
.awp-showcase-slider-container [class*="slide"],
.awp-showcase-slider-container [class*="card"] {
  border-radius: 0 !important;
}

.awp-showcase-slider-container.awp-showcase-slider-fullwidth .awp-showcase-slider-wrapper {
  border: none;
  box-shadow: none;
  background: transparent;
}

.awp-showcase-slide.awp-showcase-slide--fullwidth {
  background-color: transparent;
}

.awp-showcase-slide--fullwidth .awp-showcase-slide-canvas {
  background: transparent !important;
}

.awp-showcase-slide--fullwidth .awp-showcase-slide-background-image {
  width: 100%;
  height: 100%;
}

.awp-showcase-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.awp-showcase-slider {
  position: relative;
  width: 100%;
}

.awp-showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease-out,
    visibility 0.35s ease-out;
  background: #ffffff;
}

.awp-showcase-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.awp-showcase-slide-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Product promo slide (low-risk: only applies to product_ slides) */
.awp-showcase-slide--product .awp-showcase-slide-canvas {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.awp-showcase-slide--product .awp-showcase-element[data-role="product-image"] {
  border-radius: 6px !important;
  overflow: hidden;
  border: 1px solid #dbe5f3;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.awp-showcase-slide--product .awp-showcase-element[data-role="product-badge"] {
  border-radius: 999px !important;
  border: 1px solid #c9dcff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.15);
}

.awp-showcase-slide--product .awp-showcase-element[data-role="product-badge"] > div {
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.awp-showcase-slide--product .awp-showcase-element[data-role="product-title"] > div {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
  text-wrap: balance;
}

.awp-showcase-slide--product .awp-showcase-element[data-role="product-subtitle"] > div {
  color: #475569;
}

.awp-showcase-slide--product .awp-showcase-element[data-role="product-price"] > div {
  color: #1d4ed8;
  font-weight: 900;
}

.awp-showcase-element .awp-showcase-button {
  overflow: hidden;
  box-sizing: border-box;
}

.awp-showcase-element .awp-showcase-button-inner,
.awp-showcase-element .awp-showcase-button > span {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  pointer-events: none;
  line-height: 1.15;
  white-space: pre-wrap;
  word-break: break-word;
  box-sizing: border-box;
}

.awp-showcase-slide--product .awp-showcase-element[data-role="product-cta"] .awp-showcase-button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid #1e40af !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3) !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px;
}

.awp-showcase-element {
  position: absolute;
  box-sizing: border-box;
}

.awp-showcase-element img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.awp-showcase-element a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  line-height: inherit;
  font-size: inherit;
}

.awp-showcase-element .awp-showcase-button[data-button-shadow="none"] {
  box-shadow: none;
}

.awp-showcase-element .awp-showcase-button[data-button-shadow="soft"] {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.awp-showcase-element .awp-showcase-button[data-button-shadow="medium"] {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.awp-showcase-element .awp-showcase-button[data-button-shadow="strong"] {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
}

.awp-showcase-element .awp-showcase-button[data-button-hover-effect="lift"]:hover {
  transform: translateY(-2px) scale(1.02);
}

.awp-showcase-element .awp-showcase-button[data-button-hover-effect="glow"]:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 14px 30px rgba(59, 130, 246, 0.34);
}

.awp-showcase-element .awp-showcase-button[data-button-hover-effect="pulse"]:hover {
  animation: awp-showcase-button-pulse 0.8s ease-in-out infinite;
}

.awp-showcase-element .awp-showcase-button[data-button-active-effect="press"]:active {
  transform: scale(0.97);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.awp-showcase-element .awp-showcase-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(59, 130, 246, 0.6);
}

@keyframes awp-showcase-button-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.awp-showcase-element div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  white-space: pre-wrap;
}

.awp-showcase-slider-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.awp-showcase-slider-pagination-dot {
  width: 6px;
  height: 6px;
  background: #d1d5db;
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
}

.awp-showcase-slider-pagination-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.awp-showcase-slider-pagination-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(59, 130, 246, 0.6);
}

.awp-showcase-slider-pagination-dot:active {
  transform: scale(0.9);
}

/* ---- Frosted glass arrow buttons ---- */
.awp-showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.awp-showcase-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.awp-showcase-arrow:focus-visible {
  outline: none;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(59, 130, 246, 0.6);
  background: rgba(255, 255, 255, 0.25);
}

.awp-showcase-arrow:active {
  transform: translateY(-50%) scale(0.96);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.awp-showcase-arrow-prev {
  left: 12px;
}
.awp-showcase-arrow-next {
  right: 12px;
}

.awp-showcase-text-path-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.awp-showcase-text-fill-clip {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.awp-showcase-text-stack {
  position: relative;
  display: block;
  width: 100%;
}

.awp-showcase-text-fx {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.awp-showcase-text-face {
  position: relative;
  z-index: 1;
}
.awp-showcase-element {
  --awp-element-transform: rotate(0deg);
  --awp-visual-filter: none;
  filter: var(--awp-visual-filter);
}
.awp-showcase-element[data-visual-effect="softShadow"] { --awp-visual-filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.24)); }
.awp-showcase-element[data-visual-effect="glow"] { --awp-visual-filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.85)); }
.awp-showcase-element[data-visual-effect="vivid"] { --awp-visual-filter: saturate(1.45) contrast(1.08); }
.awp-showcase-element[data-visual-effect="monochrome"] { --awp-visual-filter: grayscale(1) contrast(1.08); }
.awp-showcase-element[data-visual-effect="warm"] { --awp-visual-filter: sepia(0.28) saturate(1.25) hue-rotate(-8deg); }
.awp-showcase-element[data-ani-effect="none"] { opacity: var(--awp-element-opacity, 1); }

.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="fadeIn"] { animation: awp-fadeIn var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="fadeInSlow"] { animation: awp-fadeIn 1.2s ease-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="fadeInFast"] { animation: awp-fadeIn .5s ease-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="slideUp"] { animation: awp-slideUp var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="slideDown"] { animation: awp-slideDown var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="slideLeft"] { animation: awp-slideLeft var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="slideRight"] { animation: awp-slideRight var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="zoomIn"] { animation: awp-zoomIn var(--awp-ani-duration, 1s) cubic-bezier(.16, 1, .3, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="zoomOut"] { animation: awp-zoomOut var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="blurIn"] { animation: awp-blurIn var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="popIn"] { animation: awp-popIn var(--awp-ani-duration, 1s) cubic-bezier(.34, 1.56, .64, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="revealUp"] { animation: awp-revealUp var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="swingIn"] { transform-origin: top center; animation: awp-swingIn var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="elasticIn"] { animation: awp-elasticIn var(--awp-ani-duration, 1s) cubic-bezier(.68, -.55, .27, 1.55) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="wipeRight"] { animation: awp-wipeRight var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="rotate360"] { animation: awp-rotate360 var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="rotate180"] { animation: awp-rotate180 var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="bounce"] { animation: awp-bounce var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="pulse"] { animation: awp-pulse var(--awp-ani-duration, 1s) ease-in-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="shake"] { animation: awp-shake var(--awp-ani-duration, 1s) ease-in-out var(--awp-ani-delay, 0s) both; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="float"] { animation: awp-float var(--awp-ani-duration, 2.6s) ease-in-out var(--awp-ani-delay, 0s) infinite alternate; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="breathe"] { animation: awp-breathe var(--awp-ani-duration, 2.8s) ease-in-out var(--awp-ani-delay, 0s) infinite; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="heartbeat"] { animation: awp-heartbeat var(--awp-ani-duration, 1.5s) ease-in-out var(--awp-ani-delay, 0s) infinite; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="sway"] { transform-origin: bottom center; animation: awp-sway var(--awp-ani-duration, 2.5s) ease-in-out var(--awp-ani-delay, 0s) infinite alternate; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="shimmer"] { animation: awp-shimmer var(--awp-ani-duration, 2.2s) ease-in-out var(--awp-ani-delay, 0s) infinite; }
.awp-showcase-slide.active .awp-showcase-element[data-ani-effect="kenBurns"] { animation: awp-kenBurns var(--awp-ani-duration, 5s) ease-in-out var(--awp-ani-delay, 0s) infinite alternate; }

@keyframes awp-fadeIn { from { opacity: 0; } to { opacity: var(--awp-element-opacity, 1); } }
@keyframes awp-slideUp { from { opacity: 0; transform: var(--awp-element-transform) translateY(42px); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) translateY(0); } }
@keyframes awp-slideDown { from { opacity: 0; transform: var(--awp-element-transform) translateY(-42px); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) translateY(0); } }
@keyframes awp-slideLeft { from { opacity: 0; transform: var(--awp-element-transform) translateX(52px); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) translateX(0); } }
@keyframes awp-slideRight { from { opacity: 0; transform: var(--awp-element-transform) translateX(-52px); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) translateX(0); } }
@keyframes awp-zoomIn { from { opacity: 0; transform: var(--awp-element-transform) scale(.72); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-zoomOut { from { opacity: 0; transform: var(--awp-element-transform) scale(1.22); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-blurIn { from { opacity: 0; filter: var(--awp-visual-filter) blur(14px); transform: var(--awp-element-transform) scale(.94); } to { opacity: var(--awp-element-opacity, 1); filter: var(--awp-visual-filter) blur(0); transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-popIn { 0% { opacity: 0; transform: var(--awp-element-transform) scale(.35); } 70% { opacity: 1; transform: var(--awp-element-transform) scale(1.08); } 100% { transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-revealUp { from { opacity: 0; clip-path: inset(100% 0 0); transform: var(--awp-element-transform) translateY(24px); } to { opacity: 1; clip-path: inset(0); transform: var(--awp-element-transform) translateY(0); } }
@keyframes awp-swingIn { 0% { opacity: 0; transform: var(--awp-element-transform) perspective(600px) rotateX(-70deg); } 100% { opacity: 1; transform: var(--awp-element-transform) perspective(600px) rotateX(0); } }
@keyframes awp-elasticIn { 0% { opacity: 0; transform: var(--awp-element-transform) scale(.25); } 55% { opacity: 1; transform: var(--awp-element-transform) scale(1.12); } 75% { transform: var(--awp-element-transform) scale(.96); } 100% { transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-wipeRight { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes awp-rotate360 { from { opacity: 0; transform: var(--awp-element-transform) rotate(-360deg) scale(.7); } to { opacity: 1; transform: var(--awp-element-transform) rotate(0) scale(1); } }
@keyframes awp-rotate180 { from { opacity: 0; transform: var(--awp-element-transform) rotate(-180deg); } to { opacity: 1; transform: var(--awp-element-transform) rotate(0); } }
@keyframes awp-bounce { 0% { opacity: 0; transform: var(--awp-element-transform) scale(.3); } 45% { opacity: 1; transform: var(--awp-element-transform) scale(1.12); } 65% { transform: var(--awp-element-transform) scale(.94); } 82% { transform: var(--awp-element-transform) scale(1.04); } 100% { transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-pulse { from, to { transform: var(--awp-element-transform) scale(1); } 50% { transform: var(--awp-element-transform) scale(1.06); } }
@keyframes awp-shake { from, to { transform: var(--awp-element-transform) translateX(0); } 20%, 60% { transform: var(--awp-element-transform) translateX(-6px); } 40%, 80% { transform: var(--awp-element-transform) translateX(6px); } }
@keyframes awp-float { from { transform: var(--awp-element-transform) translateY(0); } to { transform: var(--awp-element-transform) translateY(-12px); } }
@keyframes awp-breathe { 0%, 100% { transform: var(--awp-element-transform) scale(1); } 50% { transform: var(--awp-element-transform) scale(1.045); } }
@keyframes awp-heartbeat { 0%, 28%, 100% { transform: var(--awp-element-transform) scale(1); } 12% { transform: var(--awp-element-transform) scale(1.08); } 20% { transform: var(--awp-element-transform) scale(1.03); } }
@keyframes awp-sway { from { transform: var(--awp-element-transform) rotate(-2.5deg); } to { transform: var(--awp-element-transform) rotate(2.5deg); } }
@keyframes awp-shimmer { 0%, 100% { filter: var(--awp-visual-filter) brightness(1); } 50% { filter: var(--awp-visual-filter) brightness(1.28) saturate(1.15); } }
@keyframes awp-kenBurns { from { transform: var(--awp-element-transform) scale(1) translate(0, 0); } to { transform: var(--awp-element-transform) scale(1.12) translate(-2%, -1%); } }

@media (prefers-reduced-motion: reduce) {
  .awp-showcase-slide.active .awp-showcase-element[data-ani-effect] {
    animation: none !important;
  }
}

.awp-showcase-slider-pagination-dot.active {
  background: #111827;
  transform: scale(1.2);
}

.awp-showcase-slider-empty {
  display: none;
}

@media (max-width: 640px) {
  .awp-showcase-slider-container {
    padding: 8px;
  }
}
