/**
 * Webvio Case Studies — layout + mockup presets
 * Visual styling controlled via Elementor widget settings.
 */

.webvio-case-studies {
  position: relative;
  z-index: 1;
}

.webvio-case-studies__panel {
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.07),
    0 24px 64px rgba(147, 51, 234, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.webvio-case-studies__header {
  text-align: center;
}

.webvio-case-studies__title-highlight {
  background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.webvio-case-studies__cards {
  display: flex;
  flex-direction: column;
}

.webvio-case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.07),
    0 24px 64px rgba(147, 51, 234, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.webvio-case-card--reverse .webvio-case-card__visual {
  order: 2;
}

.webvio-case-card--reverse .webvio-case-card__content {
  order: 1;
}

.webvio-case-card__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.webvio-case-card__metrics {
  display: flex;
  flex-wrap: wrap;
}

.webvio-case-card__category {
  display: inline-block;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webvio-case-card__detail-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.webvio-case-card__metric-value {
  display: block;
  line-height: 1.05;
}

.webvio-case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
}

.webvio-case-card__link:hover {
  gap: 10px;
}

.webvio-case-card__link svg {
  flex-shrink: 0;
}

/* Laptop mockup */
.webvio-laptop {
  perspective: 800px;
}

.webvio-laptop__screen {
  background: #1a1a2e;
  border-radius: 12px 12px 0 0;
  border: 2px solid rgba(15, 23, 42, 0.08);
  border-bottom: none;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transform: rotateX(2deg);
}

.webvio-laptop__base {
  height: 12px;
  background: linear-gradient(to bottom, #2a2a3e, #1a1a2e);
  border-radius: 0 0 8px 8px;
  margin: 0 8%;
  position: relative;
}

.webvio-laptop__base::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 4px 4px;
}

.webvio-case-screen__content {
  padding: 8%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8%;
}

.webvio-case-screen--candies {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFE4E6 100%);
}

.webvio-case-screen--candies .webvio-case-screen__nav {
  height: 8%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}

.webvio-case-screen--candies .webvio-case-screen__hero-block {
  height: 35%;
  background: linear-gradient(135deg, #FF6B9D, #C084FC);
  border-radius: 6px;
}

.webvio-case-screen--candies .webvio-case-screen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6%;
  flex: 1;
}

.webvio-case-screen--candies .webvio-case-screen__grid span {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}

.webvio-case-screen--saas {
  background: #0F0F1A;
}

.webvio-case-screen--saas .webvio-case-screen__content {
  flex-direction: row;
  gap: 4%;
}

.webvio-case-screen__sidebar {
  width: 22%;
  background: rgba(138, 43, 226, 0.15);
  border-radius: 4px;
}

.webvio-case-screen__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8%;
}

.webvio-case-screen__hero-block--dark {
  height: 40%;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(255, 0, 127, 0.3));
  border-radius: 6px;
}

.webvio-case-screen__cards {
  display: flex;
  gap: 4%;
  flex: 1;
}

.webvio-case-screen__cards span {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.webvio-case-screen--industrial {
  background: #F8FAFC;
}

.webvio-case-screen__nav--dark {
  height: 8%;
  background: #1E293B;
  border-radius: 4px;
}

.webvio-case-screen__wizard {
  display: flex;
  gap: 4%;
  justify-content: center;
}

.webvio-case-screen__wizard span {
  width: 24%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
}

.webvio-case-screen__wizard span.is-active {
  background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
}

.webvio-case-screen__form-block {
  flex: 1;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .webvio-case-card,
  .webvio-case-card--reverse {
    grid-template-columns: 1fr;
  }

  .webvio-case-card--reverse .webvio-case-card__visual,
  .webvio-case-card--reverse .webvio-case-card__content {
    order: unset;
  }
}

@media (max-width: 767px) {
  .webvio-case-card__metrics {
    gap: 16px;
  }
}
