/* ==========================================================================
   AI Huge DB — Content components
   Adds readable, editorial sections on top of the existing design system.
   ========================================================================== */

.source-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
}
.source-note i { color: var(--primary); }

.content-grid { display: grid; gap: 1.25rem; }
.content-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step-card {
  position: relative;
  padding: 1.55rem 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  height: 100%;
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.34);
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 0.42rem; }
.step-card p { color: var(--text-2); font-size: 0.9rem; margin: 0; }

.scenario-card {
  position: relative;
  height: 100%;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.scenario-card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, 0.34); }
.scenario-label { color: var(--accent); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.scenario-card h3 { font-size: 1.18rem; margin: 0.5rem 0 0.55rem; }
.scenario-card p { color: var(--text-2); font-size: 0.92rem; }
.scenario-card .pill { margin-top: 0.25rem; }

.content-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  height: 100%;
}
.content-card h3 { font-size: 1.08rem; }
.content-card p { color: var(--text-2); font-size: 0.92rem; }
.content-card p:last-child { margin-bottom: 0; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.25rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--text-2); font-size: 0.92rem; }
.checklist li i { color: var(--accent); margin-top: 0.22rem; flex: 0 0 auto; }
.checklist li strong { color: var(--text); }

.callout {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(0, 212, 255, 0.055);
  color: var(--text-2);
  font-size: 0.92rem;
}
.callout strong { color: var(--text); }
.callout.warn { border-color: rgba(255, 90, 31, 0.32); border-left-color: var(--energy); background: rgba(255, 90, 31, 0.06); }
.callout.good { border-color: rgba(0, 255, 159, 0.3); border-left-color: var(--accent); background: rgba(0, 255, 159, 0.055); }
.callout p:last-child { margin-bottom: 0; }

.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ""; position: absolute; top: 0.8rem; bottom: 0.8rem; left: 1.05rem; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding-left: 3rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.55rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.1);
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.timeline-item p { color: var(--text-2); font-size: 0.9rem; margin: 0; }

.spec-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.018); }
.spec-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.91rem; vertical-align: top; }
.spec-table thead th { color: var(--text-2); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.025); }
.spec-table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
.spec-table td { color: var(--text-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table .hl { color: var(--primary); font-weight: 600; }

.faq-list { display: grid; gap: 0.75rem; max-width: 900px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.faq-item[open] { border-color: rgba(0, 212, 255, 0.28); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-family: var(--font-mono); font-size: 1.1rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 1.2rem 1.15rem; color: var(--text-2); font-size: 0.92rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

.note-line { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--text-3); font-size: 0.8rem; }
.note-line i { color: var(--primary); margin-top: 0.2rem; }

.compact-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.compact-meta span { padding: 0.3rem 0.62rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--text-3); font-size: 0.76rem; }

.service-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-strip > div { padding: 1.2rem 1.1rem; border-right: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.service-strip > div:last-child { border-right: 0; }
.service-strip strong { display: block; color: var(--text); font-size: 0.94rem; margin-bottom: 0.25rem; }
.service-strip span { color: var(--text-2); font-size: 0.82rem; }

.week-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.week-plan .day-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.022); }
.day-card .day-label { color: var(--primary); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.day-card h4 { font-size: 0.98rem; margin: 0.35rem 0 0.35rem; }
.day-card p { color: var(--text-2); font-size: 0.85rem; margin: 0; }

.compare-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.compare-cards .card-x { padding: 1.55rem; }
.compare-cards h3 { font-size: 1.25rem; }
.compare-cards .series { margin-bottom: 0.75rem; }
.compare-cards p { color: var(--text-2); font-size: 0.9rem; }

.icon-inline { color: var(--primary); }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.text-link i { transition: transform 0.25s var(--ease); }
.text-link:hover i { transform: translateX(3px); }

@media (max-width: 991px) {
  .content-grid.four, .step-grid, .service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip > div:nth-child(2) { border-right: 0; }
  .service-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .compare-cards { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .content-grid.two, .content-grid.three, .checklist, .week-plan { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-strip > div:last-child { border-bottom: 0; }
  .content-card, .scenario-card { padding: 1.35rem; }
}
