/* AI Edge Analyzer — GKZiD tool colors (dark + lime green, not competitor coral/pink) */

.edge-analyzer {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  border-radius: 14px;
  overflow: visible;
  border: 1px solid rgba(0, 245, 42, 0.18);
  background: rgba(8, 10, 12, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.edge-analyzer--dark {
  max-width: none;
  border-radius: 12px;
  border-color: rgba(0, 245, 42, 0.14);
  background: rgba(6, 8, 10, 0.65);
  box-shadow: none;
}

/* Header — GKZiD green gradient, not orange/pink */
.edge-analyzer__head {
  padding: 0.85rem 1rem 1rem;
  text-align: center;
  overflow: visible;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(
    105deg,
    #0a1208 0%,
    #142210 42%,
    #1e3810 100%
  );
  border-bottom: 1px solid rgba(0, 245, 42, 0.22);
}

.edge-analyzer--dark .edge-analyzer__head {
  background: linear-gradient(
    105deg,
    #080a08 0%,
    #101a0c 50%,
    #162612 100%
  );
}

.edge-analyzer__title {
  margin: 0;
  /* Outfit not Syne — Syne 800 clips g/p/y descenders in Chrome (see van-home.css) */
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  padding: 0.06em 0 0.12em;
  text-transform: uppercase;
  color: #fff;
  overflow: visible;
}

.edge-analyzer__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.35rem auto 0;
  border-radius: 999px;
  background: var(--gk, #00f52a);
  box-shadow: 0 0 10px var(--gk-shadow-soft, rgba(0, 245, 42, 0.25));
}

.edge-analyzer__body {
  padding: 1rem;
  background: transparent;
  border-radius: 0 0 14px 14px;
  overflow: visible;
}

.edge-analyzer.has-enhancer .edge-analyzer__body {
  border-radius: 0;
}

.edge-analyzer--dark .edge-analyzer__body {
  padding: 0.75rem 0.75rem 0.85rem;
}

.edge-analyzer__drop {
  display: block;
  margin: 0;
  cursor: pointer;
}

.edge-analyzer__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Drop target — utility box, not promo card */
.edge-analyzer__zone {
  position: relative;
  min-height: 13rem;
  border: 2px dashed rgba(0, 245, 42, 0.38);
  border-radius: 10px;
  background: rgba(0, 245, 42, 0.03);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.edge-analyzer--dark .edge-analyzer__zone {
  min-height: 11.5rem;
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(0, 245, 42, 0.32);
}

.edge-analyzer__drop:hover .edge-analyzer__zone,
.edge-analyzer__drop:focus-within .edge-analyzer__zone {
  border-color: rgba(0, 245, 42, 0.72);
  background: rgba(0, 245, 42, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 245, 42, 0.08);
}

.edge-analyzer__drop.is-dragover .edge-analyzer__zone {
  border-color: var(--gk, #00f52a);
  background: rgba(0, 245, 42, 0.1);
  box-shadow: 0 0 0 3px var(--gk-shadow-soft, rgba(0, 245, 42, 0.12));
}

.edge-analyzer__zone.is-busy {
  pointer-events: none;
}

.edge-analyzer__idle {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 13rem;
  padding: 1.25rem 1rem;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

.edge-analyzer--dark .edge-analyzer__idle {
  min-height: 11.5rem;
}

.edge-analyzer__zone.has-video .edge-analyzer__idle {
  display: none;
}

.edge-analyzer__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.7rem;
  color: var(--gk, #00f52a);
  opacity: 0.92;
}

.edge-analyzer__drop-title {
  margin: 0 0 0.35rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.edge-analyzer__drop-sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  max-width: 15.5rem;
}

.edge-analyzer__drop-hint {
  margin: 0.5rem 0 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.38);
}

.edge-analyzer__preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.edge-analyzer__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0.85rem 0.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.78) 100%);
  box-sizing: border-box;
}

.edge-analyzer__overlay-bar {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.edge-analyzer__overlay-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gk, #00f52a);
  transition: width 0.25s ease;
}

.edge-analyzer__overlay-text {
  margin: 0;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.edge-analyzer__results {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 245, 42, 0.12);
}

.edge-analyzer--dark .edge-analyzer__results {
  padding: 0.75rem 0 0;
  margin-top: 0.75rem;
}

.edge-analyzer__scores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.edge-analyzer__score {
  display: flex;
  justify-content: space-between;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}

.edge-analyzer__score-label {
  color: rgba(255, 255, 255, 0.52);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.35;
}

.edge-analyzer__score-val {
  font-weight: 700;
  color: var(--gk, #00f52a);
  font-variant-numeric: tabular-nums;
}

.edge-analyzer__verdict {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.edge-analyzer__cta-wrap {
  margin: 0.65rem 0 0;
  text-align: center;
}

.edge-analyzer__cta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gk, #00f52a);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 42, 0.35);
}

.edge-analyzer__cta:hover {
  border-bottom-color: var(--gk, #00f52a);
}

.edge-analyzer__locker-actions {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 245, 42, 0.14);
}

.edge-analyzer__locker-hint {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.edge-analyzer__locker-btns {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.edge-analyzer__locker-save,
.edge-analyzer__locker-discard {
  width: 100%;
  min-height: 2.65rem;
  border-radius: 999px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.edge-analyzer__locker-save {
  background: var(--gk, #00f52a);
  color: #0a0a0a;
  box-shadow: 0 4px 18px rgba(0, 245, 42, 0.25);
}

.edge-analyzer__locker-save:disabled {
  opacity: 0.65;
  cursor: wait;
}

.edge-analyzer__locker-discard {
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.edge-analyzer__locker-save:active:not(:disabled),
.edge-analyzer__locker-discard:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

/* Homepage sample — video only, no upload */
.edge-analyzer--preview .edge-analyzer__drop {
  cursor: default;
  pointer-events: none;
}

.edge-analyzer--preview .edge-analyzer__zone {
  border-style: solid;
  border-color: rgba(0, 245, 42, 0.28);
  min-height: 0;
  width: 100%;
  max-width: min(96vw, 24rem);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  height: auto;
}

.edge-analyzer--preview .edge-analyzer__preview {
  object-fit: cover;
  object-position: center;
}

.edge-analyzer--preview .edge-analyzer__idle {
  display: none;
}

.edge-analyzer.is-analyzing .edge-analyzer__score-val {
  animation: edgeScorePulse 0.55s ease infinite alternate;
}

@keyframes edgeScorePulse {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.gs-analyzer-wrap {
  margin-bottom: 1.25rem;
}

.ml-edge-analyzer-wrap {
  margin: 0 0.75rem 0.85rem;
}

/* Step 2 — Enhance (blue CTA after Analyzer scores) */
.edge-analyzer__enhancer[hidden] {
  display: none !important;
}

.edge-analyzer__enhancer:not([hidden]) {
  display: block;
  opacity: 1;
  transform: none;
}

.edge-analyzer__enhancer {
  margin: 0 0.75rem 0.85rem;
  padding: 0.85rem 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.14) 0%, rgba(15, 23, 42, 0.55) 100%);
  text-align: center;
  position: relative;
  z-index: 2;
}

.edge-analyzer--dark > .edge-analyzer__enhancer {
  margin: 0 0.75rem 0.85rem;
}

.edge-analyzer:not(.edge-analyzer--dark) > .edge-analyzer__enhancer {
  margin: 0 0 0.85rem;
  border-radius: 0 0 14px 14px;
  border-top: none;
}

.edge-analyzer__enhancer.is-visible {
  animation: edgeEnhancerPop 0.5s cubic-bezier(0.34, 1.35, 0.64, 1);
}

@keyframes edgeEnhancerPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.edge-analyzer__enhancer-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.92);
}

.edge-analyzer__enhancer-sub {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.edge-analyzer__enhancer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  min-width: 44px;
  padding: 0.78rem 1rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.edge-analyzer__enhancer-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.55);
}

.edge-analyzer__enhancer-btn:active {
  transform: scale(0.98);
}

.edge-analyzer__enhancer-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.edge-analyzer__enhancer-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.edge-analyzer__enhancer-result {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(191, 219, 254, 0.92);
}

.edge-analyzer--dark .edge-analyzer__enhancer {
  border-color: rgba(96, 165, 250, 0.42);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.2) 0%, rgba(8, 12, 20, 0.75) 100%);
}

@media (max-width: 640px) {
  .edge-analyzer > .edge-analyzer__enhancer:not([hidden]) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }

  .edge-analyzer__enhancer-btn {
    min-height: 3.1rem;
    font-size: 1.05rem;
  }

  .gs-clip-sheet__btn--enhance {
    min-height: 3.1rem;
    font-size: 1.05rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}
