/* assets/css/spp-style.css */
/* Security & Privacy Pack - isolated styles (Tech4SEO / Zubair Naeem) */

.spp-wrap{
  --bg:#0b1220;
  --card:#0f1b2f;
  --card2:#0d1628;
  --stroke:rgba(255,255,255,.10);
  --text:#e6eefc;
  --muted:rgba(230,238,252,.75);
  --accent:#22d3ee;
  --good:#10b981;
  --warn:#f59e0b;
  --bad:#ef4444;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
}

/* Light theme */
.spp-wrap.is-light{
  --bg:#f7fafc;
  --card:#ffffff;
  --card2:#f2f6ff;
  --stroke:rgba(10,20,40,.12);
  --text:#0b1220;
  --muted:rgba(11,18,32,.70);
  --accent:#0ea5e9;
  --good:#059669;
  --warn:#d97706;
  --bad:#dc2626;
}

/* Keep everything scoped and avoid theme collisions */
.spp-wrap *{
  box-sizing: border-box;
}

/* --- HERO --- */
.spp-hero{
  background: radial-gradient(1200px 600px at 20% 20%, rgba(34,211,238,.25), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(16,185,129,.18), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  background-color: var(--bg);
}

@media(max-width: 900px){
  .spp-hero{ grid-template-columns: 1fr; }
}

.spp-badge{
  display:inline-block;
  font-size:12px;
  letter-spacing:.2px;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  margin-bottom: 10px;
}

.spp-title{
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 8px 0;
}

.spp-subtitle{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.spp-hero__cta{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spp-hero__right{
  display:grid;
  gap: 12px;
}

.spp-stat{
  border:1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.02);
}
.spp-stat__num{ font-size: 28px; font-weight: 900; }
.spp-stat__lbl{ color: var(--muted); font-size: 12px; }

.spp-mini{
  border:1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.02);
}
.spp-mini__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.spp-wrap.is-light .spp-mini__row{ border-bottom:1px solid rgba(10,20,40,.08); }
.spp-mini__row:last-child{ border-bottom:none; }
.spp-mini__row span{ color: var(--muted); font-size: 13px; }
.spp-mini__row b{ font-size: 13px; }

/* --- SHELL --- */
.spp-shell{
  margin-top: 16px;
  background: transparent;
}

/* --- TABS --- */
.spp-tabs{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.spp-tab{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}
.spp-tab.is-active{
  border-color: rgba(34,211,238,.35);
  background: rgba(34,211,238,.10);
}

/* --- CARD --- */
.spp-card{
  border:1px solid var(--stroke);
  border-radius: 18px;
  background: var(--card);
  overflow:hidden;
}
.spp-card__head{
  padding: 14px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.spp-wrap.is-light .spp-card__head{ border-bottom:1px solid rgba(10,20,40,.08); }
.spp-card__title{ font-size: 16px; font-weight: 950; }
.spp-card__hint{ color: var(--muted); margin-top: 3px; font-size: 13px; }

.spp-card__body{ padding: 16px; }

/* --- GRID --- */
.spp-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media(max-width: 900px){
  .spp-grid{ grid-template-columns: 1fr; }
}

/* --- FIELDS --- */
.spp-field{
  border:1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  background: var(--card2);
}

.spp-label{
  display:block;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 8px;
}

.spp-small{
  font-size: 12px;
  color: var(--muted);
  display:block;
  margin-bottom: 6px;
}

/* Inputs */
.spp-input,
.spp-textarea{
  width:100%;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding: 10px 12px;
  outline:none;
  font-size: 14px;
  line-height: 1.35;
}

.spp-textarea{
  resize: vertical;
  min-height: 120px;
}

.spp-inputRow{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
}

/* Small buttons beside inputs */
.spp-iconBtn{
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 950;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1;
}

.spp-row{
  display:flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.spp-col{ flex: 1; min-width: 140px; }

.spp-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* --- BUTTONS (native style) --- */
.spp-btn{
  border-radius: 12px;
  border:1px solid var(--stroke);
  padding: 10px 12px;
  cursor:pointer;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 950;
  font-size: 13px;
  line-height: 1;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.spp-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(34,211,238,.35);
  background: rgba(255,255,255,.06);
}
.spp-btn--primary{
  background: linear-gradient(135deg, rgba(34,211,238,.22), rgba(16,185,129,.18));
  border-color: rgba(34,211,238,.35);
}
.spp-btn--ghost{
  background: transparent;
}

/* Outputs */
.spp-output{ margin-top: 12px; }
.spp-output__label{ color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.spp-output__box{
  display:flex;
  gap: 10px;
  align-items:center;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 10px 12px;
  overflow:auto;
}
.spp-output__box code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  word-break: break-all;
}

.spp-note{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}

.spp-divider{
  height:1px;
  background: rgba(255,255,255,.08);
  margin: 14px 0;
}
.spp-wrap.is-light .spp-divider{ background: rgba(10,20,40,.10); }

/* Password meter */
.spp-meter{
  height: 10px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  margin-top: 10px;
  overflow:hidden;
}
.spp-meter__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bad), var(--warn), var(--good));
  transition: width .2s ease;
}

.spp-metaRow{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.spp-list{
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Chips */
.spp-chips{ display:flex; gap: 8px; flex-wrap: wrap; }
.spp-chip{
  border:1px solid var(--stroke);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  font-size: 12px;
  color: var(--text);
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.spp-chip input{ accent-color: var(--accent); }

.spp-kpi{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  border:1px dashed var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
}

/* Panels */
.spp-panel{ display:none; }
.spp-panel.is-active{ display:block; }

/* Toast */
.spp-toast{
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999999;
  background: rgba(0,0,0,.65);
  color:#fff;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.18);
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.spp-wrap.is-light .spp-toast{ background: rgba(11,18,32,.85); }
.spp-toast.is-show{
  opacity: 1;
  transform: translateY(0px);
}

/* Footer note */
.spp-footerNote{
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
}

/* =========================================================
   HARD FIX: THEME OVERRIDES (BUTTONS TURNING WHITE)
   This section is intentionally very specific + !important
   ========================================================= */

/* Reset WP/theme "button" styling inside plugin container */
html body .spp-wrap button,
html body .spp-wrap input[type="button"],
html body .spp-wrap input[type="submit"],
html body .spp-wrap a.button,
html body .spp-wrap .button,
html body .spp-wrap .wp-element-button,
html body .spp-wrap .wp-block-button__link{
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  border-radius: 12px !important;
}

/* Force plugin buttons */
html body .spp-wrap.spp-wrap button.spp-btn,
html body .spp-wrap.spp-wrap a.spp-btn,
html body .spp-wrap.spp-wrap .spp-btn,
html body .spp-wrap.spp-wrap button.spp-iconBtn,
html body .spp-wrap.spp-wrap .spp-iconBtn{
  -webkit-appearance: none !important;
  appearance: none !important;

  background-color: rgba(255,255,255,.08) !important;
  background-image: none !important;
  color: var(--text) !important;

  border: 1px solid rgba(34,211,238,.55) !important;
  box-shadow: none !important;
  text-shadow: none !important;

  opacity: 1 !important;
  filter: none !important;
}

/* Primary always gradient */
html body .spp-wrap.spp-wrap .spp-btn.spp-btn--primary{
  background-color: transparent !important;
  background-image: linear-gradient(135deg, rgba(34,211,238,.32), rgba(16,185,129,.24)) !important;
  border-color: rgba(34,211,238,.75) !important;
  color: var(--text) !important;
}

/* Ghost always transparent */
html body .spp-wrap.spp-wrap .spp-btn.spp-btn--ghost{
  background-color: transparent !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* Hover */
html body .spp-wrap.spp-wrap .spp-btn:hover,
html body .spp-wrap.spp-wrap .spp-iconBtn:hover{
  background-color: rgba(34,211,238,.16) !important;
  border-color: rgba(34,211,238,.90) !important;
}

/* Focus ring */
html body .spp-wrap.spp-wrap .spp-btn:focus,
html body .spp-wrap.spp-wrap .spp-iconBtn:focus,
html body .spp-wrap.spp-wrap .spp-input:focus,
html body .spp-wrap.spp-wrap .spp-textarea:focus,
html body .spp-wrap.spp-wrap .spp-tab:focus{
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(34,211,238,.18) !important;
}

/* Light mode button fixes */
html body .spp-wrap.spp-wrap.is-light .spp-btn,
html body .spp-wrap.spp-wrap.is-light .spp-iconBtn{
  background-color: rgba(10,20,40,.05) !important;
  background-image: none !important;
  color: var(--text) !important;
  border-color: rgba(14,165,233,.55) !important;
}
html body .spp-wrap.spp-wrap.is-light .spp-btn.spp-btn--primary{
  background-image: linear-gradient(135deg, rgba(14,165,233,.20), rgba(5,150,105,.14)) !important;
  border-color: rgba(14,165,233,.75) !important;
}
html body .spp-wrap.spp-wrap.is-light .spp-btn.spp-btn--ghost{
  background-color: transparent !important;
  background-image: none !important;
  border-color: rgba(10,20,40,.14) !important;
}
html body .spp-wrap.spp-wrap.is-light .spp-btn:hover,
html body .spp-wrap.spp-wrap.is-light .spp-iconBtn:hover{
  background-color: rgba(14,165,233,.10) !important;
  border-color: rgba(14,165,233,.85) !important;
}