/* Reset + global */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img, svg { display: block; }

/* Preview toolbar — sits above each platform mockup */
.preview-toolbar {
  background: #0f0f10;
  color: #fff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.preview-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.preview-brand::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff6b35;
}
.preview-nav { display: flex; gap: 4px; margin-left: auto; }
.preview-nav a {
  text-decoration: none;
  color: #aaa;
  padding: 6px 12px;
  border-radius: 4px;
}
.preview-nav a:hover { color: #fff; background: #222; }
.preview-nav a.active { color: #fff; background: #ff6b35; }

.preview-filters {
  background: #1a1a1a;
  padding: 6px 16px;
  display: flex;
  gap: 14px;
  font: 400 12px -apple-system, BlinkMacSystemFont, sans-serif;
  color: #999;
  border-bottom: 1px solid #2a2a2a;
  align-items: center;
  flex-wrap: wrap;
}
.preview-filters select {
  background: #0f0f10;
  border: 1px solid #333;
  color: #ccc;
  padding: 4px 8px;
  border-radius: 4px;
  font: inherit;
}
.preview-filters .visible-count { margin-left: auto; color: #666; }
.preview-filters label { display: inline-flex; gap: 6px; align-items: center; }

@media (max-width: 700px) {
  .preview-toolbar { gap: 8px; }
  .preview-brand { font-size: 11px; }
  .preview-nav a { padding: 6px 8px; font-size: 11px; }
}

/* INTERNAL STAGING watermark — diagonal repeated text overlay on every preview page.
   Pointer-events: none so it doesn't block interaction. Low z-index so it stays
   below modals (modal z-index is 10000+). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: repeating-linear-gradient(
    -30deg,
    transparent 0,
    transparent 280px,
    rgba(255, 107, 53, 0.06) 280px,
    rgba(255, 107, 53, 0.06) 281px,
    transparent 281px,
    transparent 560px
  );
}
body::after {
  content: 'INTERNAL STAGING — DO NOT DISTRIBUTE  ·  INTERNAL STAGING — DO NOT DISTRIBUTE  ·  INTERNAL STAGING — DO NOT DISTRIBUTE  ·  INTERNAL STAGING — DO NOT DISTRIBUTE  ·  INTERNAL STAGING — DO NOT DISTRIBUTE';
  position: fixed;
  top: 50%;
  left: -50%;
  width: 200%;
  text-align: center;
  transform: rotate(-30deg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 107, 53, 0.10);
  letter-spacing: 6px;
  pointer-events: none;
  z-index: 6;
  white-space: nowrap;
}

/* Internal Draft banner — applied via class on the IG modal */
.internal-draft-banner {
  background: rgba(255, 107, 53, 0.95);
  color: white;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}
