/* ============================================================
   LUANY FAVACHO — Designer Guide CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;900&display=swap');

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0A;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── BACK BAR ─── */
.back-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232,87,26,0.2);
  gap: 1rem;
  flex-wrap: wrap;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #E8571A;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: #FF9A00; }

.back-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  flex: 1;
}

.print-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  transition: all 0.2s;
}

.print-btn:hover {
  color: white;
  border-color: rgba(232,87,26,0.4);
  background: rgba(232,87,26,0.1);
}

/* ── GUIDE HEADER ─── */
.guide-header {
  position: relative;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
  text-align: center;
}

.guide-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A0800 0%, #2D1200 40%, #E8571A 80%, #FF9A00 100%);
  opacity: 0.85;
}

.guide-header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
}

.guide-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.guide-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.guide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 1rem;
}

.guide-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
}

.guide-meta-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.guide-meta-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.guide-meta-item strong {
  color: white;
}

/* ── GUIDE MAIN ─── */
.guide-main {}

/* ── DS SECTION ─── */
.ds-section {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  padding: 5rem 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ds-section-last {
  border-bottom: none;
}

.ds-section-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(232,87,26,0.15);
  line-height: 1;
  padding-top: 0.25rem;
  flex-shrink: 0;
  user-select: none;
}

.ds-section-content {
  padding-left: 2rem;
}

.ds-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.ds-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 600px;
}

.ds-subsection {
  margin-top: 3rem;
}

.ds-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── COLOR TABLE ─── */
.color-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.color-row-ds {
  display: grid;
  grid-template-columns: 60px 1fr 2fr;
  gap: 1.5rem;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

.color-preview {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.color-name-ds {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.color-usage {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.color-codes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.code-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.code-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.code-val {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* ── GRADIENTS ─── */
.gradient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gradient-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.gradient-preview {
  height: 80px;
  width: 100%;
}

.gradient-info {
  padding: 1rem;
}

.gradient-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}

.gradient-code {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  word-break: break-all;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.gradient-use {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
}

/* ── FONTS ─── */
.font-system {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.font-display-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.font-big {
  line-height: 1;
}

.font-meta-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.font-meta-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E8571A;
  margin-bottom: 0.75rem;
}

.font-meta-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.font-weights {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.font-weights span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ── TYPE SCALE TABLE ─── */
.type-scale-table {
  display: flex;
  flex-direction: column;
}

.type-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.type-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #E8571A;
  margin-bottom: 0.25rem;
}

.type-specs {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
}

.type-sample-col {
  overflow: hidden;
}

/* ── STEPS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.step-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(232,87,26,0.3);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.step-body {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── SIZES GRID ─── */
.sizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.size-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem;
}

.size-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}

.size-dim {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #E8571A;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.size-ratio {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
}

/* ── SPECS TWO COL ─── */
.specs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.spec-category {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
}

.spec-cat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8571A;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(232,87,26,0.2);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.spec-label {
  color: rgba(255,255,255,0.45);
}

.spec-value {
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  text-align: right;
}

/* ── LAYERS GUIDE ─── */
.layers-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.layer-group {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
}

.layer-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: #E8571A;
  margin-bottom: 0.75rem;
}

.layer-item {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ── CHECKLIST ─── */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.checklist-group {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
}

.checklist-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.check-item:hover { color: rgba(255,255,255,0.85); }

.check-item input[type="checkbox"] {
  accent-color: #E8571A;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── FOLDER TREE ─── */
.folder-tree {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  font-family: 'Courier New', monospace;
}

.folder-line {
  padding: 0.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.folder-root {
  font-size: 0.9rem;
  font-weight: 700;
  color: #E8571A;
  margin-bottom: 0.5rem;
}

.folder-1 {
  padding-left: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.folder-2 {
  padding-left: 1.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
}

/* ── NOTES ─── */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.note-card {
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid;
}

.note-orange {
  background: rgba(232,87,26,0.05);
  border-color: rgba(232,87,26,0.2);
}

.note-green {
  background: rgba(74,222,128,0.05);
  border-color: rgba(74,222,128,0.2);
}

.note-blue {
  background: rgba(99,102,241,0.05);
  border-color: rgba(99,102,241,0.2);
}

.note-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.note-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.note-card li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.note-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.25);
}

/* ── PRINT ─── */
@media print {
  .back-bar { display: none; }
  body { background: white; color: black; }
  .ds-section { page-break-inside: avoid; }
  .ds-title { color: #E8571A; }
  .color-codes { grid-template-columns: repeat(2, 1fr); }
  .guide-header-bg { background: #E8571A !important; }
}

/* ── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .ds-section { grid-template-columns: 1fr; }
  .ds-section-number { font-size: 2rem; }
  .ds-section-content { padding-left: 0; }
  .color-row-ds { grid-template-columns: 50px 1fr; }
  .color-codes { grid-column: span 2; grid-template-columns: repeat(2, 1fr); }
  .gradient-grid { grid-template-columns: 1fr; }
  .font-display-card { grid-template-columns: 1fr; }
  .type-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .sizes-grid { grid-template-columns: 1fr 1fr; }
  .specs-two-col { grid-template-columns: 1fr; }
  .layers-guide { grid-template-columns: 1fr 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .sizes-grid { grid-template-columns: 1fr; }
  .layers-guide { grid-template-columns: 1fr; }
  .guide-meta-grid { flex-direction: column; align-items: center; gap: 0.75rem; }
  .guide-title { font-size: 2rem; }
  .back-bar { flex-direction: column; text-align: center; }
}
