/* ============================================================
   Link Converter — Premium universal IPTV format-conversion layer
   Location: assets/css/link-converter.css

   Loaded LAST so it refines the shared tool.css + the page's small
   inline .format-card styles without edits. Scoped to `.lc-shell`
   (in-page) and `.lc-seo-wrap` (below-tool SEO blocks). Purely
   presentational — every ID/class the converter JS uses (#sourceUrl,
   #convertBtn, #pasteBtn, #resultCard, #formatsGrid, .format-card,
   .format-url-row, captcha) is intact.
   ============================================================ */

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

/* ============================================================
   HERO
   ============================================================ */
.lc-shell .tool-header { max-width: 780px; margin-left: auto; margin-right: auto; }
.lc-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"] .lc-eyebrow {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.40);
}
.lc-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: lc-pulse 2.4s var(--lc-ease) infinite;
}
@keyframes lc-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); }
}
.lc-shell .tool-header-icon { box-shadow: 0 14px 30px -10px rgba(99, 102, 241, 0.5); }

/* Player-compatibility chips in the hero */
.lc-hero-players {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.lc-hero-players li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.lc-hero-players li span { font-size: 13px; line-height: 1; }
[data-theme="dark"] .lc-hero-players li { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

/* ============================================================
   CARDS depth + input + the Input → Conversion → Output flow
   ============================================================ */
.lc-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"] .lc-shell .tool-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -24px rgba(0, 0, 0, 0.7);
}
.lc-shell .tool-card-step {
  width: 34px;
  height: 34px;
  font-size: 15px;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.5);
}
.lc-shell .tool-card-title { font-size: 17px; letter-spacing: -0.01em; }
.lc-shell #sourceUrl.form-input {
  border-radius: 11px;
  border-width: 1.5px;
  transition: border-color 0.18s ease, box-shadow 0.2s var(--lc-ease);
}
.lc-shell #sourceUrl.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.lc-shell #convertBtn.btn-primary { box-shadow: 0 12px 28px -10px rgba(99, 102, 241, 0.55); }

/* Input → Conversion → Output mini-flow */
.lc-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin: 0 0 16px;
}
.lc-flow span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.lc-flow svg { width: 15px; height: 15px; color: var(--text-muted); }

/* ============================================================
   RESULT — format cards laid out in a responsive grid
   ============================================================ */
.lc-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"] .lc-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);
}
.lc-shell #formatsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.lc-shell .format-card {
  margin-bottom: 0;
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color 0.18s ease, box-shadow 0.2s var(--lc-ease), transform 0.16s var(--lc-ease);
}
.lc-shell .format-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(99, 102, 241, 0.4);
}
.lc-shell .format-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 18px;
  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);
}
.lc-shell .format-url-row button {
  border-radius: 9px;
  background: var(--lc-grad);
  font-weight: 700;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.lc-shell .format-url-row button:hover { background: var(--lc-grad); filter: brightness(1.06); transform: translateY(-1px); }

/* ============================================================
   SUPPORTED PLAYERS — trust section
   ============================================================ */
.lc-players {
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 0 4px;
}
.lc-players__head { text-align: center; margin-bottom: 20px; }
.lc-players__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;
}
.lc-players__head p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}
.lc-players__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.lc-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.2s var(--lc-ease), transform 0.18s var(--lc-ease);
}
.lc-player:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 26px -16px rgba(99, 102, 241, 0.4);
}
[data-theme="dark"] .lc-player { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.lc-player__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 20px;
  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);
}
.lc-player__name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.25; }

/* ============================================================
   FEATURES — SaaS feature cards
   ============================================================ */
.lc-features {
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 0 4px;
}
.lc-features__head { text-align: center; margin-bottom: 22px; }
.lc-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;
}
.lc-features__head p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}
.lc-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.lc-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(--lc-ease), transform 0.18s var(--lc-ease);
}
.lc-feature:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 18px 38px -20px rgba(99, 102, 241, 0.35);
}
[data-theme="dark"] .lc-feature {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 26px -20px rgba(0, 0, 0, 0.6);
}
.lc-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);
}
.lc-feature__body { min-width: 0; }
.lc-feature h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2px 0 5px;
}
.lc-feature p { font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); margin: 0; }

/* ============================================================
   RELATED TOOLS — Tools-Hub quality
   ============================================================ */
.lc-shell .related-tools { max-width: 1080px; margin-left: auto; margin-right: auto; }
.lc-shell .related-tools h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.lc-shell .related-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.lc-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(--lc-ease), transform 0.18s var(--lc-ease);
}
.lc-shell .related-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -18px rgba(99, 102, 241, 0.35);
}
[data-theme="dark"] .lc-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);
}
.lc-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);
}
.lc-shell .related-tool-name { font-size: 15px; font-weight: 700; color: var(--text); }
.lc-shell .related-tool-desc { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.lc-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;
}
.lc-shell .related-tool-card:hover::after { opacity: 1; transform: translateX(0); }

/* ============================================================
   SEO CONTENT BLOCKS (.lc-seo-wrap)
   ============================================================ */
.lc-seo-wrap .seo-block__title { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.02em; }
.lc-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(--lc-ease), transform 0.18s var(--lc-ease);
}
.lc-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"] .lc-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);
}
.lc-seo-wrap .seo-usecases__item h3 { font-weight: 700; letter-spacing: -0.01em; }
.lc-seo-wrap .seo-faq__item { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.lc-seo-wrap .seo-faq__item:hover { border-color: var(--primary); }
.lc-seo-wrap .seo-faq__item summary { position: relative; padding-right: 2.75rem; transition: color 0.18s ease; }
.lc-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(--lc-ease), border-color 0.18s ease;
}
.lc-seo-wrap .seo-faq__item[open] summary { color: var(--primary); }
.lc-seo-wrap .seo-faq__item[open] summary::after { transform: translateY(-35%) rotate(-135deg); border-color: var(--primary); }
.lc-seo-wrap .seo-faq__item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 12px; }
.lc-seo-wrap .seo-related__card strong { font-size: 0.97rem; }

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