/* BerlinWalk Content App — layout */

.bw-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.bw-sidebar {
  background: var(--bw-green);
  color: var(--bw-white);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.bw-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.bw-sidebar__brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bw-white);
  padding: 4px;
  object-fit: contain;
}
.bw-sidebar__brand h1 {
  color: var(--bw-white);
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}
.bw-sidebar__brand span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bw-yellow);
  font-weight: 700;
}

.bw-nav { display: flex; flex-direction: column; gap: 2px; }
.bw-nav__group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  margin: 16px 8px 6px;
  font-weight: 700;
}
.bw-nav a {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.bw-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--bw-white);
  text-decoration: none;
}
.bw-nav a.is-active {
  background: var(--bw-yellow);
  color: var(--bw-green);
}
.bw-nav a .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bw-sidebar__footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Main */
.bw-main {
  padding: 32px 40px 80px;
  max-width: 1100px;
}
.bw-pageheader {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bw-border);
}
.bw-pageheader .bw-kicker { margin-bottom: 6px; }
.bw-pageheader h1 { margin: 0 0 8px; }
.bw-pageheader p {
  color: var(--bw-muted);
  margin: 0;
  max-width: 720px;
}

/* Grid utilities */
.bw-grid { display: grid; gap: 20px; }
.bw-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bw-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bw-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .bw-app { grid-template-columns: 1fr; }
  .bw-sidebar { position: static; height: auto; }
  .bw-main { padding: 24px; }
  .bw-grid--2, .bw-grid--3, .bw-grid--4 { grid-template-columns: 1fr; }
}

/* Dashboard module cards */
.bw-module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--bw-white);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  text-decoration: none;
  color: var(--bw-text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.bw-module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bw-shadow);
  border-color: var(--bw-lime);
  text-decoration: none;
}
.bw-module-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bw-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bw-green);
  font-weight: 800;
  font-size: 20px;
}
.bw-module-card h3 { margin: 0; color: var(--bw-green); }
.bw-module-card p { margin: 0; color: var(--bw-muted); font-size: 14px; }
.bw-module-card__status {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bw-lime);
  letter-spacing: 0.1em;
}

/* Section block */
.bw-section { margin-bottom: 40px; }
.bw-section__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.bw-section__title h2 { margin: 0; }
.bw-section__title small {
  color: var(--bw-muted);
  font-size: 13px;
}

/* Form */
.bw-form-row { margin-bottom: 16px; }
.bw-form-row--inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .bw-form-row--inline { grid-template-columns: 1fr; }
}

/* Output panels */
.bw-output {
  background: var(--bw-cream);
  border: 1px dashed var(--bw-border-strong);
  border-radius: var(--bw-radius);
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--bw-text);
  min-height: 120px;
}

/* Logo gallery */
.bw-logo-tile {
  position: relative;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  overflow: hidden;
  background: var(--bw-white);
}
.bw-logo-tile__media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.bw-logo-tile__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.bw-logo-tile__media--yellow { background: var(--bw-yellow); }
.bw-logo-tile__media--light  { background: var(--bw-cream); }
.bw-logo-tile__media--dark   { background: #0E1F11; }
.bw-logo-tile__caption {
  padding: 12px 14px;
  border-top: 1px solid var(--bw-border);
  background: var(--bw-white);
}
.bw-logo-tile__caption strong { display: block; font-size: 13px; color: var(--bw-green); }
.bw-logo-tile__caption span { font-size: 12px; color: var(--bw-muted); }

/* Color swatch */
.bw-swatch {
  border-radius: var(--bw-radius);
  overflow: hidden;
  border: 1px solid var(--bw-border);
  cursor: pointer;
  background: var(--bw-white);
  transition: transform .1s ease;
}
.bw-swatch:hover { transform: translateY(-1px); }
.bw-swatch__color {
  height: 110px;
  border-bottom: 1px solid var(--bw-border);
}
.bw-swatch__meta {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bw-swatch__meta strong { font-size: 13px; color: var(--bw-text); }
.bw-swatch__meta span { font-size: 12px; color: var(--bw-muted); font-family: ui-monospace, Menlo, monospace; }
.bw-swatch__copied {
  font-size: 11px;
  color: var(--bw-lime);
  font-weight: 700;
  visibility: hidden;
}
.bw-swatch.is-copied .bw-swatch__copied { visibility: visible; }

/* Type sample */
.bw-type-sample {
  padding: 24px;
  background: var(--bw-white);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
}
.bw-type-sample__display {
  font-weight: 800;
  font-size: 40px;
  color: var(--bw-green);
  margin: 0 0 8px;
}
.bw-type-sample__sub {
  font-size: 14px;
  color: var(--bw-muted);
  margin: 0 0 12px;
  font-family: ui-monospace, Menlo, monospace;
}
.bw-type-sample--serif .bw-type-sample__display {
  font-family: var(--bw-font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Do / Don't */
.bw-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 700px) { .bw-rules { grid-template-columns: 1fr; } }
.bw-rules > div {
  background: var(--bw-white);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 20px;
}
.bw-rules__head {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bw-rules .do .bw-rules__head { color: var(--bw-green); }
.bw-rules .dont .bw-rules__head { color: var(--bw-red); }
.bw-rules ul { padding-left: 18px; margin: 0; line-height: 1.6; font-size: 14px; }
.bw-rules li { margin-bottom: 6px; }

/* Badges */
.bw-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bw-badge--soon { background: var(--bw-light-green); color: var(--bw-green); }
.bw-badge--live { background: var(--bw-green); color: var(--bw-white); }

/* Stub notice */
.bw-stub-notice {
  background: #FFFDF1;
  border: 1px solid var(--bw-yellow);
  border-radius: var(--bw-radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--bw-text);
  margin-bottom: 24px;
}
.bw-stub-notice strong { color: var(--bw-green); }
