/* ============================================
   lacedenim — base styles
   import a theme file BEFORE this one
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 13px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 300;
  min-height: 100vh;
  cursor: crosshair;
  overflow-x: hidden;
}

/* GRAIN OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: var(--grain-opacity);
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  background: var(--bg);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 10px;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

.nav-right {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-left: 16px;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--dim);
}

/* ============ LAYOUT ============ */
.container {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  min-height: 100vh;
  padding-top: 38px;
}

/* ============ LEFT SIDEBAR ============ */
.sidebar-left {
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  position: sticky;
  top: 38px;
  height: calc(100vh - 38px);
  overflow-y: auto;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.artist-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--img-bg);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.artist-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: grayscale(20%);
  transition: opacity 0.3s, filter 0.3s;
}

.artist-img-wrap:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.meta-block { margin-bottom: 24px; }

.meta-label {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.meta-value {
  font-size: 11px;
  color: var(--fg);
  line-height: 1.6;
}

.meta-value a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.meta-value a:hover { border-color: var(--accent); }

.tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 2px 7px;
  margin: 2px 2px 2px 0;
  text-transform: lowercase;
  transition: border-color 0.15s, color 0.15s;
  cursor: default;
}

.tag:hover { border-color: var(--dim); color: var(--fg); }

/* ============ MAIN CONTENT ============ */
.main-content {
  padding: 0;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.25s;
}

.hero-strip {
  height: 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 12px;
}

.hero-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--fg);
}

.hero-sep { color: var(--line); font-size: 14px; }

.hero-sub {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.v-tag {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.08em;
  margin-left: auto;
}

.section-header {
  height: 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
}

.section-tab {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--dim);
  cursor: pointer;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--mono);
  font-weight: 300;
}

.section-tab.active { color: var(--fg); border-bottom-color: var(--fg); }
.section-tab:hover { color: var(--fg); }

.content-area { padding: 28px; }

/* ============ TABS ============ */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ RELEASES ============ */
.release-list { display: flex; flex-direction: column; }

.release-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.release-row::before {
  content: '';
  position: absolute;
  left: -28px; right: -28px;
  top: 0; bottom: 0;
  background: var(--row-hover);
  opacity: 0;
  transition: opacity 0.15s;
}

.release-row:hover::before { opacity: 1; }

.release-cover {
  width: 56px;
  height: 56px;
  background: var(--img-bg);
  border: 1px solid var(--line);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.release-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.cover-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--cover-num);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.release-info { min-width: 0; }

.release-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-meta {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.release-right { text-align: right; flex-shrink: 0; }

.release-year {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.release-type {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 2px 6px;
  text-transform: uppercase;
}

/* ============ BIO ============ */
.bio-text {
  font-size: 12px;
  line-height: 2;
  color: var(--bio-color);
  max-width: 520px;
  letter-spacing: 0.02em;
}

.bio-text p { margin-bottom: 20px; }

/* ============ LINKS ============ */
.links-grid { display: flex; flex-direction: column; }

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s;
}

.link-row:hover { padding-left: 8px; }

.link-name {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-transform: lowercase;
}

.link-url {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.link-arrow {
  font-size: 10px;
  color: var(--dim);
  margin-left: 12px;
  transition: color 0.15s;
}

.link-row:hover .link-arrow { color: var(--accent); }

/* ============ RIGHT SIDEBAR ============ */
.sidebar-right {
  border-left: 1px solid var(--line);
  padding: 32px 18px;
  position: sticky;
  top: 38px;
  height: calc(100vh - 38px);
  overflow-y: auto;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.sidebar-section { margin-bottom: 28px; }

.sidebar-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.changelog-entry {
  padding: 8px 0;
  border-bottom: 1px solid var(--changelog-border);
}

.changelog-date {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.changelog-desc {
  font-size: 10px;
  color: var(--changelog-desc);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3a6b3a;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2.5s ease-in-out infinite;
}

.status-line {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.footer-text {
  font-size: 9px;
  color: var(--footer-color);
  letter-spacing: 0.06em;
  line-height: 2;
}

/* ============ MISC ============ */
.h-rule {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

::selection { background: var(--accent); color: var(--bg); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); }

/* ============ MOBILE ============ */
@media (max-width: 860px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .sidebar-left, .sidebar-right {
    position: static;
    height: auto;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-right {
    border-top: 1px solid var(--line);
    border-bottom: none;
  }
}
