/* SDK Integration Section */
#sdk-integration {
  background-color: #09090b;
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#sdk-integration::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.05) 0%, rgba(9, 9, 11, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sdk-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.sdk-header h2 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.sdk-header .accent {
  color: #ccff00;
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.sdk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  align-items: center;
}

@media (max-width: 992px) {
  .sdk-grid {
    grid-template-columns: 1fr;
  }
}

/* Terminal Left Column */
.sdk-terminal {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-lights {
  display: flex;
  gap: 8px;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}
.light.red { background: #ff5f56; }
.light.yellow { background: #ffbd2e; }
.light.green { background: #27c93f; }

.terminal-tab {
  margin-left: 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.terminal-body {
  padding: 2rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #ccc;
  overflow-x: auto;
}

.terminal-body .tag { color: #8892b0; }
.terminal-body .attr { color: #a8b2d1; }
.terminal-body .val { color: #ccff00; }
.terminal-body .comment { color: #6272a4; }

.param-hover {
  position: relative;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.param-hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(204, 255, 0, 0.6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.param-hover:hover {
  background: rgba(204, 255, 0, 0.1);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.1);
}

.param-hover:hover::after {
  transform: scaleX(1);
}

/* Glassmorphism Widget Right Column */
.sdk-preview-container {
  position: relative;
  border-radius: 12px;
  background-color: #0d0d0f;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 450px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

.sdk-preview-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,255,0,0.02), transparent);
  pointer-events: none;
}

.sdk-widget {
  width: 320px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Interaction States */
.sdk-widget.interact-theme {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.sdk-widget.interact-position {
  transform: translate(15px, 15px);
}

.widget-skeleton-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1.2rem;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.widget-skeleton-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

.widget-skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.widget-skeleton-line.short {
  width: 65%;
}

.widget-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 14px;
  border-radius: 10px;
  background: #ccff00;
  color: #000;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  border: none;
}

.widget-btn.interact-color {
  animation: btnPulse 1.5s infinite;
  box-shadow: 0 0 25px rgba(204, 255, 0, 0.5);
}

@keyframes btnPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(204, 255, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); }
}
