/* ==========================================================================
   BSF Auto Sync - Detail Page Animated Demo
   Matches the real Adobe CEP panel: BSF-Auto-Sync-Dev
   ========================================================================== */

.public-studio .website-detail-columns:not(.has-demo) { grid-template-columns: minmax(0, 1fr); }
.public-studio .website-detail-columns.has-demo { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: start; }
.public-studio .website-access-panel { margin-top: 24px; }
.public-studio .website-access-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; }
.public-studio .website-access-panel .website-detail-facts { margin-bottom: 0; }
.public-studio .website-access-copy > p:first-child { margin-top: 0; }
.public-studio .website-version-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.public-studio .website-detail-panel.website-auto-sync-demo,
.public-studio .website-auto-sync-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: 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.public-studio .website-detail-panel.website-auto-sync-demo:hover,
.public-studio .website-auto-sync-demo:hover {
  transform: translateY(-3px) !important;
  border-color: #e49ab6 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(228, 154, 182, 0.22) !important;
}

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

.asd-heading small {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #e49ab6 !important;
  font-weight: 700;
  text-transform: uppercase;
}

.public-studio .website-auto-sync-demo .asd-heading h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 6px 0 0;
  letter-spacing: -.4px;
  color: #ffffff !important;
}

.asd-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}

.asd-controls button {
  font-size: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(228, 154, 182, 0.3) !important;
  border-radius: 6px;
  color: #eee7ed !important;
  background: #251e24 !important;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.asd-controls button:hover {
  background: #382733 !important;
  border-color: #e49ab6 !important;
  color: #ffffff !important;
}

.asd-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* SVG Scene Base */
.asd-scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  font-family: "Segoe UI", "Adobe Clean", Arial, sans-serif;
  user-select: none;
  flex: none;
  margin-block: auto;
}

/* Window Frame */
.asd-window {
  fill: #18171b !important;
  stroke: #3b333d !important;
  stroke-width: 1;
}

.asd-window-line {
  stroke: #2e2830 !important;
  stroke-width: 1;
}

.asd-window-title {
  font-size: 8px;
  fill: #8f828e !important;
  letter-spacing: 1.3px;
  font-weight: 600;
}

/* Brand Header */
.asd-eyebrow {
  font-size: 7.5px;
  letter-spacing: 1.8px;
  fill: #8f828e !important;
  font-weight: 600;
}

.asd-brand {
  font-size: 22px;
  font-weight: 700;
  fill: #eee7ed !important;
  letter-spacing: -.6px;
}

.asd-dot {
  fill: #e49ab6 !important;
}

.asd-pro-bg {
  fill: #352731 !important;
}

.asd-pro-text {
  font-size: 9.5px;
  font-weight: 700;
  fill: #e49ab6 !important;
}

.asd-swatch-pink { fill: #e49ab6 !important; stroke: #ffffff; stroke-width: 1.2; }
.asd-swatch-dark { fill: #161616 !important; stroke: #453c44; stroke-width: 1; }
.asd-swatch-gray { fill: #756a73 !important; stroke: #453c44; stroke-width: 1; }
.asd-swatch-white { fill: #f0eaf0 !important; stroke: #453c44; stroke-width: 1; }

.asd-divider {
  stroke: #332b35 !important;
  stroke-width: 1;
}

/* Main Card: Sinkronisasi */
.asd-card {
  fill: #211e24 !important;
  stroke: #3b333d !important;
  stroke-width: 1;
}

.asd-icon-box {
  fill: #1b191e;
  stroke: #4b3e4c;
  stroke-width: 1;
}

.asd-folder-path {
  fill: none;
  stroke: #e49ab6;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asd-section-title {
  font-size: 13.5px;
  font-weight: 700;
  fill: #eee7ed !important;
  letter-spacing: -.2px;
}

/* Source Columns */
.asd-col-title {
  font-size: 11px;
  font-weight: 600;
  fill: #eee7ed !important;
}

.asd-badge-bg {
  fill: #1b191e !important;
  stroke: #3b333d !important;
  stroke-width: 1;
}

.asd-badge-num {
  font-size: 9.5px;
  font-weight: 600;
  fill: #b8adb7 !important;
}

.asd-dropzone {
  fill: #1b191e !important;
  stroke: #4a3e4b !important;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}

.asd-drop-icon-box {
  fill: none;
  stroke: #e49ab6;
  stroke-width: 1.5;
}

.asd-drop-icon-play {
  fill: #e49ab6;
}

.asd-drop-text {
  font-size: 10px;
  font-weight: 600;
  fill: #eee7ed !important;
}

.asd-drop-sub {
  font-size: 8.5px;
  fill: #8f828e !important;
}

.asd-audio-icon-bars {
  stroke: #e49ab6;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* File Chips inside Dropzones */
.asd-file-chip {
  fill: #19171b !important;
  stroke: #5d4e5c !important;
  stroke-width: 1.2;
}

.asd-chip-icon-box {
  fill: #2a2028;
  stroke: #453442;
  stroke-width: 1;
}

.asd-file-name {
  font-size: 10px;
  font-weight: 700;
  fill: #ffffff !important;
}

.asd-file-meta {
  font-size: 8px;
  fill: #b8adb7 !important;
}

/* Checkbox */
.asd-checkbox {
  fill: #1b191e !important;
  stroke: #5d4e5c !important;
  stroke-width: 1.3;
}

.asd-check {
  fill: none;
  stroke: #e49ab6 !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asd-option-title {
  font-size: 11.5px;
  font-weight: 600;
  fill: #eee7ed !important;
}

.asd-option-note {
  font-size: 9px;
  fill: #8f828e !important;
}

/* Prominent Button Sinkronkan */
.asd-sync-button {
  fill: #e49ab6 !important;
  stroke: #e49ab6 !important;
  stroke-width: 1;
}

.asd-btn-progress {
  fill: url(#asd-btn-grad) !important;
  transform-box: fill-box;
  transform-origin: left center;
}

.asd-btn-text {
  font-size: 13.5px;
  font-weight: 700;
  fill: #2d1e27 !important;
  letter-spacing: -.2px;
}

.asd-btn-icon {
  fill: none;
  stroke: #2d1e27 !important;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asd-click {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  transform-box: fill-box;
  transform-origin: center;
}

/* Panduan Singkat */
.asd-guide-circle {
  fill: none;
  stroke: #6b5c69;
  stroke-width: 1.2;
}

.asd-guide-info {
  stroke: #6b5c69;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.asd-guide-label {
  font-size: 10px;
  fill: #8f828e !important;
  font-weight: 500;
}

.asd-chevron {
  fill: none;
  stroke: #6b5c69;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Status Bar */
.asd-status-card {
  fill: #1b191e !important;
  stroke: #3b333d !important;
  stroke-width: 1;
}

.asd-status-dot {
  fill: #e49ab6;
}

.asd-status {
  font-size: 10px;
  font-weight: 500;
  fill: #b8adb7 !important;
}

.asd-status-success {
  fill: #8ed0aa !important;
  font-weight: 600;
}

.asd-status-bar {
  fill: url(#asd-scan-grad);
  transform-box: fill-box;
  transform-origin: left center;
}

/* Premiere Pro Timeline */
.asd-timeline-box {
  fill: #131215 !important;
  stroke: #332b35 !important;
  stroke-width: 1;
}

.asd-seq-name {
  font-size: 8.5px;
  font-weight: 600;
  fill: #b8adb7 !important;
}

.asd-seq-synced {
  fill: #e49ab6 !important;
}

.asd-timecode {
  font-size: 8px;
  fill: #6e626d !important;
  font-family: monospace;
}

.asd-synced-pill {
  fill: #1a2f24;
  stroke: #2b563f;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
}

.asd-synced-badge {
  font-size: 8.5px;
  font-weight: 700;
  fill: #8ed0aa !important;
}

.asd-track-badge {
  fill: #1d1b20;
  stroke: #332c35;
  stroke-width: 1;
}

.asd-track-lbl {
  font-size: 9.5px;
  font-weight: 700;
  fill: #8f828e !important;
}

.asd-vclip {
  fill: #3b2834 !important;
  stroke: #e49ab6 !important;
  stroke-width: 1;
}

.asd-clip-text {
  font-size: 8px;
  font-weight: 600;
  fill: #ffffff !important;
}

.asd-clip-sub {
  font-size: 7.5px;
  font-weight: 600;
  fill: #ffffff !important;
  opacity: 0.9;
}

.asd-aclip-scratch {
  fill: #262128 !important;
  stroke: #4b3e4c !important;
  stroke-width: 1;
}

.asd-wave-scratch {
  stroke: #8a7a87 !important;
  stroke-width: 1.2;
}

.asd-aclip-ext {
  fill: #1e3328 !important;
  stroke: #488265 !important;
  stroke-width: 1;
}

.asd-wave-ext {
  stroke: #8ed0aa !important;
  stroke-width: 1.4;
}

.asd-playhead {
  stroke: #ff3366;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px #ff3366);
}

.asd-cursor-path {
  fill: #ffffff;
  stroke: #1d161d;
  stroke-width: 1.4;
}

/* Steps Below Scene */
.public-studio .website-auto-sync-demo .asd-steps {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-shrink: 0;
}

.public-studio .website-auto-sync-demo .asd-steps li {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  line-height: 1.4;
  color: #b8adb7;
}

.asd-steps b {
  font-size: 9px;
  color: #e49ab6 !important;
  font-weight: 700;
}

/* ==========================================================================
   Animation Timings (14s loop)
   ========================================================================== */

.asd-play .asd-cursor { animation: asd-cursor-loop 14s ease-in-out infinite both; }
.asd-play .asd-cam-empty { animation: asd-fade-cam-empty 14s linear infinite both; }
.asd-play .asd-cam-filled { animation: asd-fade-cam-filled 14s ease-out infinite both; }
.asd-play .asd-cam-0 { animation: asd-num-show-0 14s linear infinite both; }
.asd-play .asd-cam-1 { animation: asd-num-show-1 14s linear infinite both; }

.asd-play .asd-audio-empty { animation: asd-fade-audio-empty 14s linear infinite both; }
.asd-play .asd-audio-filled { animation: asd-fade-audio-filled 14s ease-out infinite both; }
.asd-play .asd-audio-0 { animation: asd-num-audio-0 14s linear infinite both; }
.asd-play .asd-audio-1 { animation: asd-num-audio-1 14s linear infinite both; }

.asd-play .asd-check { animation: asd-check-anim 14s ease-out infinite both; }
.asd-play .asd-click { animation: asd-click-pulse 14s ease-out infinite both; }
.asd-play .asd-sync-button { animation: asd-sync-btn-anim 14s ease-in-out infinite both; }
.asd-play .asd-btn-progress { animation: asd-progress-bar 14s linear infinite both; }
.asd-play .asd-btn-text { animation: asd-btn-text-anim 14s ease-in-out infinite both; }
.asd-play .asd-btn-icon { animation: asd-btn-icon-anim 14s ease-in-out infinite both; }

.asd-play .asd-status-ready { animation: asd-st-ready 14s linear infinite both; }
.asd-play .asd-status-matching { animation: asd-st-matching 14s linear infinite both; }
.asd-play .asd-status-success { animation: asd-st-success 14s linear infinite both; }
.asd-play .asd-status-dot { animation: asd-st-dot 14s ease-in-out infinite both; }
.asd-play .asd-status-bar { animation: asd-st-bar 14s linear infinite both; }

.asd-play .asd-seq-orig { animation: asd-seq-orig-anim 14s linear infinite both; }
.asd-play .asd-seq-synced { animation: asd-seq-synced-anim 14s linear infinite both; }
.asd-play .asd-synced-pill,
.asd-play .asd-synced-badge { animation: asd-synced-pill-anim 14s cubic-bezier(0.2, 0.9, 0.3, 1.2) infinite both; }

.asd-play .asd-playhead { animation: asd-playhead-sweep 14s linear infinite both; }
.asd-play .asd-track-a2 { animation: asd-a2-sync-shift 14s cubic-bezier(0.25, 1, 0.35, 1) infinite both; }
.asd-play .asd-track-a1 { animation: asd-a1-scratch-anim 14s ease-in-out infinite both; }

[data-auto-sync-demo][data-running="false"] .asd-animated {
  animation-play-state: paused !important;
}

/* Keyframe Definitions */
@keyframes asd-cursor-loop {
  0%, 2% { transform: translate(460px, 520px); opacity: 0; }
  5% { transform: translate(142px, 185px); opacity: 1; }
  8% { transform: translate(142px, 185px) scale(0.9); opacity: 1; }
  10% { transform: translate(142px, 185px) scale(1); opacity: 1; }
  13% { transform: translate(378px, 185px); opacity: 1; }
  15% { transform: translate(378px, 185px) scale(0.9); opacity: 1; }
  17% { transform: translate(378px, 185px) scale(1); opacity: 1; }
  23% { transform: translate(39px, 240px); opacity: 1; }
  26% { transform: translate(39px, 240px) scale(0.85); opacity: 1; }
  29% { transform: translate(39px, 240px) scale(1); opacity: 1; }
  37% { transform: translate(260px, 274px); opacity: 1; }
  41% { transform: translate(260px, 274px) scale(0.88); opacity: 1; }
  45% { transform: translate(260px, 274px) scale(1); opacity: 1; }
  52% { transform: translate(280px, 368px); opacity: 1; }
  63% { transform: translate(220px, 460px); opacity: 1; }
  78%, 92% { transform: translate(380px, 485px); opacity: 1; }
  96%, 100% { transform: translate(380px, 485px); opacity: 0; }
}

@keyframes asd-fade-cam-empty {
  0%, 7% { opacity: 1; }
  9%, 95% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

@keyframes asd-fade-cam-filled {
  0%, 7% { opacity: 0; transform: scale(0.95); }
  9%, 95% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.95); }
}

@keyframes asd-num-show-0 {
  0%, 7% { opacity: 1; }
  9%, 95% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

@keyframes asd-num-show-1 {
  0%, 7% { opacity: 0; }
  9%, 95% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes asd-fade-audio-empty {
  0%, 14% { opacity: 1; }
  16%, 95% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

@keyframes asd-fade-audio-filled {
  0%, 14% { opacity: 0; transform: scale(0.95); }
  16%, 95% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.95); }
}

@keyframes asd-num-audio-0 {
  0%, 14% { opacity: 1; }
  16%, 95% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

@keyframes asd-num-audio-1 {
  0%, 14% { opacity: 0; }
  16%, 95% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes asd-check-anim {
  0%, 25% { opacity: 0; transform: scale(0.5); }
  28%, 95% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.5); }
}

@keyframes asd-click-pulse {
  0%, 40% { opacity: 0; transform: scale(0.4); }
  41% { opacity: 0.9; transform: scale(0.6); }
  45% { opacity: 0; transform: scale(1.9); }
  100% { opacity: 0; }
}

@keyframes asd-sync-btn-anim {
  0%, 40% { fill: #e49ab6; stroke: #e49ab6; }
  41% { fill: #f3bad0; stroke: #f3bad0; }
  44%, 74% { fill: #232026; stroke: #3b333d; }
  76%, 94% { fill: #232026; stroke: #339b64; }
  96%, 100% { fill: #e49ab6; stroke: #e49ab6; }
}

@keyframes asd-progress-bar {
  0%, 43% { transform: scaleX(0); opacity: 0; }
  44% { transform: scaleX(0.04); opacity: 0.85; }
  73%, 94% { transform: scaleX(1); opacity: 0.85; }
  96%, 100% { transform: scaleX(0); opacity: 0; }
}

@keyframes asd-btn-text-anim {
  0%, 41% { fill: #2d1e27; }
  43%, 94% { fill: #ffffff; }
  96%, 100% { fill: #2d1e27; }
}

@keyframes asd-btn-icon-anim {
  0%, 41% { stroke: #2d1e27; }
  43%, 94% { stroke: #ffffff; }
  96%, 100% { stroke: #2d1e27; }
}

@keyframes asd-st-ready {
  0%, 42% { opacity: 1; }
  44%, 95% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

@keyframes asd-st-matching {
  0%, 43% { opacity: 0; }
  45%, 74% { opacity: 1; }
  76%, 100% { opacity: 0; }
}

@keyframes asd-st-success {
  0%, 75% { opacity: 0; }
  77%, 94% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes asd-st-dot {
  0%, 42% { fill: #e49ab6; }
  44%, 74% { fill: #ffd166; }
  76%, 94% { fill: #8ed0aa; }
  96%, 100% { fill: #e49ab6; }
}

@keyframes asd-st-bar {
  0%, 43% { transform: scaleX(0); opacity: 0; }
  45% { transform: scaleX(0.05); opacity: 1; }
  73%, 94% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(0); opacity: 0; }
}

@keyframes asd-seq-orig-anim {
  0%, 75% { opacity: 1; }
  77%, 95% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

@keyframes asd-seq-synced-anim {
  0%, 75% { opacity: 0; }
  77%, 94% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes asd-synced-pill-anim {
  0%, 76% { opacity: 0; transform: scale(0.85); }
  78%, 94% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.85); }
}

@keyframes asd-playhead-sweep {
  0%, 44% { opacity: 0; transform: translateX(0); }
  45% { opacity: 1; transform: translateX(0); }
  73% { opacity: 1; transform: translateX(430px); }
  75%, 100% { opacity: 0; transform: translateX(430px); }
}

@keyframes asd-a2-sync-shift {
  0%, 53% { transform: translate(0, 0); }
  68%, 94% { transform: translate(-60px, -32px); }
  96%, 100% { transform: translate(0, 0); }
}

@keyframes asd-a1-scratch-anim {
  0%, 66% { opacity: 1; }
  72%, 94% { opacity: 0; }
  96%, 100% { opacity: 1; }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  [data-auto-sync-demo] .asd-animated {
    animation: none !important;
  }
  .asd-cursor,
  .asd-click,
  .asd-playhead,
  .asd-status-bar,
  .asd-cam-empty,
  .asd-audio-empty,
  .asd-cam-0,
  .asd-audio-0,
  .asd-status-ready,
  .asd-status-matching,
  .asd-seq-orig {
    display: none !important;
  }
  .asd-cam-filled,
  .asd-audio-filled,
  .asd-cam-1,
  .asd-audio-1,
  .asd-check,
  .asd-status-success,
  .asd-seq-synced,
  .asd-synced-pill,
  .asd-synced-badge {
    opacity: 1 !important;
    transform: none !important;
  }
  .asd-track-a2 {
    transform: translate(-60px, -32px) !important;
  }
  .asd-track-a1 {
    opacity: 0.18 !important;
  }
}
