/* ════════════════════════════════════════
   SVG Converter — svg-converter.css
   ════════════════════════════════════════ */



/* ── File upload ── */
.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.file-upload-label:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}
.file-upload-label input[type="file"] { display: none; }

/* ── SVG Preview ── */
.preview-box {
  margin-top: 0.8rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.preview-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.svg-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  max-height: 160px;
  overflow: hidden;
}

.svg-preview svg {
  max-width: 100%;
  max-height: 150px;
}

/* ── Convert button ── */
.shorten-btn {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.shorten-btn:hover  { background: var(--accent2); transform: translateY(-2px); }
.shorten-btn:active { transform: translateY(0); }
.shorten-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Error ── */
.error-msg {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #c0392b;
  display: none;
}
.error-msg.show { display: block; }

/* ── Output section ── */
.output-section { display: none; }
.output-section.show { display: block; }

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.output-actions { display: flex; gap: 0.4rem; }

.icon-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent);
  transition: background 0.2s, transform 0.15s;
  line-height: 1;
}
.icon-btn:hover { background: var(--accent-lt); transform: translateY(-1px); }
.icon-btn.copied { color: #27ae60; border-color: #27ae60; }
 .seo-content {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
    color: #1a1a2e;
    line-height: 1.8;
  }
 
  .seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 12px;
    color: #0f172a;
    border-left: 4px solid #54c5f8;
    padding-left: 12px;
  }
 
  .seo-content p {
    margin-bottom: 14px;
    color: #374151;
    font-size: 0.97rem;
  }
 
  .output-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
  }
 
  .output-card {
    border-radius: 12px;
    padding: 22px;
  }
 
  .output-card.flutter { background: #e8f5fe; border: 2px solid #54c5f8; }
  .output-card.css     { background: #fdf4ff; border: 2px solid #d946ef; }
 
  .output-card .badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
  }
 
  .output-card.flutter .badge { background: #0288d1; }
  .output-card.css     .badge { background: #c026d3; }
 
  .output-card strong { display: block; font-size: 1rem; margin-bottom: 8px; color: #0f172a; }
  .output-card ul { padding-left: 18px; font-size: 0.88rem; color: #4b5563; margin: 0; }
  .output-card ul li { margin-bottom: 5px; }
 
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
 
  .feature-card {
    background: #e8f5fe;
    border: 1px solid #b3e5fc;
    border-radius: 10px;
    padding: 16px;
  }
 
  .feature-card .icon { font-size: 1.4rem; }
  .feature-card strong { display: block; margin: 6px 0 4px; font-size: 0.95rem; color: #01579b; }
  .feature-card span { font-size: 0.85rem; color: #4b5563; }
 
  .code-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
  }
 
  .code-box {
    background: #1e1e2e;
    border-radius: 10px;
    overflow: hidden;
  }
 
  .code-box .c-header {
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
 
  .code-box.svg-in    .c-header { background: #f38ba8; color: #1e1e2e; }
  .code-box.flutter-out .c-header { background: #54c5f8; color: #1e1e2e; }
  .code-box.css-out   .c-header { background: #d946ef; color: white; }
 
  .code-box pre {
    padding: 14px;
    margin: 0;
    font-family: monospace;
    font-size: 0.78rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
  }
 
  .code-box.svg-in      pre { color: #f38ba8; }
  .code-box.flutter-out pre { color: #89dceb; }
  .code-box.css-out     pre { color: #cba6f7; }
 
  .steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: steps;
  }
 
  .steps-list li {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #e2e8f0;
  }
 
  .steps-list li::before {
    content: counter(steps);
    background: #0288d1;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
 
  .use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
  }
 
  .use-case-tag {
    background: #e8f5fe;
    border: 1px solid #81d4fa;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #01579b;
  }
 
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
  }
 
  .compare-table th {
    background: #0288d1;
    color: white;
    padding: 12px 16px;
    text-align: left;
  }
 
  .compare-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
  }
 
  .compare-table tr:nth-child(even) td { background: #e8f5fe; }
 
  .workflow-box {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 24px 0;
    flex-wrap: wrap;
  }
 
  .workflow-step {
    background: #e8f5fe;
    border: 2px solid #81d4fa;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    flex: 1;
    min-width: 120px;
  }
 
  .workflow-step .ws-icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }
  .workflow-step strong { display: block; font-size: 0.85rem; color: #01579b; }
  .workflow-step span { font-size: 0.78rem; color: #6b7280; }
  .workflow-arrow { font-size: 1.4rem; color: #0288d1; padding: 0 4px; flex-shrink: 0; }
 
  .faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
  }
 
  .faq-q {
    background: #f9fafb;
    padding: 14px 18px;
    font-weight: 600;
    color: #01579b;
    font-size: 0.95rem;
  }
 
  .faq-a {
    padding: 12px 18px;
    color: #4b5563;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
  }
 
  .info-box {
    background: #e8f5fe;
    border: 1px solid #b3e5fc;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.92rem;
    color: #01579b;
  }
 
  .code-inline {
    background: #1e1e2e;
    color: #a6e3a1;
    font-family: monospace;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
  }
 
  @media (max-width: 600px) {
    .output-cards { grid-template-columns: 1fr; }
    .code-compare  { grid-template-columns: 1fr; }
  }

/* ── Code block ── */
.code-block {
  background: #1e1a16;
  color: #f0e8dc;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
}

/* Syntax highlight colors */
.code-block .kw  { color: #e07b3f; }   /* keywords */
.code-block .str { color: #a8d8a8; }   /* strings */
.code-block .num { color: #87ceeb; }   /* numbers */
.code-block .cm  { color: #888; font-style: italic; } /* comments */

/* ── Info box ── */
.info-box {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--accent-lt);
  border: 1px solid rgba(192,98,42,0.2);
  border-radius: 10px;
}

.info-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
}

/* ── Scrollbar styling ── */
.code-block::-webkit-scrollbar { width: 6px; height: 6px; }
.code-block::-webkit-scrollbar-track { background: #2a2420; border-radius: 3px; }
.code-block::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }




/* ── Tool Banner ── */
.tool-banner-wrap {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.tool-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, #0f1a2e 55%, #1a2a40);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}
.tool-banner-text {
  padding: 2rem 0 2rem 2rem;
  flex: 1;
}
.tool-banner-text .banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(192,98,42,0.2);
  border: 1px solid rgba(192,98,42,0.35);
  color: var(--accent2);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.tool-banner-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.tool-banner-text p {
  font-size: 0.85rem;
  color: #8aabb8;
  line-height: 1.65;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.tool-banner-img {
  width: 200px;
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mock code preview inside banner */
.mock-code-box {
  width: 170px;
  background: #141320;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.mock-code-bar {
  background: #1e1e2e;
  padding: 0.45rem 0.7rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mock-dot.r { background: #ff5f57; }
.mock-dot.y { background: #febc2e; }
.mock-dot.g { background: #28c840; }
.mock-code-lines { padding: 0.8rem; display: flex; flex-direction: column; gap: 6px; }
.mock-line {
  height: 7px;
  border-radius: 4px;
  width: 90%;
}
.mock-line.kw-line  { background: linear-gradient(90deg, #e07b3f, #c05820); width: 75%; }
.mock-line.str-line { background: linear-gradient(90deg, #a8d8a8, #6ab06a); width: 90%; }
.mock-line.num-line { background: linear-gradient(90deg, #87ceeb, #4a9abb); width: 60%; }
.mock-line.short-line { width: 45%; }

/* ── Info Cards Wrapper ── */
.info-cards-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tool-banner-img { display: none; }
  .tool-banner-text { padding: 1.5rem; }
  .tool-banner-text h3 { font-size: 1.15rem; }
}
