/* Converter page styles — Ultra-Sleek Dark Glassmorphism */

.converter-wrap {
  text-align: center;
  padding: 1rem 0 2rem;
  max-width: 820px;
  margin: 0 auto;
}

/* Glowing Eyebrow Badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  background: var(--panel-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ff9d5c;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: fadeInDown 0.6s ease both;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6a00;
  box-shadow: 0 0 10px #ff6a00, 0 0 18px #ff6a00;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Striking H1 */
.converter-wrap h1 {
  margin: 0 auto 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 0.7s ease both 0.1s;
}

html[data-theme="light"] .converter-wrap h1 {
  background: linear-gradient(135deg, #0f172a 40%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  margin: 0 auto 2.25rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
  animation: fadeInDown 0.7s ease both 0.18s;
}

.sub strong {
  color: var(--ink);
  font-weight: 600;
}

/* Glassmorphism Converter Card */
.converter-card {
  position: relative;
  text-align: left;
  background: var(--panel);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 22px;
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--line-strong);
  box-shadow: 
    0 30px 80px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  animation: cardRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both 0.22s;
}

.converter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.85), rgba(255, 42, 84, 0.85), rgba(153, 0, 239, 0.7), transparent);
}

.converter-card:focus-within {
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 
    0 35px 90px -15px rgba(0, 0, 0, 0.8),
    0 0 35px -5px rgba(255, 106, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Glass URL Input */
.url-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input);
  backdrop-filter: blur(16px);
  color: var(--input-ink);
  font: inherit;
  font-size: 1.05rem;
  padding: 1.05rem 1.25rem;
  margin-bottom: 1.25rem;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.url-input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.url-input:hover {
  border-color: var(--line-strong);
}

.url-input:focus {
  border-color: var(--accent);
  box-shadow: 
    0 0 0 4px var(--accent-soft),
    0 0 24px var(--accent-glow),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
  background: var(--panel-solid);
}

/* Controls Grid */
.controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.95rem;
  align-items: end;
}

.control {
  min-width: 0;
}

/* Styled Glass Selects */
.select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%23ff7e40' d='M7 9L0.5 1.5h13z'/%3E%3C/svg%3E")
    no-repeat right 1rem center;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 2.4rem 0.95rem 1.1rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.select:hover {
  border-color: var(--line-strong);
  background-color: var(--panel);
}

.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Radiant Convert & Download Buttons */
.convert-btn,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.85rem;
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
  box-shadow: 0 10px 28px -4px rgba(255, 106, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.convert-btn svg {
  transition: transform 0.35s ease;
}

.convert-btn:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(255, 42, 84, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.convert-btn:hover svg {
  transform: rotate(90deg);
}

.convert-btn:active {
  transform: translateY(0) scale(0.98);
}

.convert-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.download-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 28px -4px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  margin-top: 0.5rem;
  animation: pulseGreen 2.5s infinite;
}

.download-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(16, 185, 129, 0.6);
}

@keyframes pulseGreen {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.94;
  }
}

/* Result Glass Card */
.result {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.25rem;
  text-align: left;
  background: var(--panel);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  animation: cardRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result h2,
.result .video-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--ink);
}

.channel {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.thumb {
  width: 190px;
  height: 108px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
  margin-bottom: 0.55rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

#progressBar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff6a00, #ff2a54, #9900ef);
  background-size: 200% 100%;
  animation: barPulse 2s ease-in-out infinite;
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.6);
}

@keyframes barPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
  100% { background-position: -100% 0%; }
}

#statusText {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.error {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1.15rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: var(--danger);
  font-weight: 600;
  text-align: left;
  backdrop-filter: blur(12px);
  animation: cardRise 0.35s ease both;
}

/* Byline */
.byline {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0.25rem 0 1.5rem;
  text-align: center;
}

/* Glass SEO & Content Blocks */
.seo-block,
.how,
.faq-home,
.page-content {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.seo-block h2,
.how h2,
.faq-home h2,
.page-content h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.seo-block p,
.how li,
.faq-home p,
.page-content p,
.page-content li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.how ol {
  margin: 0;
  padding-left: 1.3rem;
}

.how li + li {
  margin-top: 0.65rem;
}

/* FAQ Details Glass */
.faq-home details,
.page-content details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  transition: all 0.2s ease;
}

.faq-home details[open],
.page-content details[open] {
  padding-bottom: 1.35rem;
}

.faq-home h3 {
  margin: 1.25rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-home summary,
.page-content summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.18s ease;
}

.faq-home summary:hover,
.page-content summary:hover {
  color: var(--accent);
}

.faq-home summary::-webkit-details-marker,
.page-content summary::-webkit-details-marker {
  display: none;
}

.faq-home summary::after,
.page-content summary::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq-home details[open] summary::after,
.page-content details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.page-content {
  border-top: 0;
  padding-top: 0.25rem;
}

.page-content h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
}

.page-content h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--ink);
}

.seo-block img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 16px;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Glass Table of Contents */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.35rem;
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.toc strong {
  color: var(--ink);
  font-weight: 750;
  margin-right: 0.4rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  transition: all 0.18s ease;
}

.toc a:hover {
  color: #fff;
  background: var(--accent-soft);
}

/* Glass Table */
.seo-block table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.seo-block th,
.seo-block td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.seo-block tr:last-child td {
  border-bottom: 0;
}

.seo-block th {
  background: var(--panel-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.seo-block tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Quick Answer Callout */
.quick-answer {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 1.15rem 1.45rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.quick-answer strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 750;
}

/* Myth Cards */
.myth-card {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.myth-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.myth-card h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--ink);
}

.myth-card p {
  margin: 0.45rem 0 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.badge-myth {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  margin-right: 0.5rem;
  text-transform: uppercase;
}

.badge-fact {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-right: 0.5rem;
  text-transform: uppercase;
}

/* Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 720px) {
  .converter-card {
    padding: 1.35rem 1.15rem 1.5rem;
    border-radius: 18px;
  }

  .controls {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .convert-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
  }

  .result {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
