/* =========================================================================
   SENDPK.COM — Plugins page styles (plugins.php only)
   -------------------------------------------------------------------------
   plugins.php reuses the SAME two-column shell as services.php: the .svc-*
   classes in services-styles.css are global (not scoped), so that file is
   loaded alongside this one and does most of the work. Only two things
   live here:

   1. The #pluginsPage root block — mirrors #servicesPage's page-level vars
      (header offset, font size, background) because services-styles.css
      scopes those to services.php's own root id.
   2. .plg-* extras that only exist on this page: the download button row
      and the mock "Example screen" screenshots used by the tutorial
      (WooCommerce isn't installed on this server, so the tutorial shows
      clearly-labelled illustrative mock-ups instead of real captures).

   Colours, radii, shadows and fonts come from theme.css (:root) tokens.
   ========================================================================= */

#pluginsPage {
  --svc-header-offset: 96px; /* synced to the real header by plugins-page.js */
  font-size: 15.5px;
  line-height: 1.7;
  background: var(--section-glow), var(--wa-surface);
}
@media (max-width: 575.98px) {
  #pluginsPage { font-size: 14.5px; }
}

/* =========================================================================
   DOWNLOAD ROW — the "Download Plugin" button + version/size meta
   ========================================================================= */
.plg-download {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  background: var(--wa-surface);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0 0;
}
.plg-download .plg-dl-meta { color: var(--wa-muted); font-size: .88rem; margin: 0; }
.plg-download .plg-dl-meta strong { color: var(--wa-ink); }

/* =========================================================================
   MOCK SCREENSHOTS — browser-style frame + caption, clearly marked as
   example screens (not real captures).
   ========================================================================= */
.plg-shot { margin: 1.4rem 0 0; max-width: 720px; }
.plg-shot-frame {
  background: var(--wa-surface);
  border: 1px solid var(--wa-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.plg-shot-bar {
  display: flex; align-items: center; gap: .45rem;
  background: var(--wa-page);
  border-bottom: 1px solid var(--wa-line);
  padding: .55rem .9rem;
}
.plg-shot-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #D5DBE1; flex-shrink: 0;
}
.plg-shot-bar em {
  font-style: normal; font-size: .78rem; color: var(--wa-muted);
  margin-left: .35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plg-shot-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: .64rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(34, 197, 94, .13); color: var(--wa-teal-dark);
  border-radius: var(--radius-btn); padding: .18rem .6rem;
}
.plg-shot-body { padding: 1.1rem 1.2rem 1.3rem; }
.plg-shot figcaption {
  color: var(--wa-muted); font-size: .86rem; margin-top: .55rem; padding-left: .2rem;
}

/* --- Mock WP-admin widgets used inside the frames ---------------------- */
.plg-mock-title { font-weight: 700; font-size: .98rem; color: var(--wa-ink); margin: 0 0 .8rem; }
.plg-mock-field { margin-bottom: .7rem; }
.plg-mock-field label {
  display: block; font-size: .8rem; font-weight: 600; color: var(--wa-body); margin-bottom: .25rem;
}
.plg-mock-input {
  background: #fff; border: 1px solid #C8CFD6; border-radius: 6px;
  padding: .4rem .7rem; font-size: .86rem; color: var(--wa-ink);
  max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plg-mock-input.code { font-family: var(--font-mono, monospace); font-size: .8rem; }
.plg-mock-input.short { max-width: 140px; }
.plg-mock-input.tiny { max-width: 90px; }
.plg-mock-btn {
  display: inline-block; background: var(--wa-teal); color: #fff;
  border-radius: 6px; padding: .42rem 1rem; font-size: .85rem; font-weight: 600;
}
.plg-mock-btn.secondary { background: var(--wa-page); color: var(--wa-teal-dark); border: 1px solid #C8CFD6; }
.plg-mock-drop {
  border: 2px dashed #C8CFD6; border-radius: 10px; background: var(--wa-page);
  padding: 1.3rem 1rem; text-align: center; color: var(--wa-muted);
  font-size: .88rem; margin-bottom: .9rem;
}
.plg-mock-drop .zip {
  display: inline-block; background: rgba(34, 197, 94, .12); color: var(--wa-teal-dark);
  font-family: var(--font-mono, monospace); font-size: .82rem; font-weight: 600;
  border-radius: 6px; padding: .2rem .6rem; margin-top: .35rem;
}
.plg-mock-check { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--wa-body); margin-bottom: .9rem; }
.plg-mock-check i { color: var(--wa-action); }
.plg-mock-note {
  background: rgba(34, 197, 94, .09); border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 8px; color: var(--wa-teal-dark);
  font-size: .82rem; font-weight: 600; padding: .5rem .8rem; margin-top: .9rem;
}
.plg-mock-note.plain { font-family: var(--font-mono, monospace); font-weight: 500; }

/* Mock of the plugin's key/value rows table */
.plg-mock-rows { width: 100%; border-collapse: collapse; font-size: .84rem; margin: .3rem 0 .2rem; }
.plg-mock-rows th, .plg-mock-rows td {
  border: 1px solid var(--wa-line); padding: .4rem .65rem; text-align: left;
}
.plg-mock-rows th { background: var(--wa-page); font-size: .76rem; color: var(--wa-muted); }
.plg-mock-rows code { font-size: .8rem; color: var(--wa-teal-dark); background: transparent; padding: 0; }
.plg-mock-onoff {
  font-size: .64rem; font-weight: 700; letter-spacing: .5px;
  background: rgba(34, 197, 94, .13); color: var(--wa-teal-dark);
  border-radius: 10px; padding: .15rem .55rem; vertical-align: middle;
}

/* Numbered setup steps (CSP-safe replacement for inline padding). */
.plg-steps { padding-left: 1.2rem; }

/* "Common problems" card width cap. */
.mask-req-card.plg-problems { max-width: 760px; }

@media (max-width: 575.98px) {
  .plg-shot-body { padding: .9rem .8rem 1rem; }
  .plg-mock-input { max-width: 100%; }
}
