/* ==========================================================================
   BSF Shortcuts Detail Page Demo
   Exact scale, dimensions, and studio black (#181818) + soft pink (#fae3ee) palette
   Matching BSF Auto Sync, Downloader, Notes, Drawer & Media Library demo
   ========================================================================== */

.public-studio .website-shortcuts-demo {
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #181818 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.28s cubic-bezier(0.2,0.8,0.2,1), border-color 0.28s ease, box-shadow 0.28s ease !important;
}

.public-studio .website-shortcuts-demo:hover {
  transform: translateY(-4px) !important;
  border-color: #ff72ac !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 114, 172, 0.28) !important;
}

.scd-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.scd-heading small {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #fae3ee;
  text-transform: uppercase;
}

.public-studio .website-shortcuts-demo .scd-heading h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 8px 0 0;
  letter-spacing: -0.4px;
  color: #ffffff !important;
}

.scd-controls {
  display: flex;
  gap: 6px;
}

.scd-controls button {
  background: #251b21 !important;
  border: 1px solid rgba(250, 227, 238, 0.26) !important;
  color: #fae3ee !important;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.scd-controls button:hover {
  background: rgba(250, 227, 238, 0.18) !important;
  border-color: #fae3ee !important;
  color: #ffffff !important;
}

.scd-scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  flex: none;
  margin-block: auto;
}

/* SVG Scene Theming */
.scd-window {
  fill: #1c1519;
  stroke: rgba(250, 227, 238, 0.18);
  stroke-width: 1;
}

.scd-window-line {
  stroke: rgba(250, 227, 238, 0.14);
}

.scd-window-title {
  font-size: 8px;
  letter-spacing: 1.6px;
  fill: #9e9e9e;
}

.scd-eyebrow {
  font-size: 7.5px;
  letter-spacing: 1.6px;
  fill: #9e9e9e;
  font-weight: 600;
}

.scd-brand {
  font-size: 20px;
  font-weight: 700;
  fill: #fae3ee;
}

.scd-free-bg {
  fill: #20382e;
  stroke: #385f4b;
  stroke-width: 0.8;
}

.scd-free {
  font-size: 8.5px;
  font-weight: 700;
  fill: #bce4cd;
}

/* Toolbar Panel & Grid */
.scd-toolbar-header-bg {
  fill: #1e171c;
  stroke: rgba(250, 227, 238, 0.18);
  stroke-width: 1;
}

.scd-grid-card {
  fill: #1a1518;
  stroke: rgba(250, 227, 238, 0.15);
  stroke-width: 1;
}

.scd-btn-bg {
  fill: #221a20;
  stroke: rgba(250, 227, 238, 0.18);
  stroke-width: 1;
  transition: all 0.2s ease;
}

.scd-btn-title {
  font-size: 8px;
  font-weight: 700;
  fill: #fae3ee;
}

.scd-btn-sub {
  font-size: 6.8px;
  fill: #8e868c;
}

/* Action & Status Bars */
.scd-action-card {
  fill: #241a21;
  stroke: rgba(250, 227, 238, 0.22);
  stroke-width: 1;
}

.scd-action-text {
  font-size: 8px;
  fill: #fae3ee;
}

.scd-status-bg {
  fill: #1c161a;
  stroke: rgba(250, 227, 238, 0.14);
  stroke-width: 1;
}

.scd-status {
  font-size: 8px;
  fill: #fae3ee;
}

/* Timeline */
.scd-timeline {
  fill: #161214;
  stroke: rgba(250, 227, 238, 0.12);
  stroke-width: 1;
}

.scd-sequence {
  font-size: 8px;
  fill: #9e9e9e;
}

.scd-track-label {
  font-size: 8px;
  fill: #8e8e8e;
}

/* Steps list below */
.scd-steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(250, 227, 238, 0.12);
  padding-top: 12px;
}

.scd-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9e9e9e !important;
}

.scd-steps b {
  color: #fae3ee !important;
  font-size: 10px;
}

/* Cursor & Animation Keyframes */
.scd-cursor {
  pointer-events: none;
}

.scd-play[data-running="true"] .scd-cursor-anim {
  animation: scd-cursor-loop 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-click-clip {
  animation: scd-click-pulse-clip 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-clip-select {
  animation: scd-clip-select-glow 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-btn-hero {
  animation: scd-btn-hero-glow 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-click-btn {
  animation: scd-click-pulse-btn 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-inserted-adj {
  animation: scd-inserted-adj-anim 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-act-init {
  animation: scd-act-init-anim 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-act-success {
  animation: scd-act-success-anim 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-st-init {
  animation: scd-st-init-anim 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-st-clicking {
  animation: scd-st-clicking-anim 14s linear infinite both;
}

.scd-play[data-running="true"] .scd-st-success {
  animation: scd-st-success-anim 14s linear infinite both;
}

/* ==========================================================================
   Keyframes: 14s Timeline Loop
   0.0s - 1.2s : Cursor starts over timeline clip V1, clicks to select
   1.2s - 3.2s : Cursor moves to Toolbar Btn 1 (Adj Layer)
   3.2s - 4.5s : Hover over Adj Layer, button highlights
   4.5s - 4.8s : Click down on Adj Layer button
   4.8s - 12.0s: Adjustment Layer inserts on Track V2, success status
   12.0s - 14.0s: Smooth fade & reset
   ========================================================================== */

@keyframes scd-cursor-loop {
  0% {
    transform: translate(250px, 480px);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  /* Click clip on V1 */
  8% {
    transform: translate(230px, 492px) scale(0.92);
  }
  11% {
    transform: translate(230px, 492px) scale(1);
  }
  /* Move to Shortcut Button 1 (Adj Layer at x=74, y=202) */
  23% {
    transform: translate(74px, 202px);
  }
  /* Hover & prepare click */
  31% {
    transform: translate(74px, 202px);
  }
  /* Click button */
  33% {
    transform: translate(74px, 202px) scale(0.9);
  }
  35% {
    transform: translate(74px, 202px) scale(1);
  }
  /* Move back down to examine result on timeline */
  46%, 88% {
    transform: translate(240px, 455px);
    opacity: 1;
  }
  94% {
    transform: translate(260px, 480px);
    opacity: 0;
  }
  100% {
    transform: translate(250px, 480px);
    opacity: 0;
  }
}

@keyframes scd-click-pulse-clip {
  0%, 7% {
    opacity: 0;
    transform: scale(0.4);
  }
  9% {
    opacity: 0.9;
    transform: scale(1.1);
  }
  13% {
    opacity: 0;
    transform: scale(1.6);
  }
  100% {
    opacity: 0;
  }
}

@keyframes scd-clip-select-glow {
  0%, 7% {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-dasharray: none;
  }
  9%, 92% {
    stroke: #ff72ac;
    stroke-dasharray: 4 3;
    filter: drop-shadow(0 0 6px rgba(255, 114, 172, 0.45));
  }
  94%, 100% {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-dasharray: none;
  }
}

@keyframes scd-btn-hero-glow {
  0%, 21% {
    fill: #221a20;
    stroke: rgba(250, 227, 238, 0.18);
  }
  23%, 32% {
    fill: #2a1d25;
    stroke: #fae3ee;
    filter: drop-shadow(0 0 6px rgba(250, 227, 238, 0.3));
  }
  33%, 36% {
    fill: #3e2232;
    stroke: #ff72ac;
    filter: drop-shadow(0 0 10px rgba(255, 114, 172, 0.6));
  }
  37%, 92% {
    fill: #241a22;
    stroke: rgba(250, 227, 238, 0.35);
  }
  94%, 100% {
    fill: #221a20;
    stroke: rgba(250, 227, 238, 0.18);
  }
}

@keyframes scd-click-pulse-btn {
  0%, 32% {
    opacity: 0;
    transform: scale(0.4);
  }
  34% {
    opacity: 0.9;
    transform: scale(1.15);
  }
  38% {
    opacity: 0;
    transform: scale(1.7);
  }
  100% {
    opacity: 0;
  }
}

@keyframes scd-inserted-adj-anim {
  0%, 34% {
    opacity: 0;
    transform: translateY(4px) scaleY(0.6);
  }
  36% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: drop-shadow(0 0 12px rgba(255, 114, 172, 0.7));
  }
  42%, 91% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: drop-shadow(0 0 6px rgba(255, 114, 172, 0.3));
  }
  94%, 100% {
    opacity: 0;
    transform: translateY(3px);
  }
}

@keyframes scd-act-init-anim {
  0%, 34% {
    opacity: 1;
  }
  35%, 91% {
    opacity: 0;
  }
  93%, 100% {
    opacity: 1;
  }
}

@keyframes scd-act-success-anim {
  0%, 34% {
    opacity: 0;
    transform: translateY(2px);
  }
  35%, 91% {
    opacity: 1;
    transform: translateY(0);
  }
  93%, 100% {
    opacity: 0;
  }
}

@keyframes scd-st-init-anim {
  0%, 20% {
    opacity: 1;
  }
  21%, 91% {
    opacity: 0;
  }
  93%, 100% {
    opacity: 1;
  }
}

@keyframes scd-st-clicking-anim {
  0%, 20% {
    opacity: 0;
  }
  21%, 34% {
    opacity: 1;
  }
  35%, 100% {
    opacity: 0;
  }
}

@keyframes scd-st-success-anim {
  0%, 34% {
    opacity: 0;
    transform: translateY(2px);
  }
  35%, 91% {
    opacity: 1;
    transform: translateY(0);
  }
  93%, 100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .public-studio .website-shortcuts-demo {
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .public-studio .website-shortcuts-demo {
    padding: 14px;
  }
  .scd-heading {
    flex-direction: column;
    gap: 8px;
  }
  .scd-heading .scd-controls {
    align-self: flex-end;
  }
  .public-studio .website-shortcuts-demo .scd-heading h2 {
    font-size: 16px;
  }
  .public-studio .website-shortcuts-demo .scd-steps li {
    font-size: 9px;
    gap: 3px;
  }
  .scd-steps {
    gap: 5px;
  }
}
