/* =========================================
   SCRIPT CARD
========================================= */

.sh-scripts-container {
  --sh-bg: #0b0d12;
  --sh-card: #11141b;
  --sh-card-hover: #171b24;
  --sh-border: rgba(255,255,255,.08);
  --sh-text: #f5f7fb;
  --sh-muted: #929aaa;
  --sh-accent: #8b5cf6;
  --sh-accent-light: #a78bfa;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.sh-scripts-container *,
.sh-scripts-container *::before,
.sh-scripts-container *::after {
  box-sizing: border-box;
}


/* =========================================
   CARD
========================================= */

.sh-script-card {
  width: 100%;
  max-width: 1080px;

  margin: 30px auto;
  padding: 28px;

  position: relative;

  color: var(--sh-text);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(139,92,246,.14),
      transparent 32%
    ),
    var(--sh-bg);

  border: 1px solid var(--sh-border);
  border-radius: 24px;

  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.025);

  overflow: hidden;

  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}

.sh-script-card:hover {
  border-color: rgba(139,92,246,.22);

  box-shadow:
    0 25px 70px rgba(0,0,0,.42),
    0 0 35px rgba(139,92,246,.04);
}


/* =========================================
   HEADER
========================================= */

.sh-script-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.sh-script-title-area {
  min-width: 0;
  flex: 1;
}

.sh-script-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;
}

.sh-script-title {
  margin: 0;

  color: #ffffff !important;

  font-size: 30px;
  line-height: 1.2;
  font-weight: 750;

  letter-spacing: -.7px;
}

.sh-script-description {
  max-width: 650px;

  margin: 12px 0 0;

  font-size: 14px;
  line-height: 1.7;
}


/* =========================================
   STATUS
========================================= */

.sh-status {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding: 6px 10px;

  border-radius: 999px;

  color: #86efac;

  background: rgba(34,197,94,.09);

  border: 1px solid rgba(34,197,94,.18);

  font-size: 11px;
  line-height: 1;
  font-weight: 700;

  white-space: nowrap;
}

.sh-status-dot {
  width: 7px;
  height: 7px;

  flex: 0 0 7px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 0 3px rgba(34,197,94,.08),
    0 0 12px rgba(34,197,94,.65);
}


/* =========================================
   SCRIPT ICON
========================================= */

.sh-script-icon {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  color: var(--sh-accent-light);

  background:
    linear-gradient(
      145deg,
      rgba(139,92,246,.20),
      rgba(139,92,246,.055)
    );

  border: 1px solid rgba(139,92,246,.18);

  font-size: 20px;
}


/* =========================================
   META
========================================= */

.sh-script-meta {
  display: grid;

  grid-template-columns: repeat(3, minmax(0,1fr));

  gap: 10px;

  margin-top: 25px;
}

.sh-meta-item {
  min-width: 0;

  padding: 14px 16px;

  background: rgba(255,255,255,.025);

  border: 1px solid var(--sh-border);

  border-radius: 14px;
}

.sh-meta-label {
  display: block;

  margin-bottom: 5px;

  color: #737b8c;

  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;

  letter-spacing: .1em;
  text-transform: uppercase;
}

.sh-meta-value {
  display: block;

  color: #e8ebf2;

  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;

  overflow-wrap: anywhere;
}


/* =========================================
   SECTION TITLE
========================================= */

.sh-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 15px;

  margin-top: 30px;
  margin-bottom: 14px;
}

.sh-eyebrow {
  display: block;

  color: var(--sh-accent-light) !important;

  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;

  letter-spacing: .14em;
}

.sh-section-title {
  margin: 5px 0 0;

  color: #ffffff;

  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.sh-feature-count {
  color: var(--sh-muted);

  font-size: 12px;

  white-space: nowrap;
}


/* =========================================
   FEATURES
========================================= */

.sh-feature-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0,1fr));

  gap: 9px;
}

.sh-feature {
  min-width: 0;
  min-height: 48px;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 9px 13px;

  color: #dce1eb;

  background: var(--sh-card);

  border: 1px solid var(--sh-border);

  border-radius: 12px;

  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.sh-feature:hover {
  transform: translateY(-2px);

  background: var(--sh-card-hover);

  border-color: rgba(139,92,246,.28);
}

.sh-feature-icon {
  width: 28px;
  height: 28px;

  flex: 0 0 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--sh-accent-light);

  background: rgba(139,92,246,.10);

  border-radius: 8px;

  font-size: 12px;
}


/* =========================================
   CODE AREA
========================================= */

.sh-code-section {
  margin-top: 28px;
  padding: 18px;

  background: #0e1016;

  border: 1px solid var(--sh-border);

  border-radius: 17px;
}

.sh-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 14px;
}

.sh-code-title {
  margin: 5px 0 0;

  color: #ffffff;

  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}


/* =========================================
   COPY BUTTON
========================================= */

.sh-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 8px 12px;

  color: #c4b5fd;

  background: rgba(139,92,246,.08);

  border: 1px solid rgba(139,92,246,.22);

  border-radius: 9px;

  font-family: inherit;

  font-size: 12px;
  line-height: 1;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.sh-copy-btn:hover {
  transform: translateY(-1px);

  background: rgba(139,92,246,.15);

  border-color: rgba(139,92,246,.38);
}

.sh-copy-btn.copied {
  color: #86efac;

  background: rgba(34,197,94,.08);

  border-color: rgba(34,197,94,.25);
}


/* =========================================
   CODE
========================================= */

.sh-code-box {
  width: 100%;

  overflow-x: auto;

  padding: 16px;

  background: #080a0f;

  border: 1px solid rgba(255,255,255,.055);

  border-radius: 12px;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 12px;
  line-height: 1.7;

  white-space: pre;

  scrollbar-width: thin;
}

.sh-code-box::-webkit-scrollbar {
  height: 6px;
}

.sh-code-box::-webkit-scrollbar-track {
  background: transparent;
}

.sh-code-box::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);

  border-radius: 10px;
}

.sh-code-keyword {
  color: #c084fc;
}

.sh-code-function {
  color: #60a5fa;
}

.sh-code-string {
  color: #86efac;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .sh-script-card {
    margin: 20px auto;
    padding: 20px;

    border-radius: 19px;
  }

  .sh-script-header {
    gap: 12px;
  }

  .sh-script-title {
    font-size: 25px;
  }

  .sh-script-icon {
    width: 44px;
    height: 44px;

    flex-basis: 44px;

    border-radius: 13px;

    font-size: 17px;
  }

  .sh-script-description {
    font-size: 13px;
  }

  .sh-script-meta {
    grid-template-columns: 1fr;

    margin-top: 20px;
  }

  .sh-feature-grid {
    grid-template-columns: 1fr;
  }

  .sh-section-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 7px;
  }

  .sh-code-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .sh-copy-btn {
    width: 100%;
  }

}


/* =========================================
   VERY SMALL SCREENS
========================================= */

@media (max-width: 380px) {

  .sh-script-card {
    padding: 16px;
  }

  .sh-script-title {
    font-size: 23px;
  }

  .sh-script-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }

  .sh-feature {
    font-size: 12px;
  }

}
