/* Minimal, Wix-friendly static portfolio */
/* No build tools. Just drop the folder into Wix “HTML iframe” or host anywhere. */

:root{
  --bg:#ffffff;
  --fg:#121212;
  --muted:#6b6b6b;
  --line:#e8e8e8;
  --chip:#f5f5f5;
  --chipOn:#111111;
  --chipOnText:#ffffff;
  --shadow:0 18px 50px rgba(0,0,0,.06);
  --radius:14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body{
  margin:0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
}

.app{ max-width: 1320px; margin: 0 auto; padding: 22px 18px 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
  flex-shrink: 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 0;
}
.brand__home{
  font-family: 'BDO Grotesk', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #0a0a0a;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}
.brand__home:hover{ color: #666; }
.brand__page{
  font-family: 'BDO Grotesk', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #0a0a0a;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__badge{
  width: 18px;
  height: 18px;
  margin-left: 6px;
  flex-shrink: 0;
}
.brand__sub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  max-width: 520px;
  line-height: 1.35;
}

.search{
  min-width: 260px;
  display:flex;
  align-items: center;
  justify-content:flex-end;
  gap: 14px;
}
.search input{
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline:none;
  font-family: var(--mono);
  font-size: 13px;
}
.search input:focus{ border-color:#cfcfcf; }

.auth-link {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 0;
}
.auth-link:hover { color: var(--fg); }

.toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.dot{ color: #c0c0c0; }

.linklike{
  background:none;
  border:none;
  padding:0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor:pointer;
  text-decoration: underline;
}
.linklike:hover{ color: var(--fg); }

.main{
  display:grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 18px;
  flex: 1;
  overflow: hidden;
}

.left{
  border-right: 1px solid var(--line);
  padding-right: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.right{ padding-left: 4px; overflow-y: auto; scrollbar-width: thin; }

.tagbar-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0 14px;
}

.tagbar{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.tagbar.is-collapsed {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  max-height: 34px;
}

.tagbar.is-collapsed::-webkit-scrollbar {
  display: none;
}

.tagbar.is-collapsed .tag {
  flex-shrink: 0;
}

.tagbar-toggle {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--fg);
  font-family: var(--mono);
  transition: background 0.2s;
  flex-shrink: 0;
}

.tagbar-toggle:hover {
  background: var(--line);
}

.tagbar-toggle.is-active {
  background: var(--chipOn);
  color: var(--chipOnText);
  border-color: var(--chipOn);
}

.tag{
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--fg);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor:pointer;
  user-select:none;
}
.tag.is-on{
  background: var(--chipOn);
  color: var(--chipOnText);
  border-color: var(--chipOn);
}

.tablewrap{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}

.table{
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
}
.table thead th{
  text-align:left;
  padding: 10px 12px;
  border-bottom:1px solid var(--line);
  background: #fafafa;
  font-weight: 600;
  color: #222;
}
.table tbody td{
  padding: 12px 12px;
  border-bottom:1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr{
  cursor:pointer;
}
.table tbody tr:hover{
  background: #fcfcfc;
}
.table tbody tr.is-active{
  background: #111;
  color: #fff;
}
.table tbody tr.is-active td{
  border-bottom-color:#111;
}

.colYear{ width: 84px; }
.colMedium{ width: 48%; }

.footer{
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
}

.viewer{
  height: 100%;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.viewer__stage{
  display:grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items:center;
  gap: 12px;
}

.viewer__media{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 0;
}

.viewer__media img,
.viewer__media video{
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display:block;
  border-radius: var(--radius);
}

.viewer__nav{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, opacity .15s ease;
  box-shadow: var(--shadow);
}

.viewer__nav:hover{
  border-color:#cfcfcf;
  transform: translateY(-1px);
}

.viewer__nav:disabled{
  opacity: .35;
  cursor: default;
  transform: none;
}

.viewer__meta{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px;
  box-shadow: var(--shadow);
  background: #fff;
}

.viewer__metaTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
}

.viewer__title{
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .02em;
}
.viewer__ym{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}

.viewer__tags{
  margin-top: 6px;
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
}
.pill{
  border:1px solid var(--line);
  border-radius:999px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--mono);
  color: #333;
  background: #fafafa;
}

.viewer__desc{
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #444;
  font-family: var(--mono);
  white-space: pre-wrap;
}

.viewer__actions{
  margin-top: 10px;
  display:flex;
  flex-direction: row;
  gap: 10px;
}

.btn{
  flex: 1;
  text-align:center;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor:pointer;
  font-family: var(--mono);
  font-size: 12px;
  color: #111;
  text-decoration:none;
  white-space: nowrap;
}
.btn:hover{ border-color:#cfcfcf; }

@media (max-width: 980px){
  .app{ padding: 16px 14px 28px; }
  .main{ grid-template-columns: 1fr; }
  .left{ border-right:none; padding-right: 0; border-bottom:none; padding-bottom: 0; }
  .right{ display: none; }
  
  .tagbar-toggle { display: none; }
  .tagbar { flex-wrap: wrap !important; max-height: none !important; overflow: visible !important; }
  .tagbar.is-collapsed { flex-wrap: wrap !important; max-height: none !important; overflow: visible !important; }

  .brand__home, .brand__page { font-size: 16px; }
  .viewer__stage { display: none; }

  /* Mobile info drops — fixed bottom bar */
  .info-drops {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
    z-index: 100;
  }
  .info-drop { flex: 1; text-align: center; }
  .info-drop__btn { padding: 14px 8px; width: 100%; text-align: center; }
  .info-drop__content {
    position: fixed;
    bottom: 48px;
    left: 8px;
    right: 8px;
    min-width: auto;
    max-width: none;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 -4px 28px rgba(0,0,0,0.12);
  }
  .info-drop__content p { font-size: 12px; line-height: 1.7; }

  .footer { padding-bottom: 56px; }
  
  /* Mobile inline viewer - appears under clicked row */
  .mobile-viewer-row { display: table-row; }
  .mobile-viewer-cell {
    padding: 16px 12px;
    background: #fafafa;
    border-bottom: 1px solid var(--line);
  }
  .mobile-viewer {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-viewer__media {
    overflow: hidden;
  }
  .mobile-viewer__media img,
  .mobile-viewer__media video {
    width: 100%;
    height: auto;
    display: block;
  }
  .mobile-viewer__meta {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
  }
  .mobile-viewer__title {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 14px;
  }
  .mobile-viewer__ym {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
  }
  .mobile-viewer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
  .mobile-viewer__desc {
    font-family: var(--mono);
    font-size: 12px;
    color: #444;
    margin-top: 8px;
    line-height: 1.45;
  }
  .mobile-viewer__actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
  }
  .mobile-viewer__actions .btn {
    flex: 1;
  }
}

/* v4 additions */
.adminbar { display:flex; gap:10px; align-items:center; justify-content:flex-end; }
.btn { font: inherit; border:1px solid rgba(255,255,255,.14); background: transparent; color: inherit; padding:8px 10px; border-radius:10px; cursor:pointer; }
.btn--primary { background: rgba(255,255,255,.12); }
.btn--ghost { background: transparent; }
.editing [data-editable="true"] { outline: 1px dashed rgba(255,255,255,.35); outline-offset: 4px; border-radius: 6px; }
.editing [data-editable="true"]:focus { outline-style: solid; }
.viewer__video{width:100%;height:auto;display:block;border-radius:16px;}
@media (max-width: 720px){
  .adminbar { gap:8px; }
  .btn { padding:7px 9px; border-radius: 12px; }
  .badge{ width:13px; height:13px; }
}

/* Inline Info Dropdowns — below the table */
.info-drops {
  display: flex;
  gap: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.info-drop {
  position: relative;
}

.info-drop__btn {
  background: none;
  border: none;
  padding: 6px 14px 6px 0;
  font-family: 'Fragment Mono', var(--mono);
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.info-drop__btn:hover { color: var(--fg); }
.info-drop__btn.is-open { color: var(--fg); text-decoration: underline; }

.info-drop__content {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  min-width: 280px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  z-index: 50;
}

.info-drop__content.is-open {
  display: block;
}

.info-drop__content p {
  font-family: 'Fragment Mono', var(--mono);
  font-size: 11px;
  line-height: 1.65;
  margin: 0 0 6px 0;
  color: #444;
}

.info-drop__content p:last-child { margin-bottom: 0; }

.info-drop__content a {
  color: #000;
  text-decoration: underline;
}
.info-drop__content a:hover { color: #666; }

/* Site Footer */
.site-footer {
  font-family: 'Fragment Mono', var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
