/* ============================================================
   M3U → Xtream — Premium IPTV credential-extraction layer
   Location: assets/css/m3u-to-xtream.css

   Loaded LAST so it refines the shared tool.css + the page's small
   inline credential styles without edits. Scoped to `.mtx-shell`
   (in-page) and `.mtx-seo-wrap` (below-tool SEO blocks). Purely
   presentational — every ID/class the extractor JS uses (#m3uUrl,
   #extractBtn, #pasteBtn, #resultCard, #out*, .cred-copy-btn[data-copy],
   captcha) is intact.
   ============================================================ */

.mtx-shell {
  --mx-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --mx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   HERO
   ============================================================ */
.mtx-shell .tool-header { max-width: 760px; margin-left: auto; margin-right: auto; }
.mtx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.26);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
}
[data-theme="dark"] .mtx-eyebrow {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.40);
}
.mtx-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success, #10b981);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: mx-pulse 2.4s var(--mx-ease) infinite;
}
@keyframes mx-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.mtx-shell .tool-header-icon { box-shadow: 0 14px 30px -10px rgba(99, 102, 241, 0.5); }

/* What gets extracted — inline pills under the subtitle */
.mtx-extracts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.mtx-extracts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.20);
  font-size: 12px;
  font-weight: 650;
  color: var(--primary);
}
[data-theme="dark"] .mtx-extracts li {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.30);
  color: var(--primary-light, #a5b4fc);
}

/* Trust / compatibility badges */
.mtx-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.mtx-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.mtx-trust li span { font-size: 14px; line-height: 1; }
[data-theme="dark"] .mtx-trust li { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

/* ============================================================
   CARDS depth + input section
   ============================================================ */
.mtx-shell .tool-card {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -24px rgba(15, 23, 42, 0.16);
}
[data-theme="dark"] .mtx-shell .tool-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -24px rgba(0, 0, 0, 0.7);
}
.mtx-shell .tool-card-step {
  width: 34px;
  height: 34px;
  font-size: 15px;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.5);
}
.mtx-shell .tool-card-title { font-size: 17px; letter-spacing: -0.01em; }

/* The URL input — make the primary action effortless to find */
.mtx-shell #m3uUrl.form-input {
  border-width: 1.5px;
  border-radius: 12px;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.2s var(--mx-ease);
}
.mtx-shell #m3uUrl.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.mtx-shell #extractBtn.btn-primary {
  box-shadow: 0 12px 28px -10px rgba(99, 102, 241, 0.55);
}

/* ============================================================
   RESULT — credential cards (refine the inline base)
   ============================================================ */
.mtx-shell #resultCard.tool-card {
  border-color: rgba(16, 185, 129, 0.30);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px -24px rgba(16, 185, 129, 0.28);
}
[data-theme="dark"] .mtx-shell #resultCard.tool-card {
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 44px -24px rgba(0, 0, 0, 0.7);
}
.mtx-shell .cred-row {
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.mtx-shell .cred-row label {
  width: 130px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.mtx-shell .cred-input-wrap .form-input {
  border-radius: 9px;
  background: var(--bg-secondary);
}
.mtx-shell .cred-copy-btn {
  border-radius: 9px;
  background: var(--mx-grad);
  font-weight: 700;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.18s var(--mx-ease);
}
.mtx-shell .cred-copy-btn:hover {
  background: var(--mx-grad);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(99, 102, 241, 0.5);
}
.mtx-shell #testBtn.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  box-shadow: 0 12px 26px -10px rgba(16, 185, 129, 0.5);
}
@media (max-width: 600px) {
  .mtx-shell .cred-row { align-items: stretch; }
  .mtx-shell .cred-row label { width: auto; }
}

/* ============================================================
   FEATURES — SaaS feature cards
   ============================================================ */
.mtx-features {
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 0 4px;
}
.mtx-features__head { text-align: center; margin-bottom: 22px; }
.mtx-features__head h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}
.mtx-features__head p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}
.mtx-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.mtx-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 26px -20px rgba(15, 23, 42, 0.16);
  transition: border-color 0.18s ease, box-shadow 0.2s var(--mx-ease), transform 0.18s var(--mx-ease);
}
.mtx-feature:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 18px 38px -20px rgba(99, 102, 241, 0.35);
}
[data-theme="dark"] .mtx-feature {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 26px -20px rgba(0, 0, 0, 0.6);
}
.mtx-feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.10));
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12);
}
.mtx-feature__body { min-width: 0; }
.mtx-feature h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2px 0 5px;
}
.mtx-feature p { font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); margin: 0; }

/* ============================================================
   RELATED TOOLS — Tools-Hub quality
   ============================================================ */
.mtx-shell .related-tools { max-width: 1080px; margin-left: auto; margin-right: auto; }
.mtx-shell .related-tools h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.mtx-shell .related-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.mtx-shell .related-tool-card {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -16px rgba(15, 23, 42, 0.16);
  transition: border-color 0.18s ease, box-shadow 0.2s var(--mx-ease), transform 0.18s var(--mx-ease);
}
.mtx-shell .related-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -18px rgba(99, 102, 241, 0.35);
}
[data-theme="dark"] .mtx-shell .related-tool-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 20px -16px rgba(0, 0, 0, 0.6);
}
.mtx-shell .related-tool-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.10));
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12);
}
.mtx-shell .related-tool-name { font-size: 15px; font-weight: 700; color: var(--text); }
.mtx-shell .related-tool-desc { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.mtx-shell .related-tool-card::after {
  content: '→';
  position: absolute;
  top: 16px;
  right: 16px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.mtx-shell .related-tool-card:hover::after { opacity: 1; transform: translateX(0); }

/* ============================================================
   SEO CONTENT BLOCKS (.mtx-seo-wrap)
   ============================================================ */
.mtx-seo-wrap .seo-block__title { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.02em; }
.mtx-seo-wrap .seo-usecases__item {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -16px rgba(15, 23, 42, 0.14);
  transition: border-color 0.18s ease, box-shadow 0.2s var(--mx-ease), transform 0.18s var(--mx-ease);
}
.mtx-seo-wrap .seo-usecases__item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 16px 34px -18px rgba(99, 102, 241, 0.3);
}
[data-theme="dark"] .mtx-seo-wrap .seo-usecases__item {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 20px -16px rgba(0, 0, 0, 0.6);
}
.mtx-seo-wrap .seo-usecases__item h3 { font-weight: 700; letter-spacing: -0.01em; }
.mtx-seo-wrap .seo-faq__item { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.mtx-seo-wrap .seo-faq__item:hover { border-color: var(--primary); }
.mtx-seo-wrap .seo-faq__item summary { position: relative; padding-right: 2.75rem; transition: color 0.18s ease; }
.mtx-seo-wrap .seo-faq__item summary::after {
  content: '';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.22s var(--mx-ease), border-color 0.18s ease;
}
.mtx-seo-wrap .seo-faq__item[open] summary { color: var(--primary); }
.mtx-seo-wrap .seo-faq__item[open] summary::after { transform: translateY(-35%) rotate(-135deg); border-color: var(--primary); }
.mtx-seo-wrap .seo-faq__item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 12px; }
.mtx-seo-wrap .seo-related__card strong { font-size: 0.97rem; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .mtx-eyebrow__dot { animation: none !important; }
  .mtx-shell .cred-copy-btn,
  .mtx-shell .related-tool-card,
  .mtx-feature,
  .mtx-seo-wrap .seo-usecases__item { transition: none !important; }
}
