/* ============================================================
   SMLMM v3.1.9 — Premium Click Machine CSS
   ============================================================ */

/* ---------- ROOT TRIGGER BUTTON ---------- */
.smlmm-root{position:relative;z-index:100000;isolation:isolate}
.smlmm-root>a{
  font-weight:800;display:inline-flex;align-items:center;gap:7px;
  padding:8px 16px 8px 14px!important;border-radius:999px;
  background:linear-gradient(135deg,var(--smlmm-accent),#111827);
  color:#fff!important;box-shadow:0 6px 20px rgba(17,24,39,.22);
  border:1px solid rgba(255,255,255,.15);font-size:13.5px;line-height:1.1;
  transition:transform .18s ease,box-shadow .18s ease,background .2s ease;
  text-decoration:none!important;
}
.smlmm-root>a::before{content:'✦';font-size:10px;opacity:.8}
.smlmm-root>a::after{
  content:'Explore';display:inline-flex;align-items:center;justify-content:center;
  padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.2);
  font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.smlmm-root>a:hover,.smlmm-root>a:focus{
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(17,24,39,.28);
}

/* ---------- PANEL CONTAINER ---------- */
.smlmm-panel{
  display:none;position:absolute;left:0;top:calc(100% + 12px);
  z-index:100001;min-width:1060px;max-width:1200px;
  background:#fff;border:1px solid #e5e7eb;
  box-shadow:0 24px 60px rgba(0,0,0,.10),0 4px 12px rgba(0,0,0,.06);
  border-radius:20px;padding:22px;pointer-events:auto;
}
.smlmm-panel *{pointer-events:auto}
.smlmm-root:hover .smlmm-panel,
.smlmm-root:focus-within .smlmm-panel{
  display:block;
  animation:smlmm-reveal .2s cubic-bezier(.16,1,.3,1) both;
}
@keyframes smlmm-reveal{
  from{opacity:0;transform:translateY(-6px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.smlmm-open{display:block;position:static;min-width:auto;max-width:none;margin-top:0;animation:none}

/* ---------- TOP HEADER ---------- */
.smlmm-top{
  display:flex;justify-content:space-between;align-items:center;
  gap:20px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #f3f4f6;
}
.smlmm-top-left{display:flex;flex-direction:column;gap:4px}
.smlmm-kicker{
  font-size:10.5px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;
  color:var(--smlmm-accent);display:flex;align-items:center;gap:5px;
}
.smlmm-kicker::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--smlmm-accent)}
.smlmm-title{font-size:22px;line-height:1.1;font-weight:900;color:#111827;letter-spacing:-.3px}

/* Trending pills */
.smlmm-trending-strip{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;overflow:hidden;margin-top:4px}
.smlmm-trending-label{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:#9ca3af;white-space:nowrap}
.smlmm-trending-pills{display:flex;gap:5px;flex-wrap:nowrap;overflow:hidden}
.smlmm-trending-pill{
  display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;
  background:#f3f4f6;color:#374151;font-size:11px;font-weight:700;
  text-decoration:none;white-space:nowrap;transition:background .14s,color .14s;
}
.smlmm-trending-pill:hover{background:var(--smlmm-accent);color:#fff}

/* ---------- CTA ---------- */
.smlmm-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:11px 20px;border-radius:12px;background:#111827;color:#fff!important;
  text-decoration:none;font-weight:800;font-size:13px;white-space:nowrap;flex-shrink:0;
  transition:transform .15s,box-shadow .15s;
}
.smlmm-cta:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(17,24,39,.25)}
.smlmm-cta-secondary{background:var(--smlmm-accent)}
.smlmm-cta::after{content:' →'}

/* ---------- GRID ---------- */
.smlmm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.smlmm-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.smlmm-grid-wide{grid-template-columns:repeat(5,minmax(0,1fr))}

/* ---------- COLUMNS ---------- */
.smlmm-col{
  background:#fafafa;border:1px solid #f0f0f0;border-radius:14px;
  padding:13px 11px 10px;transition:border-color .15s,background .15s;
}
.smlmm-col:hover{background:#fff;border-color:#e0e0e0}
.smlmm-col-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.smlmm-col-title{
  font-size:13px;font-weight:900;color:#111827;letter-spacing:-.1px;
  display:flex;align-items:center;gap:5px;text-decoration:none;
}
.smlmm-col-title:hover{color:var(--smlmm-accent)}
.smlmm-col-icon{font-size:14px;line-height:1}
.smlmm-col-count{font-size:10px;font-weight:800;color:#9ca3af;background:#f3f4f6;padding:2px 6px;border-radius:999px}

/* ---------- LINKS ---------- */
.smlmm-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}
.smlmm-links li{margin:0}
.smlmm-links a{
  display:flex;align-items:center;justify-content:space-between;gap:6px;
  padding:6px 8px;border-radius:8px;text-decoration:none;color:#374151;
  background:transparent;font-size:12.5px;font-weight:600;min-height:34px;
  transition:background .11s,color .11s,transform .09s;
}
.smlmm-links a:hover{background:#f3f4f6;color:#111827;transform:translateX(2px)}
.smlmm-links a:hover .smlmm-link-arrow{opacity:1;transform:translateX(0)}
.smlmm-link-text{flex:1;line-height:1.3}
.smlmm-link-arrow{font-size:10px;color:var(--smlmm-accent);opacity:0;transform:translateX(-4px);transition:opacity .11s,transform .11s;flex-shrink:0}

/* ---------- BADGES ---------- */
.smlmm-badge{font-style:normal;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;padding:2px 5px;border-radius:999px;flex-shrink:0}
.smlmm-badge-hot{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
.smlmm-badge-new{background:#f0fdf4;color:#16a34a;border:1px solid #bbf7d0}
.smlmm-badge-popular{background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe}
.smlmm-badge-trending{background:#fefce8;color:#ca8a04;border:1px solid #fef08a}
.smlmm-badge-sale{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;border:none}
.smlmm-badge:not([class*="smlmm-badge-"]){background:#111827;color:#fff}

/* ---------- SPOTLIGHT ---------- */
.smlmm-spotlight{
  border:1.5px solid rgba(139,92,246,.15);border-radius:16px;padding:16px 15px;
  background:linear-gradient(160deg,#faf5ff 0%,#f0f9ff 60%,#fff 100%);
  display:flex;flex-direction:column;gap:10px;
}
.smlmm-spotlight-badge{
  display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;
  background:linear-gradient(135deg,var(--smlmm-accent),#6366f1);
  color:#fff;font-size:9.5px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;width:fit-content;
}
.smlmm-spotlight-badge::before{content:'★';font-size:9px}
.smlmm-spotlight h3{margin:0;font-size:18px;line-height:1.2;color:#111827;font-weight:900;letter-spacing:-.2px}
.smlmm-spotlight p{margin:0;color:#6b7280;line-height:1.6;font-size:12.5px}
.smlmm-spotlight-stat{
  display:flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.7);border:1px solid rgba(139,92,246,.1);
  border-radius:10px;padding:8px 12px;
}
.smlmm-spotlight-stat-num{font-size:18px;font-weight:900;color:var(--smlmm-accent);line-height:1}
.smlmm-spotlight-stat-label{font-size:11px;color:#6b7280;font-weight:600;line-height:1.3}

/* ---------- FEATURED LINKS ---------- */
.smlmm-featured-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.smlmm-featured-links a{
  display:flex;align-items:center;gap:6px;text-decoration:none;
  font-weight:700;font-size:12.5px;color:#374151;padding:4px 6px;border-radius:6px;
  transition:color .12s,background .12s;
}
.smlmm-featured-links a::before{content:'→';color:var(--smlmm-accent);font-size:11px}
.smlmm-featured-links a:hover{color:var(--smlmm-accent);background:rgba(139,92,246,.06)}

/* ---------- SHORTCODE ---------- */
.smlmm-shortcode-wrap{margin:24px 0}

/* ---------- FORCE OVERRIDE (theme compat) ---------- */
.smlmm-panel .smlmm-links,.smlmm-panel .smlmm-links li,.smlmm-panel .smlmm-links a{
  visibility:visible!important;opacity:1!important;float:none!important;
  position:static!important;left:auto!important;right:auto!important;
  top:auto!important;bottom:auto!important;
  width:auto!important;height:auto!important;max-height:none!important;
  overflow:visible!important;clip:auto!important;transform:none!important;
}
.smlmm-panel .smlmm-links a:hover{transform:translateX(2px)!important}
.smlmm-panel .smlmm-links{display:flex!important;flex-direction:column!important;gap:2px!important;margin:0!important;padding:0!important;list-style:none!important}
.smlmm-panel .smlmm-links li{display:block!important;margin:0!important;padding:0!important}
.smlmm-panel .smlmm-links a{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:6px!important;padding:6px 8px!important;border-radius:8px!important;
  text-decoration:none!important;color:#374151!important;background:transparent!important;
  white-space:normal!important;font-size:12.5px!important;font-weight:600!important;min-height:34px!important;
}
.smlmm-panel .smlmm-links a:hover{background:#f3f4f6!important;color:#111827!important}

/* ---------- CATEGORY ARCHIVE ---------- */
.smlmm-archive-wrap{max-width:1280px;margin:0 auto;padding:28px 16px 48px}
.smlmm-archive-head{margin-bottom:22px}
.smlmm-archive-kicker{display:inline-block;padding:6px 10px;border-radius:999px;background:#111827;color:#fff;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px}
.smlmm-archive-head h1{margin:0 0 8px;font-size:34px;line-height:1.05}
.smlmm-archive-desc{max-width:760px;color:#6b7280;line-height:1.7}
.smlmm-archive-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:14px 0 20px}
.smlmm-archive-count{font-weight:700;color:#111827}
.smlmm-category-grid{display:grid;gap:18px}
.smlmm-category-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.04);transition:transform .2s,box-shadow .2s}
.smlmm-category-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,.09)}
.smlmm-category-card-thumb{aspect-ratio:4/3;background:#f3f4f6;display:block}
.smlmm-category-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.smlmm-category-card-body{padding:16px 16px 18px}
.smlmm-category-meta{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--smlmm-accent);margin-bottom:8px}
.smlmm-category-card h2{margin:0 0 8px;font-size:20px;line-height:1.2}
.smlmm-category-card h2 a{text-decoration:none;color:#111827}
.smlmm-category-card p{margin:0;color:#6b7280;line-height:1.65}
.smlmm-category-card-cta{margin-top:14px;display:inline-flex;align-items:center;gap:8px;font-weight:800;text-decoration:none;color:var(--smlmm-accent)}
.smlmm-category-list{display:flex;flex-direction:column;gap:16px}
.smlmm-category-list .smlmm-category-card{flex-direction:row;align-items:stretch}
.smlmm-category-list .smlmm-category-card-thumb{width:280px;min-width:280px;aspect-ratio:auto}
.smlmm-category-list .smlmm-category-card-body{flex:1}
.smlmm-pagination{margin-top:26px}
.smlmm-pagination .nav-links{display:flex;gap:10px;flex-wrap:wrap}
.smlmm-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border-radius:12px;border:1px solid #d1d5db;text-decoration:none;color:#111827;background:#fff;transition:background .12s,color .12s}
.smlmm-pagination .page-numbers:hover{background:#f3f4f6}
.smlmm-pagination .page-numbers.current{background:#111827;color:#fff;border-color:#111827}
.smlmm-empty{padding:24px;border:1px dashed #d1d5db;border-radius:16px;background:#fff}
.smlmm-subcats{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.smlmm-subcats a{display:inline-flex;padding:7px 10px;border-radius:999px;background:#f3f4f6;color:#111827;text-decoration:none;font-size:13px;font-weight:700;transition:background .12s,color .12s}
.smlmm-subcats a:hover{background:var(--smlmm-accent);color:#fff}

/* ---------- ADMIN ---------- */
.smlmm-admin-wrap .smlmm-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 18px}
.smlmm-checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;max-width:900px}
.smlmm-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;max-width:1000px}
.smlmm-preview-card{background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:12px}
.smlmm-preview-card ul{margin:8px 0 0 18px}
.smlmm-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,180px));gap:12px;margin:12px 0 18px}
.smlmm-stat{background:#fff;border:1px solid #dcdcde;border-radius:14px;padding:16px;text-align:center}
.smlmm-stat strong{display:block;font-size:24px;line-height:1.1}
.smlmm-stat span{display:block;color:#6b7280;margin-top:6px}
.smlmm-pill{display:inline-block;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:700}
.smlmm-pill.good,.smlmm-pill.ok{background:#dcfce7;color:#166534}
.smlmm-pill.warn{background:#fef3c7;color:#92400e}

/* ---------- ACTIVE STATE ---------- */
.smlmm-root.current-menu-item>a,.smlmm-root.current-menu-ancestor>a{outline:2px solid rgba(139,92,246,.3);outline-offset:2px}

/* ---------- Z / POINTER SAFETY ---------- */
.smlmm-links li,.smlmm-links a,.smlmm-cta,.smlmm-featured-links a{position:relative;z-index:2;pointer-events:auto;cursor:pointer}
.smlmm-col,.smlmm-spotlight{position:relative;z-index:1}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1140px){.smlmm-panel{min-width:900px}}
@media (max-width:960px){
  .smlmm-panel{position:static;display:block;min-width:auto;max-width:none;margin-top:12px;animation:none;border-radius:14px}
  .smlmm-grid,.smlmm-grid-compact,.smlmm-grid-wide{grid-template-columns:1fr 1fr}
  .smlmm-root:hover .smlmm-panel,.smlmm-root:focus-within .smlmm-panel{display:block}
  .smlmm-stat-grid{grid-template-columns:1fr}
  .smlmm-trending-strip{display:none}
}
@media (max-width:600px){
  .smlmm-grid,.smlmm-grid-compact,.smlmm-grid-wide{grid-template-columns:1fr}
  .smlmm-category-list .smlmm-category-card{flex-direction:column}
  .smlmm-category-list .smlmm-category-card-thumb{width:100%;min-width:0;aspect-ratio:4/3}
}

/* ---------- DARK MODE ---------- */
@media (prefers-color-scheme:dark){
  .smlmm-panel{background:#1a1a2e;border-color:#2d2d44;box-shadow:0 24px 60px rgba(0,0,0,.4)}
  .smlmm-top{border-bottom-color:#2d2d44}
  .smlmm-title{color:#f9fafb}
  .smlmm-col{background:#16213e;border-color:#2d2d44}
  .smlmm-col:hover{background:#1f2b4a;border-color:#3d3d5c}
  .smlmm-col-title{color:#f9fafb}
  .smlmm-col-count{background:#2d2d44;color:#9ca3af}
  .smlmm-links a{color:#d1d5db}
  .smlmm-links a:hover{background:#2d2d44;color:#f9fafb}
  .smlmm-spotlight{background:linear-gradient(160deg,#1e1b4b 0%,#172554 60%,#1a1a2e 100%);border-color:rgba(139,92,246,.25)}
  .smlmm-spotlight h3{color:#f9fafb}
  .smlmm-spotlight-stat{background:rgba(255,255,255,.07);border-color:rgba(139,92,246,.15)}
  .smlmm-spotlight-stat-label{color:#9ca3af}
  .smlmm-trending-pill{background:#2d2d44;color:#d1d5db}
  .smlmm-featured-links a{color:#d1d5db}
  .smlmm-panel .smlmm-links a{color:#d1d5db!important}
  .smlmm-panel .smlmm-links a:hover{background:#2d2d44!important;color:#f9fafb!important}
}
