/* hlg.css – Generator Linków HTML */

.hlg-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 48px;
  --ac:   #2563eb;
  --ach:  #1d4ed8;
  --acl:  #eff6ff;
  --acm:  #bfdbfe;
  --tx:   #0f172a;
  --tx2:  #475569;
  --tx3:  #94a3b8;
  --bd:   #e2e8f0;
  --bd2:  #cbd5e1;
  --bg:   #f8fafc;
  --white:#ffffff;
  --gr:   #16a34a;
  --grbg: #f0fdf4;
  --shadow: 0 1px 3px rgba(15,23,42,.07), 0 4px 16px rgba(15,23,42,.06);
}

/* Tabs */
.hlg-tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--bd2);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 24px;
}
.hlg-tab {
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--tx2);
  transition: background .15s, color .15s;
  font-family: inherit;
  border-right: 1px solid var(--bd);
}
.hlg-tab:last-child { border-right: none; }
.hlg-tab:hover:not(.hlg-active) { background: var(--bg); }
.hlg-tab.hlg-active { background: var(--acl); color: var(--ac); }

/* Card */
.hlg-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.hlg-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tx3);
  margin-bottom: 16px;
}

/* Fields */
.hlg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
@media (max-width: 520px) { .hlg-row { grid-template-columns: 1fr; } }

.hlg-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.hlg-field:last-child { margin-bottom: 0; }

.hlg-field label {
  font-size: 13px;
  color: var(--tx2);
  font-weight: 500;
}

.hlg-field input,
.hlg-field textarea {
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--bd2);
  border-radius: 8px;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--tx);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  box-sizing: border-box;
}
.hlg-field textarea {
  height: auto;
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
}
.hlg-field input:focus,
.hlg-field textarea:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: var(--white);
}

/* Checkboxes */
.hlg-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tx2);
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}
.hlg-opt input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--ac);
  cursor: pointer;
  flex-shrink: 0;
}

/* Preview */
.hlg-preview {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  min-height: 60px;
}
.hlg-preview-label {
  font-size: 11.5px;
  color: var(--tx3);
  margin-bottom: 8px;
}
.hlg-preview a {
  font-size: 16px !important;
  color: var(--ac) !important;
  text-decoration: underline !important;
}
.hlg-preview-empty {
  font-size: 13px;
  color: var(--tx3);
  font-style: italic;
}

/* Code output */
.hlg-code-wrap {
  position: relative;
  background: #1e293b;
  border-radius: 10px;
  padding: 14px 18px;
  padding-right: 96px;
}
.hlg-code-wrap pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.7;
  margin: 0;
}
.hlg-copy {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  color: #e2e8f0;
  font-family: inherit;
  font-weight: 500;
  transition: background .15s;
}
.hlg-copy:hover { background: rgba(255,255,255,.15); }
.hlg-copy.hlg-copied { color: #86efac; border-color: rgba(134,239,172,.4); }

.hlg-preview-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hlg-preview-sep { color: var(--tx3); font-size: 18px; line-height: 1; }
