/* ================================================================
   NovaFox Labs — XML Sitemap Generator Styles
================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

/* ── Grid background ─────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Reveal animation ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }

/* ── Navbar ──────────────────────────────────────────────────── */
.nav-scrolled {
  background: rgba(10,10,15,0.97) !important;
  box-shadow: 0 1px 32px rgba(0,0,0,0.55);
}
.nav-link {
  position: relative; opacity: 0.6; transition: opacity 0.25s;
  text-decoration: none; color: #e4e4e7;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: #00ffaa; transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

/* ── Hamburger ───────────────────────────────────────────────── */
.ham-line {
  display: block; width: 22px; height: 2px; background: #e4e4e7;
  transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center;
}
#nav-toggle[aria-expanded="true"] .ham-line:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
#nav-toggle[aria-expanded="true"] .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle[aria-expanded="true"] .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
#mobile-menu.open { max-height: 520px; }
#navbar .nav-desktop  { display: none; }
#navbar .nav-hamburger{ display: flex; }
@media (min-width: 768px) {
  #navbar .nav-desktop   { display: flex !important; }
  #navbar .nav-hamburger { display: none !important; }
}

/* ── Panel cards ─────────────────────────────────────────────── */
.panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 32px;
}
.panel-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #e4e4e7;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title .panel-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Labels & inputs ─────────────────────────────────────────── */
.field-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #71717a;
  display: block;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.field-input, .field-textarea, .field-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #e4e4e7;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.field-textarea {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
  min-height: 200px;
}
.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: rgba(0,255,170,0.45);
  box-shadow: 0 0 0 3px rgba(0,255,170,0.1);
}
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2371717a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.field-select option { background: #18181b; color: #e4e4e7; }

/* ── Checkbox ────────────────────────────────────────────────── */
.check-wrap {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: #a1a1aa;
  user-select: none;
}
.check-wrap input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: #00ffaa; cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: 11px; border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none; flex-shrink: 0;
}
.btn:hover { opacity: 0.88; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #00ffaa; color: #0a0a0f; }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(0,255,170,0.3); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #a1a1aa;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 9px; }

/* ── Output XML ──────────────────────────────────────────────── */
.output-xml {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre;
  overflow: auto;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  color: #a1a1aa;
  min-height: 160px;
  max-height: 500px;
}
.xml-tag   { color: #00aaff; }
.xml-attr  { color: #a78bfa; }
.xml-value { color: #00ffaa; }
.xml-decl  { color: #71717a; }

/* ── Invalid URLs list ───────────────────────────────────────── */
.invalid-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.invalid-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #f87171;
  background: rgba(248,113,113,0.06);
  border: 1px solid rgba(248,113,113,0.18);
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-all;
}
.invalid-icon { flex-shrink: 0; margin-top: 1px; }

/* ── Status badge ────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.status-ok    { background: rgba(0,255,170,0.08); color: #00ffaa; border: 1px solid rgba(0,255,170,0.25); }
.status-warn  { background: rgba(251,191,36,0.08); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.status-empty { background: rgba(255,255,255,0.04); color: #52525b; border: 1px solid rgba(255,255,255,0.08); }

/* ── Divider ─────────────────────────────────────────────────── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,170,0.18), transparent);
}

/* ── Toast ───────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(10,10,15,0.95); border: 1px solid rgba(0,255,170,0.3);
  color: #00ffaa; font-family: 'Space Mono', monospace; font-size: 12px;
  font-weight: 700; padding: 10px 20px; border-radius: 999px;
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
  backdrop-filter: blur(12px); z-index: 200; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Scroll-top ──────────────────────────────────────────────── */
#scroll-top {
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(8px);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ── Options grid ────────────────────────────────────────────── */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .options-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .options-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Counter badges ──────────────────────────────────────────── */
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 999px;
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  padding: 0 6px;
}
.count-valid   { background: rgba(0,255,170,0.12); color: #00ffaa; border: 1px solid rgba(0,255,170,0.25); }
.count-invalid { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

/* ── Copy button animation ───────────────────────────────────── */
.copied-check { animation: fadeIn 0.2s ease; }
