/**
 * Styles for Soda Zoom Logo Elementor Widget
 */

.soda-zoom-container {
  position: relative;
  width: 100%;
  height: var(--soda-zoom-height, 300px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--soda-zoom-border-radius, 12px);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

/* Background image pseudo-element on the container */
.soda-zoom-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--soda-zoom-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scale(1);
  filter: grayscale(var(--soda-zoom-bg-grayscale, 0%)) blur(var(--soda-zoom-bg-blur, 0px));
  transition: 
    transform var(--soda-zoom-transition, 0.45s) cubic-bezier(0.25, 1, 0.5, 1),
    filter var(--soda-zoom-transition, 0.45s) cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover/active state: Zoom background and apply hover filters */
.soda-zoom-container:hover::after,
.soda-zoom-container:focus-within::after {
  transform: scale(var(--soda-zoom-scale, 1.08));
  filter: grayscale(var(--soda-zoom-bg-grayscale-hover, 0%)) blur(var(--soda-zoom-bg-blur-hover, 0px));
}

/* Background Overlay Tint */
.soda-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: background-color var(--soda-zoom-transition, 0.45s) cubic-bezier(0.25, 1, 0.5, 1);
}

/* Centered Logo */
.soda-zoom-logo {
  position: relative;
  z-index: 3;
  width: var(--soda-zoom-logo-width, 120px);
  max-width: 90%;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
  user-select: none;
  pointer-events: none;
  transition: 
    transform var(--soda-zoom-transition, 0.45s) cubic-bezier(0.25, 1, 0.5, 1),
    opacity var(--soda-zoom-transition, 0.45s) cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover/active state: Scale and adjust logo opacity */
.soda-zoom-container:hover .soda-zoom-logo,
.soda-zoom-container:focus-within .soda-zoom-logo {
  transform: scale(var(--soda-zoom-logo-scale-hover, 1.05));
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .soda-zoom-container {
    height: var(--soda-zoom-height-mobile, 220px);
  }

  .soda-zoom-logo {
    width: var(--soda-zoom-logo-width-mobile, 90px);
  }
}
