/* ==========================================================================
   Jewelix3D Playground / 3D Workspace Section Styling
   Isolated, non-destructive luxury editorial aesthetic
   All rules strictly scoped under .jewelix-playground-workspace-root
   ========================================================================== */

.jewelix-playground-workspace-root {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 88px 24px 80px;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .jewelix-playground-workspace-root {
    padding: 108px 32px 96px;
  }
}

.jewelix-playground-workspace-root .jewelix-playground-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Two-column Hero Grid */
.jewelix-playground-workspace-root .jewelix-playground-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

@media (min-width: 1024px) {
  .jewelix-playground-workspace-root .jewelix-playground-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 48px;
    margin-bottom: 64px;
  }
}

/* Left Content Column */
.jewelix-playground-workspace-root .jewelix-playground-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.jewelix-playground-workspace-root .jewelix-playground-logo-wrap {
  margin-bottom: 22px;
  display: inline-block;
}

.jewelix-playground-workspace-root .jewelix-playground-logo {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 640px) {
  .jewelix-playground-workspace-root .jewelix-playground-logo {
    height: 72px;
    max-width: 270px;
  }
}

.jewelix-playground-workspace-root .jewelix-playground-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DMSans-bold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 12px;
}

.jewelix-playground-workspace-root .jewelix-playground-eyebrow-dash {
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: #93c5fd;
  border-radius: 1px;
}

.jewelix-playground-workspace-root .jewelix-playground-title {
  font-family: 'DMSans-bold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.jewelix-playground-workspace-root .jewelix-playground-gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jewelix-playground-workspace-root .jewelix-playground-desc {
  font-family: 'DMSans-regular', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.62;
  color: #64748b;
  max-width: 520px;
  margin: 0 0 32px 0;
}

/* Actions Row */
.jewelix-playground-workspace-root .jewelix-playground-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.jewelix-playground-workspace-root .jewelix-playground-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px 8px 10px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 9999px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'DMSans-bold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.jewelix-playground-workspace-root .jewelix-playground-btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.44);
  filter: brightness(1.04);
}

.jewelix-playground-workspace-root .jewelix-playground-play {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-left: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jewelix-playground-workspace-root .jewelix-playground-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.jewelix-playground-workspace-root .jewelix-playground-btn-primary:hover .jewelix-playground-arrow {
  transform: translateX(3px);
}

.jewelix-playground-workspace-root .jewelix-playground-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DMSans-bold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.jewelix-playground-workspace-root .jewelix-playground-link-secondary:hover {
  color: #2563eb;
}

/* Stats Row */
.jewelix-playground-workspace-root .jewelix-playground-stats {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  width: 100%;
}

@media (min-width: 640px) {
  .jewelix-playground-workspace-root .jewelix-playground-stats {
    gap: 36px;
  }
}

.jewelix-playground-workspace-root .jewelix-playground-stat-item {
  display: flex;
  flex-direction: column;
}

.jewelix-playground-workspace-root .jewelix-playground-stat-val {
  font-family: 'DMSans-bold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.2;
  margin-bottom: 2px;
}

.jewelix-playground-workspace-root .jewelix-playground-stat-lbl {
  font-family: 'DMSans-regular', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
}

/* Right Column: Frame Wrap & Floating Badges */
.jewelix-playground-workspace-root .jewelix-playground-frame-wrap {
  position: relative;
  width: 100%;
  padding: 16px 0;
}

@media (min-width: 1024px) {
  .jewelix-playground-workspace-root .jewelix-playground-frame-wrap {
    padding: 24px 12px;
  }
}

.jewelix-playground-workspace-root .jewelix-playground-card-visual {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 20px 40px -15px rgba(37, 99, 235, 0.05);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.jewelix-playground-workspace-root .jewelix-playground-card-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.07), 0 24px 48px -15px rgba(37, 99, 235, 0.1);
}

.jewelix-playground-workspace-root .jewelix-playground-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.jewelix-playground-workspace-root .jewelix-playground-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 693 / 366;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
}

.jewelix-playground-workspace-root .jewelix-playground-video-container video {
  position: absolute;
  width: 123.5%;
  height: 123%;
  left: -6.2%;
  top: -11.0%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  max-width: none;
  max-height: none;
}

/* Floating Callout Badges */
.jewelix-playground-workspace-root .jewelix-callout {
  display: none;
  position: absolute;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 7px 18px 7px 10px;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(37, 99, 235, 0.06);
  z-index: 10;
  pointer-events: none;
  user-select: none;
  animation: jewelixCalloutFloat 4s ease-in-out infinite alternate;
}

@keyframes jewelixCalloutFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

@media (min-width: 860px) {
  .jewelix-playground-workspace-root .jewelix-callout {
    display: flex;
  }
}

.jewelix-playground-workspace-root .jewelix-callout-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.jewelix-playground-workspace-root .jewelix-callout-icon svg {
  width: 16px;
  height: 16px;
  color: #2563eb;
}

.jewelix-playground-workspace-root .jewelix-callout-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.jewelix-playground-workspace-root .jewelix-callout-title {
  font-family: 'DMSans-bold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.jewelix-playground-workspace-root .jewelix-callout-sub {
  font-family: 'DMSans-regular', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* Callout Positions */
.jewelix-playground-workspace-root .jewelix-callout-1 {
  top: 4px;
  left: -12px;
}

.jewelix-playground-workspace-root .jewelix-callout-2 {
  top: 4px;
  right: 12px;
  animation-delay: -1.5s;
}

.jewelix-playground-workspace-root .jewelix-callout-3 {
  bottom: 4px;
  left: 12px;
  animation-delay: -3s;
}

/* Bottom 4 Feature Cards */
.jewelix-playground-workspace-root .jewelix-playground-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 640px) {
  .jewelix-playground-workspace-root .jewelix-playground-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .jewelix-playground-workspace-root .jewelix-playground-features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

.jewelix-playground-workspace-root .jewelix-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 22px 26px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.02), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.jewelix-playground-workspace-root .jewelix-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px -6px rgba(15, 23, 42, 0.05), 0 8px 16px -4px rgba(37, 99, 235, 0.05);
  border-color: #cbd5e1;
}

.jewelix-playground-workspace-root .jewelix-feature-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 16px;
}

.jewelix-playground-workspace-root .jewelix-feature-icon-box svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.jewelix-playground-workspace-root .jewelix-feature-title {
  font-family: 'DMSans-bold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.jewelix-playground-workspace-root .jewelix-feature-desc {
  font-family: 'DMSans-regular', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* Dark mode safety */
.dark .jewelix-playground-workspace-root {
  background: transparent;
}
.dark .jewelix-playground-workspace-root .jewelix-playground-card-visual,
.dark .jewelix-playground-workspace-root .jewelix-feature-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}
.dark .jewelix-playground-workspace-root .jewelix-playground-title,
.dark .jewelix-playground-workspace-root .jewelix-feature-title,
.dark .jewelix-playground-workspace-root .jewelix-callout-title,
.dark .jewelix-playground-workspace-root .jewelix-playground-link-secondary {
  color: #ffffff;
}
.dark .jewelix-playground-workspace-root .jewelix-playground-desc,
.dark .jewelix-playground-workspace-root .jewelix-feature-desc,
.dark .jewelix-playground-workspace-root .jewelix-callout-sub,
.dark .jewelix-playground-workspace-root .jewelix-playground-stat-lbl {
  color: #94a3b8;
}
