/* Elementor "Let's start building" – style home (Wow Extensions) */

.wowext-dashboard {
  --wow-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wow-ink: #0f1114;
  --wow-muted: #69727d;
  --wow-surface: #fff;
  --wow-page-bg: #f1f3f5;
  --wow-border: #e0e0e0;
  --wow-pill-inactive: #e8eaed;
  --wow-pill-active: #2c3338;
  --wow-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* background: var(--wow-page-bg); */
  overflow: visible;
  /* Match Settings page (admin.css): sticky + nav offset */
  --wowext-sticky-header-h: 5.625rem; /* 90px — same as .wowext-dashboard-header on Settings */
  --wowext-admin-bar-offset: 0px;
  /* margin: 0; */
  /* margin-left: -20px; */
  -webkit-tap-highlight-color: transparent;
  font-family: var(--wow-font);
  color: var(--wow-ink);
}

body.admin-bar .wowext-dashboard {
  --wowext-admin-bar-offset: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .wowext-dashboard {
    --wowext-admin-bar-offset: 46px;
  }
}

/* Settings (PHP) + Home (React): same header as src/css/admin.css */
.wowext-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  position: sticky;
  top: var(--wowext-admin-bar-offset, 0px);
  z-index: 100;
  box-sizing: border-box;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  /* WP admin content font — matches .wrap on Settings, not Plus Jakarta */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wowext-dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wowext-logo-img img {
  inline-size: 48px;
  block-size: auto;
  display: block;
}

.wowext-dashboard-header-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 5px;
  color: #1d2327;
}

.wowext-version {
  margin: 0;
  color: #a64cf0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.wowext-dashboard-header-right a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  font-size: 14px;
  color: #333642;
  text-decoration: none;
  font-weight: 500;
  padding: 0;
  border-radius: 0;
  transition: color 0.15s ease;
}

.wowext-dashboard-header-right a:hover {
  color: #000;
  background: transparent;
}

.wowext-dashboard-header-right a svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  opacity: 1;
}

/* Home main column (header/footer are PHP outside this block) */
.wowext-content.wowext-home-surface,
.wowext-home-surface.wowext-content {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  min-height: calc(100vh - 320px);
  background-color: #fff;
}

/* Home app: notices + confirm modal (React) */
.wowext-home-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--wow-font);
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wowext-home-notice--success {
  background: #edfaef;
  border-color: #68de7c;
  color: #1e4620;
}

.wowext-home-notice--error {
  background: #fcf0f1;
  border-color: #f0b0b5;
  color: #6b2127;
}

.wowext-home-notice__text {
  margin: 0;
  flex: 1;
}

.wowext-home-notice__dismiss {
  flex-shrink: 0;
  margin: -4px -6px -4px 0;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.wowext-home-notice__dismiss:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.wowext-home-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 17, 20, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.wowext-home-modal {
  width: 100%;
  max-width: 420px;
  background: var(--wow-surface, #fff);
  border-radius: 10px;
  padding: 1.35rem 1.35rem 1.1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-family: var(--wow-font);
  color: var(--wow-ink);
}

.wowext-home-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wowext-home-modal__extension-name {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #5b2aae;
}

.wowext-home-modal__body {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--wow-muted);
}

.wowext-home-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.wowext-home-modal__btn {
  font-family: var(--wow-font);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.wowext-home-modal__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wowext-home-modal__btn--secondary {
  background: #fff;
  border-color: #c3c4c7;
  color: #2c3338;
}

.wowext-home-modal__btn--secondary:hover:not(:disabled) {
  background: #f6f7f7;
  border-color: #8c8f94;
}

.wowext-home-modal__btn--primary {
  background: linear-gradient(120deg, #9149fd 0%, #e953c5 100%);
  color: #fff;
  border-color: transparent;
}

.wowext-home-modal__btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

/* ── Hero + toolbar (Elementor home stack) ─────────────────────── */

.wowext-home-hero {
  margin-bottom: 1.75rem;
}

.wowext-home-hero .wowext-home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--wow-ink);
}

.wowext-home-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.wowext-home-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.wowext-home-filter {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--wow-font);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  color: #3d4f5e;
  background: var(--wow-pill-inactive);
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.3;
}

.wowext-home-filter:hover {
  background: #dde1e5;
  color: var(--wow-ink);
}

.wowext-home-filter.is-active {
  background: var(--wow-pill-active);
  color: #fff;
}

.wowext-home-filter.is-active:hover {
  background: #1e2327;
  color: #fff;
}

.wowext-home-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.wowext-home-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  font-family: var(--wow-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wow-ink);
  text-decoration: none;
  background: var(--wow-surface);
  border: 1px solid var(--wow-border);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
  line-height: 1.3;
}

button.wowext-home-tool-btn {
  appearance: none;
}

.wowext-home-tool-btn:hover {
  border-color: #c0c4c8;
  background: #fafbfc;
  color: var(--wow-ink);
}

.wowext-home-tool-btn svg {
  flex-shrink: 0;
  color: #5f6670;
}

.wowext-home-empty {
  margin: 2rem 0 0;
  color: var(--wow-muted);
  font-size: 0.9375rem;
}

.wowext-footer {
  background: var(--wow-surface);
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-block-start: 1px solid var(--wow-border);
}

.wowext-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ── Card grid ─────────────────────────────────────────────────── */

.wowext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1100px) {
  .wowext-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Card (border, soft shadow, top illustration) ─────────────── */

.wowext-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--wow-surface);
  border: 1px solid var(--wow-border);
  border-radius: 10px;
  box-shadow: var(--wow-card-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wowext-feature-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #d2d4d7;
}

.wowext-feature-card--disabled {
  opacity: 0.88;
}

/* Media (top illustration band) */
.wowext-feature-card__media {
  position: relative;
  min-height: 152px;
  background: #ede8f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.wowext-feature-card--role_based_pricing .wowext-feature-card__media {
  background: linear-gradient(165deg, #fce7f0 0%, #ede8f7 50%, #e0e7ff 100%);
}

.wowext-feature-card--one_page_checkout .wowext-feature-card__media {
  background: linear-gradient(165deg, #e8f4ff 0%, #e0e7ff 45%, #ede9fe 100%);
}

/* Woo.com marketplace promos (Upgrade link only) */
.wowext-feature-card--marketplace .wowext-feature-card__media {
  background: linear-gradient(165deg, #e8f0ec 0%, #e4edf5 50%, #ede8f5 100%);
}

.wowext-feature-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  color: #1e1e1e;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  line-height: 1.2;
}

.wowext-feature-card__media-art {
  position: relative;
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wowext-feature-card__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.5;
  pointer-events: none;
}

.wowext-feature-card__blob--a {
  width: 120px;
  height: 120px;
  top: -30px;
  right: 10%;
  background: rgba(199, 125, 255, 0.35);
}

.wowext-feature-card__blob--b {
  width: 80px;
  height: 80px;
  bottom: 10px;
  left: 8%;
  background: rgba(100, 180, 255, 0.4);
}

.wowext-feature-card__blob--c {
  width: 50px;
  height: 50px;
  top: 40%;
  left: 20%;
  background: rgba(255, 180, 120, 0.45);
}

.wowext-feature-card--role_based_pricing .wowext-feature-card__blob--a {
  background: rgba(244, 114, 182, 0.4);
}
.wowext-feature-card--role_based_pricing .wowext-feature-card__blob--b {
  background: rgba(167, 139, 250, 0.35);
}

.wowext-feature-card--one_page_checkout .wowext-feature-card__blob--a {
  background: rgba(96, 165, 250, 0.4);
}
.wowext-feature-card--one_page_checkout .wowext-feature-card__blob--b {
  background: rgba(129, 140, 248, 0.4);
}

.wowext-feature-card__icon-wrap {
  position: relative;
  z-index: 1;
  color: #403e56;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  opacity: 0.95;
}

/* Body */
.wowext-feature-card__body {
  padding: 1.1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wowext-feature-card:has(.wowext-feature-card__footer) .wowext-feature-card__body {
  padding-bottom: 0.4rem;
}

.wowext-feature-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--wow-ink);
}

.wowext-feature-card__meta {
  line-height: 0;
}

.wowext-feature-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--wow-muted);
}

/* Footer: text link + Elementor-style outline CTA (right) */
.wowext-feature-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding: 0.65rem 1.1rem 1.1rem;
}

.wowext-feature-card__footer:not(:has(.wowext-feature-card__text-action)) {
  justify-content: flex-end;
}

.wowext-feature-card__footer-cta {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.wowext-feature-card__footer-cta:only-child {
  width: 100%;
}

.wowext-feature-card__footer--onboarding {
  justify-content: flex-end;
}

.wowext-feature-card__footer--onboarding .wowext-feature-card__footer-cta {
  margin-left: 0;
  width: auto;
}

.wowext-feature-card__text-action--right {
  margin-left: auto;
}

.wowext-feature-card__text-action {
  background: none;
  border: none;
  padding: 0.35rem 0;
  font-family: var(--wow-font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8a9099;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.wowext-feature-card__text-action:hover:not(:disabled) {
  color: #c00;
}

.wowext-feature-card__text-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Outline CTA: white / light + dark border (Elementor "Open" / "Add for free" style) */
.wowext-feature-card__action-outline {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.9rem;
  font-family: var(--wow-font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #1e1e1e;
  background: #fff;
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.wowext-feature-card__action-outline:hover {
  background: #f6f7f7;
  border-color: #000;
  color: #000;
}

.wowext-feature-card__action-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status pills */
.wowext-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

.wowext-badge--active {
  background: #e8f5e9;
  color: #1b5e20;
}

.wowext-badge--inactive {
  background: #fff8e1;
  color: #e65100;
}

.wowext-badge--not_installed {
  background: #f0f0f0;
  color: #616161;
}

.wowext-badge--marketplace {
  background: #ede5ff;
  color: #5b21b6;
  box-shadow: 0 1px 0 rgba(91, 33, 182, 0.08);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}
