/* material-guide.css — Page-type CSS for 14 pages */
/* Used by: material-guide pages. Edit here to change all 14 at once. */

/* ---- REGION SELECTOR ---- */
/* ---- THEME SWITCHER ---- */

/* ---- NAV ---- */

/* ---- LAYOUT ---- */

/* ---- PAGE HERO ---- */
.page-label::before, .page-hero .page-label::after { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent2); opacity: 0.4; }

/* ---- MATERIAL SECTION ---- */
.mat-section {
  margin-bottom: 4rem; padding: 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  scroll-margin-top: 80px; transition: border-color 0.2s;
}
.mat-section:hover { border-color: var(--accent-border); }
.mat-title-block { display: flex; flex-direction: column; gap: 0.4rem; }
.mat-name { font-family: var(--font-sans); font-size: 1.6rem; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; }
.mat-fullname { font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); }
.mat-tagline { font-size: 1.05rem; color: var(--text); margin-top: 0.25rem; }
.mat-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; padding-top: 4px; }
.badge {
  font-size: 10px; font-family: var(--font-mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: var(--radius); white-space: nowrap;
}
.badge-beginner { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.badge-intermediate { background: var(--yellow-dim, rgba(161,98,7,0.10)); color: var(--yellow); border: 1px solid var(--yellow-border, rgba(161,98,7,0.25)); }
.badge-advanced { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,85,85,0.3); }
.badge-popular { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-niche { background: var(--blue-dim); color: var(--cyan); border: 1px solid var(--blue-border, rgba(37,99,235,0.20)); }
.badge-flexible { background: var(--accent-dim); color: var(--accent2); border: 1px solid var(--accent-border); }

.mat-summary { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.mat-summary p + p { margin-top: 0.75rem; }

/* ---- INFO GRID ---- */

/* ---- PROS/CONS ---- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.75rem; }
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-block, .cons-block {
  background: var(--surface2); border-radius: var(--radius); padding: 1rem 1.1rem;
}
.pros-block { border: 1px solid var(--green-border); }
.cons-block { border: 1px solid var(--red-dim); }
.pc-label { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; font-weight: 700; }
.pros-block .pc-label { color: var(--green); }
.cons-block .pc-label { color: var(--red); }
.pc-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pc-list li { font-size: 0.95rem; color: var(--muted); line-height: 1.5; padding-left: 1.2rem; position: relative; }
.pros-block .pc-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: 0.8rem; }
.cons-block .pc-list li::before { content: '\2717'; position: absolute; left: 0; color: var(--red); font-weight: 700; font-size: 0.8rem; }

/* ---- USE CASES + TIPS ---- */
.subsection { margin-bottom: 1.5rem; }
.use-cases { display: flex; flex-wrap: wrap; gap: 6px; }
.use-tag {
  font-size: 12px; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 10px;
}

/* ---- VARIANT CARDS ---- */
.variant-grid { display: flex; flex-direction: column; gap: 10px; }
.variant-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 0.75rem 1rem; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: border-color 0.15s;
}
.variant-card:hover { border-color: var(--accent-border); }
.variant-pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 100px; padding: 4px 12px; white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.03em; text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
a.variant-pill:hover { background: var(--accent-border); transform: translateY(-1px); text-decoration: none; }
.variant-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

/* ---- CTA ---- */
.mat-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #282a36;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 9px 18px; border-radius: var(--radius); text-decoration: none;
  transition: opacity 0.15s; margin-top: 0.5rem;
}

/* ---- FOOTER ---- */

/* ---- TABLE OVERFLOW ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }

@media (max-width: 640px) {
  .mat-section { padding: 1.25rem; }
}
/* ---- NAV GUIDES DROPDOWN ---- */

/* ---- YOU-NEED CARDS (material guides) ---- */
.you-need-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.you-need-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.you-need-card {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.15s;
}
.you-need-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.you-need-card-label { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.you-need-card-title { font-size: 0.95rem; color: var(--text); font-weight: 500; line-height: 1.4; }
.you-need-card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; flex: 1; }
.you-need-card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--accent); text-decoration: none; margin-top: auto;
  padding: 4px 0; transition: opacity 0.15s;
}
.you-need-card-link:hover { opacity: 0.75; text-decoration: none; }
