/*
Theme Name: Nulledhub
Theme URI: https://nulledhub.tech/
Author: Nulledhub
Author URI: https://nulledhub.tech/
Description: Release Desk for inspecting WordPress plugin and theme packages and creating secured per-product download handoffs.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nulledhub
*/

:root {
  --base: #241b2f;
  --deep: #1c1525;
  --panel: #31263e;
  --panel-2: #3a2c48;
  --line: #4a3b58;
  --ink: #f7f2fa;
  --muted: #b9aec2;
  --mint: #8fe3cf;
  --apricot: #ffb66e;
  --lavender: #c7a7ef;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: "Sora", sans-serif; font-size: 14px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 30; padding: 10px 14px; background: var(--ink); color: var(--base); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.topbar { display: grid; grid-template-columns: 220px minmax(300px, 620px) 220px; justify-content: space-between; align-items: center; gap: 28px; min-height: 78px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: var(--base); }
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand img { display: block; width: 180px; height: auto; }
.global-search { display: flex; align-items: center; gap: 14px; }
.global-search > label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.search-field { display: flex; align-items: center; flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.search-field svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-field input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 9px 10px; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #9f91aa; }
kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.list-button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--mint); font-size: 12px; }
.list-button strong, [data-count] { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--mint); color: var(--base); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.workspace { display: grid; grid-template-columns: 220px minmax(500px, 1fr) 310px; max-width: 1600px; margin: 0 auto; min-height: calc(100vh - 133px); }
.sidebar { display: flex; flex-direction: column; justify-content: space-between; padding: 30px 20px; border-right: 1px solid var(--line); background: var(--base); }
.sidebar nav { display: grid; gap: 4px; }
.nav-title { margin: 22px 10px 8px; color: #8f809b; font-size: 11px; }
.nav-title:first-child { margin-top: 0; }
.sidebar nav a { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; }
.sidebar nav a > span:last-child:not([data-count]) { color: #8f809b; font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.sidebar nav a:hover { color: var(--ink); background: var(--panel); }
.sidebar nav a.active { background: var(--panel-2); color: var(--mint); }
.sidebar nav a.active > span:last-child { color: var(--mint); }
.sidebar-note { display: flex; gap: 10px; margin-top: 40px; padding: 14px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.sidebar-note p { margin: 0; }
.sidebar-note strong { color: var(--ink); font-weight: 500; }
.pulse { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--mint); }
.release-desk { min-width: 0; padding: 38px 34px 50px; background: var(--deep); }
.desk-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 7px; color: var(--apricot); font-size: 11px; font-weight: 600; }
.desk-heading h1 { margin: 0; font-size: clamp(27px, 3vw, 42px); line-height: 1.14; letter-spacing: -2px; font-weight: 600; }
.desk-heading > p { max-width: 240px; margin: 0; color: var(--muted); font-size: 11px; }
.feed-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.feed-filters { display: flex; gap: 5px; }
.feed-filters a { min-height: 36px; padding: 7px 11px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 11px; }
.feed-filters a:hover { color: var(--ink); }
.feed-filters a.selected { border-color: var(--line); background: var(--panel); color: var(--mint); }
.feed-tools > span { color: #8f809b; font-size: 10px; text-align: right; }
.release-list { border-top: 1px solid var(--line); }
.release { border-bottom: 1px solid var(--line); }
.release-summary { display: grid; grid-template-columns: 46px minmax(170px, 1.6fr) minmax(115px, .8fr) 72px 90px; align-items: center; gap: 14px; min-height: 90px; cursor: pointer; list-style: none; }
.release-summary::-webkit-details-marker { display: none; }
.product-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; font-size: 17px; font-weight: 600; }
.product-mark.plugin { background: var(--mint); color: #173c36; }
.product-mark.theme { background: var(--apricot); color: #4c2b19; }
.product-mark.script { background: var(--lavender); color: #2d1b3d; }
.product-mark img { width: 100%; height: 100%; object-fit: cover; }
.release-name { min-width: 0; }
.release-name h2 { margin: 0; font-size: 14px; font-weight: 600; }
.release-name h2 a:hover { color: var(--mint); }
.release-name p { margin: 2px 0 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.version-change { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.version-change span { color: #a99bb4; text-decoration: line-through; }
.version-change strong { color: var(--apricot); font-weight: 500; }
.release-date span, .release-date strong, .release-date time { display: block; font-size: 10px; font-weight: 400; }
.release-date > span { color: #8f809b; }
.release-date strong, .release-date time { margin-top: 3px; color: var(--muted); }
.expand-button { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 48px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); text-align: left; }
.expand-button span, .expand-button strong { display: block; font-size: 9px; font-weight: 400; }
.expand-button strong { color: var(--mint); }
.expand-button svg { grid-column: 2; grid-row: 1 / 3; width: 14px; fill: none; stroke: var(--muted); stroke-width: 1.4; transition: transform 180ms ease; }
.release[open] .expand-button svg { transform: rotate(180deg); }
.release-details { margin: 0 0 20px 60px; border: 1px solid var(--line); border-radius: 14px 14px 5px 14px; background: var(--panel); overflow: hidden; }
.package-context { display: flex; gap: 24px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.package-context span { flex: 0 0 auto; color: var(--apricot); font-size: 10px; font-weight: 600; }
.package-context p { max-width: 460px; margin: 0; color: var(--muted); font-size: 10px; }
.package-form { margin: 0; }
.file-row { display: grid; grid-template-columns: 18px 36px minmax(170px, 1fr) 70px 60px; align-items: center; gap: 11px; min-height: 66px; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.file-row:hover { background: #382a45; }
.file-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--mint); }
.file-type { display: grid; place-items: center; width: 34px; height: 32px; border-radius: 7px; background: #493657; color: var(--mint); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.file-title strong, .file-title small { display: block; }
.file-title strong { font-size: 11px; font-weight: 500; }
.file-title small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.file-version, .file-size { font-family: "IBM Plex Mono", monospace; font-size: 10px; text-align: right; overflow-wrap: anywhere; }
.file-version { color: var(--apricot); }
.file-size { color: var(--muted); }
.package-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 13px 17px; font-size: 9px; }
.package-actions > span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.package-actions i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.package-actions a, .package-download { color: var(--mint); }
.package-download { padding: 0; border: 0; background: transparent; font-size: 9px; }
.package-download:hover, .package-actions a:hover { color: var(--ink); }
.feed-end { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; color: #8f809b; font-size: 10px; text-align: center; }
.feed-end span { flex: 1; height: 1px; background: var(--line); }
.empty-state { padding: 28px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); }
.empty-state a { color: var(--mint); }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; }
.page-numbers.current { background: var(--panel-2); color: var(--mint); }
a.page-numbers:hover { color: var(--ink); background: var(--panel); }
.download-panel { align-self: start; position: sticky; top: 0; min-width: 0; padding: 34px 24px; border-left: 1px solid var(--line); background: var(--base); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-heading h2 { margin: 0; font-size: 22px; letter-spacing: -1px; }
.panel-intro { margin: 14px 0 24px; color: var(--muted); font-size: 10px; }
.selected-files { margin: 0 0 20px; }
.download-group { padding: 13px 0 16px; border-top: 1px solid var(--line); }
.download-group h3 { margin: 0 0 8px; font-size: 11px; font-weight: 500; }
.download-group h3 a:hover { color: var(--mint); }
.download-group ul { margin: 0 0 12px; padding: 0; list-style: none; }
.download-group li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; }
.download-group li strong, .download-group li > span:first-child { display: block; min-width: 0; font-size: 10px; font-weight: 400; overflow-wrap: anywhere; }
.download-group li small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.artifact-note { min-width: 0; }
.remove-artifact { align-self: start; padding: 0 2px; border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.remove-artifact:hover { color: var(--apricot); }
.empty-selection { margin: 0; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.download-button { width: 100%; min-height: 42px; border: 0; border-radius: 10px; background: var(--mint); color: var(--base); font-size: 11px; font-weight: 600; }
.download-button:hover { background: #a7efdd; }
.selection-actions { display: flex; gap: 8px; }
.clear-button { flex: 1; min-height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.clear-button:hover { color: var(--ink); }
.link-rules { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.link-rules div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 9px; }
.link-rules span { color: var(--muted); }
.link-rules strong { font-weight: 400; text-align: right; }
.download-note { min-height: 20px; margin: 16px 0 0; color: var(--mint); font-size: 10px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 28px; border-top: 1px solid var(--line); color: #8f809b; font-size: 10px; }
.mobile-nav { display: none; }
.utility-page { max-width: 960px; min-height: calc(100vh - 140px); margin: 0 auto; padding: 52px 34px 70px; }
.utility-heading { max-width: 760px; margin-bottom: 32px; }
.utility-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.14; letter-spacing: -2px; }
.utility-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.utility-content, .legal-copy { max-width: 760px; color: var(--muted); line-height: 1.8; }
.utility-content a, .utility-back a, .utility-links a { color: var(--mint); }
.utility-search { max-width: 680px; margin: 28px 0; }
.utility-search label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.utility-search > div { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }
.utility-search input { min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.utility-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 11px; }
.utility-back { margin-top: 28px; }
.saved-items { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.saved-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.saved-item-link, .saved-items small { display: block; }
.saved-item-link { font-size: 14px; font-weight: 500; }
.saved-item-link:hover { color: var(--mint); }
.saved-items small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.saved-clear { display: block; margin: 16px auto 0; }
.form-panel { max-width: 760px; padding: 24px; border: 1px solid var(--line); border-radius: 16px 16px 5px 16px; background: var(--panel); }
.setup-notice { color: var(--muted); font-size: 12px; }
.setup-notice strong { color: var(--apricot); }
.report-context { padding: 10px 13px; border-left: 2px solid var(--mint); background: var(--panel); font-family: "IBM Plex Mono", monospace; font-size: 11px !important; }
.legal-copy { margin-bottom: 28px; }
.legal-copy h2 { color: var(--ink); font-size: 20px; }
.workspace-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.workspace-footer nav a:hover { color: var(--mint); }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 190px minmax(480px, 1fr) 270px; }
  .topbar { grid-template-columns: 190px minmax(280px, 1fr) 190px; }
  .release-desk { padding: 32px 24px; }
  .release-summary { grid-template-columns: 46px minmax(150px, 1.5fr) 110px 85px; }
  .release-date { display: none; }
  .release-details { margin-left: 0; }
  .global-search > label { display: none; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; gap: 14px; padding: 14px 20px; }
  .global-search { grid-column: 1 / -1; grid-row: 2; }
  .workspace { grid-template-columns: minmax(0, 1fr) 270px; }
  .sidebar { display: none; }
  .release-desk { padding: 30px 22px; }
  .desk-heading { display: block; }
  .desk-heading > p { margin-top: 12px; }
}

@media (max-width: 700px) {
  body { padding-bottom: 66px; }
  .topbar { padding: 12px 16px; }
  .brand img { width: 164px; }
  .list-button > span { display: none; }
  .workspace { display: block; }
  .release-desk { padding: 26px 16px 34px; }
  .desk-heading h1 { font-size: 31px; letter-spacing: -1.5px; }
  .feed-tools { align-items: flex-start; }
  .feed-tools > span { max-width: 120px; padding-top: 10px; }
  .release-summary { grid-template-columns: 42px minmax(0, 1fr) 82px; gap: 11px; padding: 14px 0; }
  .release-name p { font-size: 9px; }
  .version-change { grid-column: 2; font-size: 10px; }
  .expand-button { grid-column: 3; grid-row: 1 / 3; }
  .release-details { margin-bottom: 16px; }
  .package-context { display: block; }
  .package-context p { margin-top: 6px; }
  .file-row { grid-template-columns: 18px 34px minmax(0, 1fr) 56px; gap: 9px; padding: 12px; }
  .file-size { display: none; }
  .file-version { font-size: 9px; }
  .package-actions { align-items: flex-start; flex-direction: column; }
  .download-panel { position: static; padding: 30px 20px; border-top: 1px solid var(--line); border-left: 0; }
  .workspace-footer { flex-direction: column; padding: 22px 20px; }
  .utility-page { padding: 32px 18px 50px; }
  .utility-heading h1 { font-size: 32px; letter-spacing: -1.5px; }
  .utility-search > div { grid-template-columns: 1fr; }
  .form-panel { padding: 18px; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); background: var(--base); }
  .mobile-nav a { min-height: 54px; padding: 14px 5px; color: var(--muted); text-align: center; font-size: 10px; }
  .mobile-nav a[aria-current="page"] { color: var(--mint); }
  .mobile-nav [data-count] { min-width: 19px; height: 19px; margin-left: 4px; }
}

@media (max-width: 390px) {
  .release-desk { padding-right: 13px; padding-left: 13px; }
  .feed-tools > span { display: none; }
  .file-title small { font-size: 8px; }
  .selection-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
