/* MW Toolbox - scoped styles for CMS page id=56
   Keep it namespaced to avoid theme conflicts.
   Cards are DIVs (not <a>) because PrestaShop HTMLPurifier can break anchors
   that wrap block elements.
*/

.mwtoolbox {
  --mw-accent: #2596be;
  --mw-accent-2: #009acc;
  --mw-text: #1b1f23;
  --mw-muted: #3a424a;
  --mw-border: rgba(0,0,0,.08);
  --mw-shadow: 0 10px 28px rgba(0,0,0,.06);
  --mw-shadow-strong: 0 18px 48px rgba(0,0,0,.10);
  --mw-radius: 22px;
  --mw-radius-sm: 16px;

  color: var(--mw-text);
  margin: 0 auto;
  max-width: 1200px;
}

.mwtoolbox * { box-sizing: border-box; }

/* Outer shell */
.mwtoolbox__shell {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 35%, #ffffff 100%);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--mw-radius);
  box-shadow: var(--mw-shadow);
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.mwtoolbox__shell:before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(1200px 420px at 20% 0%, rgba(37,150,190,.16), transparent 60%),
    radial-gradient(900px 360px at 90% 20%, rgba(0,154,204,.10), transparent 60%);
  opacity: .95;
}

.mwtoolbox__shell > * { position: relative; }

/* Header */
.mwtoolbox__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: var(--mw-radius-sm);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.06);
}

.mwtoolbox__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mwtoolbox__brand img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 14px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.mwtoolbox__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -.3px;
}

.mwtoolbox__subtitle {
  margin: 6px 0 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mw-muted);
  opacity: .95;
}

.mwtoolbox__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mwtoolbox__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(37,150,190,.25);
  color: var(--mw-accent);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.mwtoolbox__hint:hover {
  border-color: rgba(37,150,190,.45);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* Search */
.mwtoolbox__search-slot,
.mwtoolbox__search {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0,0,0,.10);
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 12px;
  min-width: 260px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--mw-text);
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.mwtoolbox__search-slot {
  display: inline-flex;
  align-items: center;
  color: rgba(58,66,74,.78);
}

.mwtoolbox__search::placeholder {
  color: rgba(58,66,74,.75);
}

.mwtoolbox__search:focus {
  outline: none;
  border-color: rgba(37,150,190,.45);
  box-shadow: 0 0 0 3px rgba(37,150,190,.18), 0 8px 20px rgba(0,0,0,.05);
}

/* Grid */
.mwtoolbox__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .mwtoolbox__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .mwtoolbox__search-slot,
  .mwtoolbox__search { min-width: 100%; width: 100%; }
}
/* Card */
.mwtoolbox-card {
  background: rgba(255,255,255,.98);
  border: 1px solid var(--mw-border);
  border-radius: 18px;
  box-shadow: var(--mw-shadow);
  padding: 16px;
  position: relative;
  overflow: hidden;
  min-height: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mwtoolbox-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,150,190,.20), var(--mw-shadow-strong);
  border-color: rgba(37,150,190,.40);
}

.mwtoolbox-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37,150,190,.35);
  box-shadow: var(--mw-shadow-strong);
}

.mwtoolbox-card:active { transform: translateY(0); }

/* subtle WODARO watermark per card */
.mwtoolbox-card:after {
  content: none;
}

/* Force-hide any embedded logos (toolbox list should be logo-free) */
.mwtoolbox__brand img,
.mwtoolbox-card__wodaro,
.mwtoolbox__mini img {
  display: none !important;
}


.mwtoolbox-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mwtoolbox-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(37,150,190,.12);
  border: 1px solid rgba(37,150,190,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.mwtoolbox-card__emoji {
  font-size: 22px;
  line-height: 1;
}

.mwtoolbox-card__wodaro {
  height: 20px;
  width: auto;
  display: block;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  opacity: .95;
}

.mwtoolbox-card__title {
  margin: 2px 0 0 0;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
}

.mwtoolbox-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mw-muted);
  opacity: .95;
}


.mwtoolbox-card__note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mw-muted);
  opacity: .9;
  margin-top: 6px;
}
.mwtoolbox-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mwtoolbox-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mwtoolbox-card__tag {
  font-size: 11px;
  font-weight: 900;
  color: #0b2a35;
  background: rgba(37,150,190,.10);
  border: 1px solid rgba(37,150,190,.18);
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.mwtoolbox-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 950;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mw-accent) 0%, var(--mw-accent-2) 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 26px rgba(37,150,190,.22);
}

.mwtoolbox-card__btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(37,150,190,.26);
}

.mwtoolbox-card__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,150,190,.22), 0 14px 30px rgba(37,150,190,.26);
}

/* Empty state */
.mwtoolbox__empty {
  display: none;
  grid-column: 1 / -1;
  background: rgba(255,255,255,.92);
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 14px;
  color: var(--mw-muted);
  font-size: 13px;
  line-height: 1.55;
}

.mwtoolbox--empty .mwtoolbox__empty { display: block; }

/* Extra section */
.mwtoolbox__section {
  max-width: 1200px;
  margin: 14px auto 0 auto;
  background: #ffffff;
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  box-shadow: var(--mw-shadow);
  padding: 16px;
}

.mwtoolbox__section h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.mwtoolbox__section p {
  margin: 10px 0 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mw-muted);
}

.mwtoolbox__mini {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.mwtoolbox__mini img {
  height: 24px;
  width: auto;
  display: block;
  border-radius: 10px;
  opacity: .95;
}

.mwtoolbox__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.mwtoolbox__chip {
  font-size: 12px;
  font-weight: 900;
  color: #0b2a35;
  background: rgba(37,150,190,.10);
  border: 1px solid rgba(37,150,190,.18);
  padding: 7px 10px;
  border-radius: 999px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .mwtoolbox-card { transition: none; }
  .mwtoolbox-card:hover { transform: none; }
}

/* Small screens */
@media (max-width: 480px) {
  .mwtoolbox__shell { padding: 14px; }
  .mwtoolbox__title { font-size: 20px; }
  .mwtoolbox__brand img { height: 40px; }
}
