/* SocialNow Studio — shared styles
   Replicates the v4 canvas look (8770) and extends it to a multi-project site. */

:root {
  --bg: #080808;
  --fg: #f0f0f0;
  --dim: #a0a0a0;
  --accent: #00ff00;
  --card: #141414;
  --line: #1c1c1c;
  --pink: #ff3366;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1800px; margin: 0 auto; padding: 60px 48px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 56px; flex-wrap: wrap;
}
.nav .brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.nav .brand img { height: 28px; width: auto; }
.nav .crumbs {
  color: var(--dim); font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav .crumbs a:hover { color: var(--accent); }
.nav .crumbs .sep { margin: 0 10px; color: var(--line); }

/* Header */
header.page { margin-bottom: 48px; }
h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800; letter-spacing: -0.02em;
}
h1 .accent { color: var(--accent); }
.sub {
  color: var(--dim); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px;
}
.rule { width: 200px; height: 3px; background: var(--accent); margin-top: 28px; }

.toolbar { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.toolbar a, .toolbar button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); color: var(--fg);
  padding: 12px 22px; font-size: 13px; letter-spacing: 0.04em;
  font-weight: 600; transition: all .15s ease; cursor: pointer;
  font-family: inherit;
}
.toolbar a:hover, .toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.toolbar a.primary, .toolbar button.primary {
  background: var(--accent); color: #000; border-color: var(--accent);
}
.toolbar a.primary:hover, .toolbar button.primary:hover { background: #00d900; color: #000; }

/* Grid of cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.card { display: flex; flex-direction: column; gap: 14px; }
.frame {
  aspect-ratio: 4/5; overflow: hidden;
  background: #141414; border: 1px solid var(--line);
  cursor: zoom-in; transition: all .2s ease;
  position: relative;
}
.frame:hover { transform: translateY(-4px); border-color: var(--accent); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.missing { display: grid; place-items: center; color: var(--dim); height: 100%; font-size: 13px; }

figcaption {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; font-size: 13px;
}
.meta { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.pid { color: var(--accent); font-weight: 700; letter-spacing: 0.06em; flex-shrink: 0; }
.name { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line); color: var(--fg);
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  transition: all .15s ease; white-space: nowrap; cursor: pointer;
  font-family: inherit;
}
.btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,255,0,0.06); }
.btn.disabled { opacity: .4; cursor: not-allowed; }
.btn.del { padding: 8px 10px; font-size: 14px; }
.btn.del:hover { border-color: var(--pink); color: var(--pink); background: rgba(255,51,102,0.06); }

/* Project tiles (home page) */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.project-tile {
  background: var(--card); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: all .2s ease; min-height: 220px;
}
.project-tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-tile .status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
}
.project-tile .status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.project-tile .status.archived { color: var(--dim); }
.project-tile .status.archived::before { background: var(--dim); }
.project-tile h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.project-tile p { color: var(--dim); font-size: 14px; line-height: 1.5; }
.project-tile .foot {
  margin-top: auto; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: var(--dim);
  letter-spacing: 0.04em; padding-top: 16px; border-top: 1px solid var(--line);
}
.project-tile .foot .open { color: var(--accent); font-weight: 600; }

/* Footer */
footer {
  margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
footer .fg { color: var(--fg); }

/* Lightbox */
.lb {
  position: fixed; inset: 0; background: rgba(0,0,0,.96);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 40px; cursor: zoom-out;
}
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; }
.lb .info {
  position: fixed; top: 24px; left: 32px; color: var(--fg);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.lb .info .pid { color: var(--accent); font-weight: 700; margin-right: 12px; }
.lb .controls {
  position: fixed; top: 24px; right: 32px; display: flex; gap: 12px;
}
.lb .controls a, .lb .controls button {
  background: var(--card); border: 1px solid var(--line); color: var(--fg);
  padding: 10px 18px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.lb .controls a:hover, .lb .controls button:hover {
  border-color: var(--accent); color: var(--accent);
}
.lb .nav-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: var(--card); border: 1px solid var(--line); color: var(--fg);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; cursor: pointer;
  font-family: inherit; transition: all .15s ease;
}
.lb .nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb .nav-btn.prev { left: 32px; }
.lb .nav-btn.next { right: 32px; }
.lb .hint {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--dim); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
