/* ============================================================================
   N.O GROUP — FILE COMPRESSOR TOOL STYLES (v2)
   Thick black & white. Compress + Extract.
   ========================================================================== */

.comp {
  --comp-line: #000;
  background: #fff;
  border: 3px solid #000;
  border-radius: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: 8px 8px 0 #000;
  position: relative;
  overflow: hidden;
}
.comp::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #000;
  pointer-events: none;
}

/* badges */
.comp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.comp-badge {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: 0;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 700;
}
.comp-badge.is-private { background: #000; color: #fff; }
.comp-badge strong { color: #fff; font-weight: 700; }

/* tabs */
.comp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.comp-tab {
  font: inherit;
  text-align: center;
  cursor: pointer;
  border: 3px solid #000;
  background: #fff;
  color: #000;
  border-radius: 0;
  padding: 1rem 1.1rem;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 4px 4px 0 #000;
  transition: box-shadow 0.15s, transform 0.1s, background 0.2s, color 0.2s;
}
.comp-tab:hover { box-shadow: 6px 6px 0 #000; transform: translate(1px, 1px); }
.comp-tab.is-active {
  background: #000;
  color: #fff;
  box-shadow: 6px 6px 0 #000;
  transform: translate(2px, 2px);
}

/* panels */
.comp-panel-compress { display: block; }
.comp-panel-extract { display: none; }

/* dropzone */
.comp-drop {
  border: 4px dashed #000;
  border-radius: 0;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  box-shadow: 6px 6px 0 #000;
}
.comp-drop:hover { border-color: #000; background: #fafafa; box-shadow: 8px 8px 0 #000; }
.comp-drop.is-dragging {
  border-color: #000;
  background: #f0f0f0;
  transform: scale(1.01);
  box-shadow: 8px 8px 0 #000;
}
.comp-drop-icon {
  font-size: 2.5rem;
  color: #000;
  font-weight: 800;
  display: block;
  margin-bottom: 0.75rem;
}
.comp-drop-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.35rem; color: #000; text-transform: uppercase; letter-spacing: 0.03em; }
.comp-drop-link { color: #000; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.comp-drop-sub { color: #333; font-size: 0.88rem; margin-bottom: 1rem; }
.comp-drop-sub kbd {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  border: 2px solid #000;
  border-bottom-width: 3px;
  border-radius: 0;
  padding: 0.05rem 0.35rem;
  background: #000;
  color: #fff;
  font-weight: 700;
}
.comp-drop-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* compress file list */
.comp-file-list {
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
}
.comp-file-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 120px auto;
  gap: 0.85rem;
  align-items: center;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: box-shadow 0.15s, transform 0.1s;
}
.comp-file-item:hover { box-shadow: 5px 5px 0 #000; transform: translate(1px, 1px); }
.comp-file-item.is-selected { border-color: #000; background: #000; color: #fff; box-shadow: 5px 5px 0 #000; }
.comp-file-item.is-selected .comp-file-name,
.comp-file-item.is-selected .comp-file-size { color: #fff; }
.comp-file-thumb {
  width: 40px; height: 40px;
  background: #fff;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
}
.comp-file-name { font-weight: 800; font-size: 0.85rem; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: 0.02em; }
.comp-file-size { font-family: var(--font-mono, monospace); font-size: 0.75rem; color: #333; font-weight: 600; text-align: right; }
.comp-file-remove {
  background: #000; color: #fff; border: 2px solid #000; border-radius: 0;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 #000;
}
.comp-file-remove:hover { box-shadow: 5px 5px 0 #000; transform: translate(1px, 1px); }

/* options */
.comp-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.comp-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.comp-field > span {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #000;
}
.comp-field select {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.5rem 0.7rem;
  box-shadow: 3px 3px 0 #000;
}

/* actions */
.comp-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.comp .btn {
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
  border: 2px solid #000;
}
.comp .btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.comp .btn-primary { background: #000; color: #fff; }
.comp .btn-primary:hover { background: #000; color: #fff; box-shadow: 6px 6px 0 #000; transform: translate(2px, 2px); }
.comp .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: 4px 4px 0 #000; }
.comp .btn-ghost { background: #fff; color: #000; border: 2px solid #000; }
.comp .btn-ghost:hover { background: #f0f0f0; box-shadow: 6px 6px 0 #000; transform: translate(2px, 2px); }

/* progress */
.comp-progress {
  margin-top: 1rem;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  display: none;
}
.comp-progress-bar {
  height: 12px;
  background: #e5e5e5;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.comp-progress-fill {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.3s ease;
}
.comp-progress-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: #000;
  font-weight: 700;
  text-align: center;
}

/* compress results */
.comp-results {
  margin-top: 1rem;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  display: none;
}
.comp-results-title { font-size: 0.95rem; color: #000; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.75rem; }
.comp-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid #000;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #fafafa;
}
.comp-result-name { font-weight: 700; color: #000; }
.comp-result-size { font-family: var(--font-mono, monospace); font-size: 0.8rem; color: #333; font-weight: 600; margin-left: auto; }
.comp-download-all {
  background: #000; color: #fff; border: 2px solid #000; border-radius: 0;
  padding: 0.75rem 1.5rem; font-weight: 800; font-size: 0.9rem; text-transform: uppercase;
  box-shadow: 4px 4px 0 #000; cursor: pointer;
}
.comp-download-all:hover { box-shadow: 6px 6px 0 #000; transform: translate(2px, 2px); }

/* extract dropzone */
.comp-extract-drop {
  border: 4px dashed #000;
  border-radius: 0;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  box-shadow: 6px 6px 0 #000;
  margin-top: 1rem;
}
.comp-extract-drop:hover { border-color: #000; background: #fafafa; box-shadow: 8px 8px 0 #000; }
.comp-extract-drop.is-dragging {
  border-color: #000;
  background: #f0f0f0;
  transform: scale(1.01);
  box-shadow: 8px 8px 0 #000;
}
.comp-extract-drop-icon {
  font-size: 2.5rem;
  color: #000;
  font-weight: 800;
  display: block;
  margin-bottom: 0.75rem;
}
.comp-extract-drop-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.35rem; color: #000; text-transform: uppercase; letter-spacing: 0.03em; }
.comp-extract-drop-link { color: #000; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.comp-extract-drop-sub { color: #333; font-size: 0.88rem; margin-bottom: 1rem; }

/* extract archive info */
.comp-extract-info {
  display: none;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.comp-ext-info-name { font-weight: 800; color: #000; }
.comp-ext-info-format { font-family: var(--font-mono, monospace); font-size: 0.8rem; background: #000; color: #fff; padding: 0.15rem 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.comp-ext-info-count { font-family: var(--font-mono, monospace); font-size: 0.8rem; color: #333; font-weight: 600; }

/* extract file list */
.comp-extract-list {
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  margin-top: 1rem;
  max-height: 340px;
  overflow-y: auto;
}
.comp-ext-item {
  display: grid;
  grid-template-columns: 28px 40px minmax(0, 1fr) 100px auto;
  gap: 0.85rem;
  align-items: center;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 3px 3px 0 #000;
  transition: box-shadow 0.15s, transform 0.1s;
}
.comp-ext-item:hover { box-shadow: 5px 5px 0 #000; transform: translate(1px, 1px); }
.comp-ext-item.is-selected { border-color: #000; background: #000; color: #fff; box-shadow: 5px 5px 0 #000; }
.comp-ext-item.is-selected .comp-ext-name,
.comp-ext-item.is-selected .comp-ext-size { color: #fff; }
.comp-ext-check { display: flex; align-items: center; justify-content: center; }
.comp-ext-check input { width: 18px; height: 18px; accent-color: #000; }
.comp-ext-thumb {
  width: 40px; height: 40px;
  background: #fff;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
}
.comp-ext-name { font-weight: 800; font-size: 0.85rem; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: 0.02em; }
.comp-ext-size { font-family: var(--font-mono, monospace); font-size: 0.75rem; color: #333; font-weight: 600; text-align: right; }
.comp-ext-download {
  background: #000; color: #fff; border: 2px solid #000; border-radius: 0;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 #000;
}
.comp-ext-download:hover { box-shadow: 5px 5px 0 #000; transform: translate(1px, 1px); }

/* extract actions */
.comp-extract-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* SEO content blocks */
.tool-compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tool-compare th, .tool-compare td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 2px solid #000; border: 1px solid #000; }
.tool-compare th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #000; background: #fff; font-weight: 800; }
.tool-compare td:first-child { color: #000; font-weight: 700; background: #fafafa; }
.tool-compare .yes { color: #000; font-weight: 800; background: #e0e0e0; }
.tool-compare .no { color: #000; font-weight: 700; background: #f0f0f0; }
.tool-faq details {
  border: 3px solid #000;
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}
.tool-faq summary { cursor: pointer; font-weight: 800; color: #000; text-transform: uppercase; letter-spacing: 0.03em; }
.tool-faq details p { margin-top: 0.6rem; color: #333; font-size: 0.94rem; font-weight: 600; }
.tool-steps { counter-reset: step; display: grid; gap: 0.7rem; }
.tool-steps li {
  counter-increment: step;
  border: 3px solid #000;
  border-radius: 0;
  padding: 0.9rem 1.1rem 0.9rem 3.4rem;
  position: relative;
  background: #fff;
  font-size: 0.95rem;
  color: #000;
  font-weight: 700;
  box-shadow: 4px 4px 0 #000;
}
.tool-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem; top: 0.85rem;
  width: 1.7rem; height: 1.7rem;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 #000;
}
.tool-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-links a {
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  color: #000;
  background: #fff;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.15s;
  box-shadow: 3px 3px 0 #000;
}
.tool-links a:hover { border-color: #000; color: #000; background: #f0f0f0; box-shadow: 5px 5px 0 #000; }

@media (max-width: 640px) {
  .comp-tabs { grid-template-columns: 1fr; }
  .comp-file-item { grid-template-columns: 32px minmax(0, 1fr) 100px auto; font-size: 0.8rem; }
  .comp-ext-item { grid-template-columns: 24px 32px minmax(0, 1fr) 90px auto; font-size: 0.8rem; }
  .comp-options { grid-template-columns: 1fr; }
}
