/* tools.css - shared look for the tool pages (compress.html, audio.html, ...) */
:root {
  --bg: #0b0f17;
  --surface: #131926;
  --surface-card: #182032;
  --border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #0284c7;
  --accent-teal: #06b6d4;
  --accent-coral: #f97316;
  --radius-sm: 8px;
  --radius-md: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  position: relative;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.hero-logo-bg {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; max-width: 70vw;
  opacity: 0.06;
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 23, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.links { display: flex; gap: 28px; }
.links a { font-size: 14px; color: var(--text-muted); }
.links a:hover { color: var(--text-main); }

main { position: relative; z-index: 1; padding: 50px 0 80px 0; }
h2.page-title { font-family: 'Space Grotesk', sans-serif; font-size: 30px; text-align: center; margin-bottom: 8px; }
p.page-sub { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 30px; }

.toolCard {
  max-width: 560px; margin: 0 auto 28px auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
}

.addBox {
  width: 100%; height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(6, 182, 212, 0.06);
  border: 2px dashed rgba(6, 182, 212, 0.45);
  border-radius: 12px;
  color: var(--accent-teal);
  font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.addBox:active { background: rgba(6, 182, 212, 0.14); }
.addBox .plus { font-size: 48px; line-height: 1; font-weight: 300; }
.addBox .addText { font-size: 13px; font-weight: 600; }

.toolPreview {
  width: 100%; max-height: 220px; border-radius: 10px; background: #000; object-fit: contain;
}
.infoLine { font-size: 13px; color: var(--text-muted); margin-top: 8px; text-align: center; }
.infoLine b { color: var(--text-main); }

.changeBtn {
  display: block; margin: 10px auto 0 auto;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-main);
  border-radius: 6px; font-size: 12px; padding: 6px 14px; cursor: pointer; font-family: inherit;
}

.groupTitle { margin: 18px 0 8px 0; font-size: 13px; color: var(--text-main); font-weight: 600; }
.chipRow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chipRow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chipBtn {
  padding: 10px 0;
  background: #0e1420; color: var(--text-main);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chipBtn.active {
  border-color: var(--accent-teal);
  background: rgba(6, 182, 212, 0.14);
  color: var(--accent-teal);
}
.lookNote { margin-top: 10px; font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }

.mainBtn {
  display: block; width: 100%; margin-top: 18px;
  background: linear-gradient(135deg, #0284c7, #06b6d4); color: #fff; border: none;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.mainBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.status { text-align: center; margin-top: 12px; font-size: 14px; color: var(--accent-teal); min-height: 20px; }

.resultBox { display: none; margin-top: 18px; text-align: center; }
.resultVideo {
  width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid var(--border); background: #000;
}
.sizeInfo { margin-top: 10px; font-size: 14px; color: var(--text-main); font-weight: 600; }
.noteLine { margin-top: 6px; font-size: 12px; color: var(--accent-coral); line-height: 1.5; }
.saveBtn {
  display: block; width: 100%; margin-top: 14px;
  background: linear-gradient(135deg, #10b981, #06b6d4); color: #04211c; border: none;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.shareBtn {
  display: none; width: 100%; margin-top: 10px;
  background: rgba(255,255,255,0.06); color: var(--text-main);
  border: 1px solid var(--accent-teal); border-radius: var(--radius-sm);
  padding: 11px 22px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.saveBtn:disabled, .shareBtn:disabled { opacity: 0.5; }
audio.resultAudio { width: 100%; }

footer.site { border-top: 1px solid var(--border); padding: 40px 0; font-size: 14px; color: var(--text-muted); position: relative; z-index: 1; background: var(--bg); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text-main); }

#cookieFloater {
  position: fixed; bottom: 24px; right: 24px; max-width: 380px;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px; display: none;
  flex-direction: column; gap: 14px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); z-index: 100;
}
#cookieFloater p { font-size: 13px; color: var(--text-muted); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button {
  flex: 1; padding: 8px 12px; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text-main);
}
.cookie-actions button#cookieAccept { background: var(--primary); border-color: var(--primary); }

@media (max-width: 600px) {
  .links { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
