/* creative-guidelines.css — Styles for the /creative-guidelines page.
   Owns: tab layout, schematic drawings, spec tables, submission steps.
   Does NOT own: page header (inline in EJS), shared components. */

*, *::before, *::after { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f8f7f4; color: #1a1a1a; margin: 0; }
a { color: #c07a3a; }

/* ── Page header ─────────────────────────────────────────────────────── */
.page-header { background: #1a1a1a; color: white; padding: 3rem 2rem 2.5rem; }
.page-header .logo { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.page-header .logo a { color: rgba(255,255,255,.5); text-decoration: none; }
.page-header h1 { font-size: 2rem; font-weight: 800; margin: 0 0 .5rem; }
.page-header p.header-sub { color: rgba(255,255,255,.65); font-size: 1rem; margin: 0; max-width: 600px; line-height: 1.6; }
.lang-toggle { display: inline-block; font-size: .8rem; color: rgba(255,255,255,.4); text-decoration: none; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: .25rem .75rem; margin-bottom: 1rem; transition: background .15s; }
.lang-toggle:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }

/* ── Container ───────────────────────────────────────────────────────── */
.container { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.back-link { display: block; color: #888; text-decoration: none; font-size: .875rem; margin-bottom: 1.5rem; }
.back-link:hover { color: #444; }

/* ── Section headings ────────────────────────────────────────────────── */
h2 { font-size: 1.35rem; font-weight: 800; margin: 2.5rem 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid #e8e4dc; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
p { color: #444; line-height: 1.7; margin: 0 0 1rem; }
ul, ol { color: #444; line-height: 1.8; margin: 0 0 1rem; padding-left: 1.5rem; }
li { margin-bottom: .4rem; }

/* ── Format tabs ─────────────────────────────────────────────────────── */
.format-tabs { display: flex; gap: .5rem; margin-bottom: 0; border-bottom: 2px solid #e8e4dc; padding-bottom: 0; }
.format-tab {
  padding: .7rem 1.25rem; font-size: .9rem; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: #888; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .15s;
}
.format-tab:hover { color: #444; }
.format-tab.active { color: #1a1a1a; border-bottom-color: #c07a3a; }

/* ── Tab panels ──────────────────────────────────────────────────────── */
.format-panel { display: none; animation: fadeIn .25s ease; }
.format-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Schematic container ─────────────────────────────────────────────── */
.schematic-wrapper {
  background: linear-gradient(135deg, #edf2f7 0%, #f0f4f8 50%, #eef1f5 100%);
  border: 1px solid #d0d8e2; border-radius: 14px;
  padding: 2.25rem 1.5rem 1.75rem; margin: 1.5rem 0; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.04);
}
/* Subtle grid background for blueprint feel */
.schematic-wrapper::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140,160,180,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,160,180,.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.schematic-wrapper svg { position: relative; z-index: 1; max-width: 100%; height: auto; }
.schematic-label { font-size: .8rem; color: #555; margin-top: .75rem; font-weight: 500; letter-spacing: .02em; }

/* ── Spec table ──────────────────────────────────────────────────────── */
.specs-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .5rem 0 1.5rem; }
.specs-table th { text-align: left; padding: .6rem 1rem; background: #f9fafb; border-bottom: 2px solid #e8e4dc; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #888; }
.specs-table td { padding: .65rem 1rem; border-bottom: 1px solid #f0f0f0; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child { font-weight: 600; color: #1a1a1a; width: 40%; }

/* ── Designer note ───────────────────────────────────────────────────── */
.note { font-size: .85rem; color: #555; background: #f9fafb; border-left: 3px solid #e8e4dc; padding: .75rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; line-height: 1.6; }
.note strong { color: #1a1a1a; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card { background: white; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.card.accent { border-top: 4px solid #c07a3a; }
.card.gatekeeper { border-top: 4px solid #16a34a; background: #f0fdf4; }
.card h3 { margin-top: 0; }

/* ── Submission steps ────────────────────────────────────────────────── */
.step { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.step-num { flex-shrink: 0; width: 32px; height: 32px; background: #1a1a1a; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.step-num.accent { background: #c07a3a; }
.step-body h4 { font-size: .95rem; font-weight: 700; margin: 0 0 .25rem; }
.step-body p { font-size: .9rem; color: #666; margin: 0; line-height: 1.6; }

/* ── GatekeeperAI badge ──────────────────────────────────────────────── */
.gatekeeper-badge { display: inline-flex; align-items: center; gap: .4rem; background: white; border: 1px solid #bbf7d0; border-radius: 8px; padding: .6rem 1rem; font-size: .85rem; font-weight: 600; color: #166534; margin: .5rem 0 1rem; }
.gatekeeper-badge .icon { font-size: 1.1rem; }
.gatekeeper-link { display: block; font-size: .8rem; color: #16a34a; margin: .25rem 0 0; }

/* ── Checklist ────────────────────────────────────────────────────────── */
.checklist { background: #f9fafb; border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1rem 0; }
.checklist li { font-size: .9rem; }
.checklist li::marker { color: #16a34a; }

/* ── CTA row ──────────────────────────────────────────────────────────── */
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn-primary { display: inline-block; background: #1a1a1a; color: white; border-radius: 10px; padding: .85rem 1.75rem; font-size: .95rem; font-weight: 600; text-decoration: none; transition: background .15s; }
.btn-primary:hover { background: #333; }
.btn-secondary { display: inline-block; background: white; color: #1a1a1a; border: 2px solid #e8e4dc; border-radius: 10px; padding: .85rem 1.75rem; font-size: .95rem; font-weight: 600; text-decoration: none; transition: border-color .15s; }
.btn-secondary:hover { border-color: #c07a3a; }

/* ── Legend ────────────────────────────────────────────────────────────── */
.schematic-legend {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1rem; font-size: .75rem; color: #555;
}
.legend-item { display: flex; align-items: center; gap: .35rem; }
.legend-swatch { width: 20px; height: 3px; border-radius: 2px; }
.legend-swatch.bleed { background: #e74c3c; }
.legend-swatch.safe { background: #2ecc71; }
.legend-swatch.qr { background: #3498db; border: 1px dashed #3498db; background: rgba(52,152,219,.2); width: 14px; height: 14px; border-radius: 2px; }
.legend-swatch.required-zone { background: rgba(231,76,60,.15); border: 2px solid #e74c3c; width: 14px; height: 14px; border-radius: 2px; }

/* ── Required zone note below schematics ────────────────────────────── */
.required-zone-note { background: #fef2f2; border: 1.5px solid #fca5a5; border-radius: 8px; padding: .65rem 1rem; font-size: .8rem; color: #991b1b; line-height: 1.5; margin-top: .75rem; font-weight: 500; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .format-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .format-tab { white-space: nowrap; font-size: .8rem; padding: .6rem 1rem; }
  .schematic-wrapper { padding: 1.25rem 1rem; }
  .container { padding: 1.5rem 1rem 3rem; }
  .specs-table td:first-child { width: auto; }
}
