/* ================================================================
   SHOWCASE ART - PURE CSS PRODUCT PREVIEWS
   Japanese-influenced modern dashboard visualizations
   ================================================================ */

/* ----------------------------------------------------------------
   SHOWCASE 1: INTELLIGENCE DASHBOARD
   Stylized data visualization with real-time metrics
   ---------------------------------------------------------------- */

.showcase-art-zone[data-showcase="1"] {
  position: relative;
  background: linear-gradient(135deg, #0A0E27 0%, #151b3d 100%);
  overflow: hidden;
}

/* Dashboard background grid */
.showcase-art-zone[data-showcase="1"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(77, 101, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(77, 101, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

/* Seven platform indicators - top row */
.showcase-art-zone[data-showcase="1"]::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 40px;
  background: linear-gradient(90deg,
    rgba(77, 101, 255, 0.2) 0%, rgba(77, 101, 255, 0.2) 12%,
    transparent 12%, transparent 14%,
    rgba(77, 101, 255, 0.3) 14%, rgba(77, 101, 255, 0.3) 26%,
    transparent 26%, transparent 28%,
    rgba(77, 101, 255, 0.2) 28%, rgba(77, 101, 255, 0.2) 40%,
    transparent 40%, transparent 42%,
    rgba(77, 101, 255, 0.4) 42%, rgba(77, 101, 255, 0.4) 54%,
    transparent 54%, transparent 56%,
    rgba(77, 101, 255, 0.2) 56%, rgba(77, 101, 255, 0.2) 68%,
    transparent 68%, transparent 70%,
    rgba(77, 101, 255, 0.3) 70%, rgba(77, 101, 255, 0.3) 82%,
    transparent 82%, transparent 84%,
    rgba(77, 101, 255, 0.2) 84%, rgba(77, 101, 255, 0.2) 96%
  );
  border-radius: 4px;
  box-shadow:
    0 0 10px rgba(77, 101, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Chart container 1 - Large waveform graph */
.showcase-art-zone[data-showcase="1"] .chart-1 {
  position: absolute;
  top: 90px;
  left: 30px;
  width: calc(60% - 40px);
  height: 180px;
  background: rgba(77, 101, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(77, 101, 255, 0.2);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Waveform visualization */
.showcase-art-zone[data-showcase="1"] .chart-1::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #4d65ff 10%,
    #4d65ff 20%,
    rgba(77, 101, 255, 0.6) 30%,
    rgba(77, 101, 255, 0.8) 40%,
    #4d65ff 50%,
    rgba(77, 101, 255, 0.7) 60%,
    rgba(77, 101, 255, 0.9) 70%,
    #4d65ff 80%,
    rgba(77, 101, 255, 0.6) 90%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(77, 101, 255, 0.8);
  animation: waveform-pulse 3s ease-in-out infinite;
}

@keyframes waveform-pulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(1.5);
    opacity: 0.8;
  }
}

/* Metric panels - right side */
.showcase-art-zone[data-showcase="1"] .metric-panel {
  position: absolute;
  right: 30px;
  width: calc(40% - 40px);
  background: rgba(77, 101, 255, 0.08);
  border-radius: 6px;
  border-left: 3px solid #4d65ff;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.showcase-art-zone[data-showcase="1"] .metric-1 {
  top: 90px;
  height: 55px;
}

.showcase-art-zone[data-showcase="1"] .metric-2 {
  top: 155px;
  height: 55px;
}

.showcase-art-zone[data-showcase="1"] .metric-3 {
  top: 220px;
  height: 50px;
}

/* Bottom bar chart indicators */
.showcase-art-zone[data-showcase="1"] .bar-chart {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  height: 80px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.showcase-art-zone[data-showcase="1"] .bar-chart::before {
  content: '';
  flex: 1;
  height: 45%;
  background: linear-gradient(180deg, #4d65ff 0%, rgba(77, 101, 255, 0.6) 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px rgba(77, 101, 255, 0.4);
}

.showcase-art-zone[data-showcase="1"] .bar-chart::after {
  content: '';
  flex: 1;
  height: 70%;
  background: linear-gradient(180deg, #4d65ff 0%, rgba(77, 101, 255, 0.6) 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px rgba(77, 101, 255, 0.4);
}

/* Additional bars via pseudo-elements stack */
.showcase-art-zone[data-showcase="1"] .bar-1,
.showcase-art-zone[data-showcase="1"] .bar-2,
.showcase-art-zone[data-showcase="1"] .bar-3 {
  flex: 1;
  background: linear-gradient(180deg, #4d65ff 0%, rgba(77, 101, 255, 0.6) 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px rgba(77, 101, 255, 0.4);
}

.showcase-art-zone[data-showcase="1"] .bar-1 { height: 55%; }
.showcase-art-zone[data-showcase="1"] .bar-2 { height: 85%; }
.showcase-art-zone[data-showcase="1"] .bar-3 { height: 40%; }

/* ----------------------------------------------------------------
   SHOWCASE 2: MOBILE COMMAND CENTER
   Phone silhouette with app UI mockup
   ---------------------------------------------------------------- */

.showcase-art-zone[data-showcase="2"] {
  position: relative;
  background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 50%, #0A0E27 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Circular wave background - Japanese wave motif */
.showcase-art-zone[data-showcase="2"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(77, 101, 255, 0.1) 0%,
    rgba(77, 101, 255, 0.05) 30%,
    transparent 60%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: wave-expand 4s ease-in-out infinite;
}

@keyframes wave-expand {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Phone device frame */
.showcase-art-zone[data-showcase="2"] .device-frame {
  position: relative;
  width: 200px;
  height: 360px;
  background: linear-gradient(135deg, #1a1f3a 0%, #0f1228 100%);
  border-radius: 24px;
  border: 3px solid rgba(77, 101, 255, 0.3);
  box-shadow:
    0 0 40px rgba(77, 101, 255, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Notch */
.showcase-art-zone[data-showcase="2"] .device-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #0A0E27;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

/* Status bar */
.showcase-art-zone[data-showcase="2"] .status-bar {
  position: absolute;
  top: 25px;
  left: 12px;
  right: 12px;
  height: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.showcase-art-zone[data-showcase="2"] .status-bar::before {
  content: '9:41';
  font-weight: 600;
}

.showcase-art-zone[data-showcase="2"] .status-bar::after {
  content: '◆ ◆ ◆';
  letter-spacing: 2px;
}

/* App screen header */
.showcase-art-zone[data-showcase="2"] .app-header {
  position: absolute;
  top: 55px;
  left: 12px;
  right: 12px;
  height: 50px;
  background: rgba(77, 101, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(77, 101, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation cards */
.showcase-art-zone[data-showcase="2"] .nav-card {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 60px;
  background: rgba(77, 101, 255, 0.08);
  border-radius: 10px;
  border-left: 3px solid #4d65ff;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.showcase-art-zone[data-showcase="2"] .nav-card-1 { top: 120px; }
.showcase-art-zone[data-showcase="2"] .nav-card-2 { top: 190px; }
.showcase-art-zone[data-showcase="2"] .nav-card-3 { top: 260px; }

/* Notification dots */
.showcase-art-zone[data-showcase="2"] .nav-card-1::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #4d65ff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(77, 101, 255, 0.8);
  animation: notification-pulse 2s ease-in-out infinite;
}

@keyframes notification-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Bottom navigation bar */
.showcase-art-zone[data-showcase="2"] .bottom-nav {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 50px;
  background: rgba(77, 101, 255, 0.12);
  border-radius: 25px;
  border: 1px solid rgba(77, 101, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.showcase-art-zone[data-showcase="2"] .nav-icon {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(77, 101, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

/* ----------------------------------------------------------------
   SHOWCASE 3: AI QUERY ENGINE
   Multiple AI platform parallel processing
   ---------------------------------------------------------------- */

.showcase-art-zone[data-showcase="3"] {
  position: relative;
  background: linear-gradient(135deg, #0A0E27 0%, #0f1535 100%);
  overflow: hidden;
}

/* Japanese wave pattern background */
.showcase-art-zone[data-showcase="3"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(77, 101, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(77, 101, 255, 0.05) 0%, transparent 50%);
  opacity: 0.8;
}

/* Central query hub */
.showcase-art-zone[data-showcase="3"] .query-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(77, 101, 255, 0.3) 0%, rgba(77, 101, 255, 0.1) 70%);
  border-radius: 50%;
  border: 2px solid #4d65ff;
  box-shadow:
    0 0 40px rgba(77, 101, 255, 0.5),
    inset 0 0 20px rgba(77, 101, 255, 0.2);
}

/* Scanning radar line */
.showcase-art-zone[data-showcase="3"] .query-hub::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, #4d65ff 0%, transparent 100%);
  transform-origin: left center;
  animation: radar-scan 3s linear infinite;
}

@keyframes radar-scan {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* AI Platform nodes - positioned around center */
.showcase-art-zone[data-showcase="3"] .ai-node {
  position: absolute;
  width: 70px;
  height: 60px;
  background: rgba(77, 101, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(77, 101, 255, 0.3);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Top row - 3 nodes */
.showcase-art-zone[data-showcase="3"] .node-1 {
  top: 40px;
  left: 50px;
}

.showcase-art-zone[data-showcase="3"] .node-2 {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.showcase-art-zone[data-showcase="3"] .node-3 {
  top: 40px;
  right: 50px;
}

/* Bottom row - 4 nodes */
.showcase-art-zone[data-showcase="3"] .node-4 {
  bottom: 40px;
  left: 30px;
}

.showcase-art-zone[data-showcase="3"] .node-5 {
  bottom: 40px;
  left: 33%;
}

.showcase-art-zone[data-showcase="3"] .node-6 {
  bottom: 40px;
  right: 33%;
}

.showcase-art-zone[data-showcase="3"] .node-7 {
  bottom: 40px;
  right: 30px;
}

/* Active indicator dots on nodes */
.showcase-art-zone[data-showcase="3"] .ai-node::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #4d65ff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(77, 101, 255, 0.8);
  animation: node-blink 2s ease-in-out infinite;
}

/* Stagger the blink animations */
.showcase-art-zone[data-showcase="3"] .node-2::before { animation-delay: 0.3s; }
.showcase-art-zone[data-showcase="3"] .node-3::before { animation-delay: 0.6s; }
.showcase-art-zone[data-showcase="3"] .node-4::before { animation-delay: 0.9s; }
.showcase-art-zone[data-showcase="3"] .node-5::before { animation-delay: 1.2s; }
.showcase-art-zone[data-showcase="3"] .node-6::before { animation-delay: 1.5s; }
.showcase-art-zone[data-showcase="3"] .node-7::before { animation-delay: 1.8s; }

@keyframes node-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Data flow lines connecting nodes to center */
.showcase-art-zone[data-showcase="3"] .flow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 101, 255, 0.4) 0%, transparent 100%);
  transform-origin: left center;
}

.showcase-art-zone[data-showcase="3"] .flow-1 {
  top: 70px;
  left: 85px;
  width: 120px;
  transform: rotate(35deg);
}

.showcase-art-zone[data-showcase="3"] .flow-2 {
  top: 70px;
  left: 50%;
  width: 100px;
  transform: translateX(-50%) rotate(90deg);
}

.showcase-art-zone[data-showcase="3"] .flow-3 {
  top: 70px;
  right: 85px;
  width: 120px;
  transform: rotate(-35deg);
  background: linear-gradient(270deg, rgba(77, 101, 255, 0.4) 0%, transparent 100%);
}

/* Side-by-side results panels */
.showcase-art-zone[data-showcase="3"] .results-panel {
  position: absolute;
  bottom: 80px;
  width: 45%;
  height: 100px;
  background: rgba(77, 101, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(77, 101, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.showcase-art-zone[data-showcase="3"] .results-left {
  left: 20px;
}

.showcase-art-zone[data-showcase="3"] .results-right {
  right: 20px;
}

/* Streaming data indicator */
.showcase-art-zone[data-showcase="3"] .results-panel::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 3px;
  background: linear-gradient(90deg,
    #4d65ff 0%,
    #4d65ff 30%,
    transparent 30%,
    transparent 100%
  );
  border-radius: 2px;
  animation: data-stream 2s linear infinite;
}

@keyframes data-stream {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 0%;
  }
}

/* ----------------------------------------------------------------
   ACCESSIBILITY: Respect reduced motion
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .showcase-art-zone[data-showcase="1"] .chart-1::before,
  .showcase-art-zone[data-showcase="2"]::before,
  .showcase-art-zone[data-showcase="2"] .nav-card-1::after,
  .showcase-art-zone[data-showcase="3"] .query-hub::before,
  .showcase-art-zone[data-showcase="3"] .ai-node::before,
  .showcase-art-zone[data-showcase="3"] .results-panel::after {
    animation: none;
  }
}
