/* Documentação: Convenções do BarberBot */

.doc-convencoes{
  --bg: #f6f8fc;
  --surface: #ffffff;
  --line: #d9e4f1;
  --text: #16324a;
  --muted: #536c85;
  --brand: #12387e;
  --brand-2: #2b8cc4;
  --soft: #eef5ff;
  --soft-2: #f8fbff;
  --green-soft: #eefaf2;
  --green-line: #9fd0b3;
  --yellow-soft: #fff8ea;
  --yellow-line: #efc86b;
  --red-soft: #fff1f1;
  --red-line: #ef9d9d;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 0 0 42px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.doc-convencoes *{ box-sizing:border-box; }

.doc-convencoes .hero{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  padding: 44px 20px 36px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 14px 34px rgba(18, 56, 126, .18);
}

.doc-convencoes .hero-inner,
.doc-convencoes .container{
  max-width: 1140px;
  margin: 0 auto;
}

.doc-convencoes .eyebrow{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.24);
  font-size:.9rem;
  font-weight:700;
  margin-bottom:10px;
}

.doc-convencoes .hero h1{
  margin:0 0 10px;
  font-size:2.35rem;
  line-height:1.1;
}

.doc-convencoes .hero-text{
  max-width: 900px;
  margin:0;
  font-size:1.08rem;
  line-height:1.7;
  color: rgba(255,255,255,.94);
}

.doc-convencoes .hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.doc-convencoes .hero-badges span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
  padding:8px 14px;
  border-radius:999px;
  font-weight:600;
}

.doc-convencoes .hero-badges i{ width:16px; height:16px; }

.doc-convencoes .top-nav{
  padding:18px 16px 0;
}

.doc-convencoes .top-nav .container{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.doc-convencoes .top-nav a{
  text-decoration:none;
  color:var(--brand);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 14px;
  font-weight:700;
  box-shadow: var(--shadow);
}

.doc-convencoes .top-nav a:hover{ background:var(--soft); }

.doc-convencoes .section-card{
  margin:22px 16px 0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:28px;
}

.doc-convencoes .section-heading{
  margin-bottom:16px;
}

.doc-convencoes .kicker{
  display:inline-block;
  margin-bottom:8px;
  color:var(--brand);
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.78rem;
}

.doc-convencoes h2{
  margin:0;
  font-size:1.7rem;
  color:var(--brand);
}

.doc-convencoes h3{
  margin:0 0 10px;
  font-size:1.08rem;
  color:var(--brand);
}

.doc-convencoes p{
  margin:0 0 14px;
  line-height:1.75;
  color:var(--text);
}

.doc-convencoes code{
  background:#eef3fb;
  color:#14345b;
  padding:2px 6px;
  border-radius:6px;
  font-size:.92em;
}

.doc-convencoes .grid{
  display:grid;
  gap:18px;
}

.doc-convencoes .grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-convencoes .grid.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.doc-convencoes .info-card,
.doc-convencoes .check-card,
.doc-convencoes .warning-card,
.doc-convencoes .mini-card{
  background:var(--soft-2);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
}

.doc-convencoes .soft-blue{ background: #f3f8ff; }
.doc-convencoes .soft-green{ background: var(--green-soft); border-color: var(--green-line); }
.doc-convencoes .soft-yellow{ background: var(--yellow-soft); border-color: var(--yellow-line); }

.doc-convencoes .warning-card{
  background: var(--yellow-soft);
  border-color: var(--yellow-line);
  margin-top:18px;
}

.doc-convencoes .cards-stack{
  display:grid;
  gap:14px;
  margin-bottom:18px;
}

.doc-convencoes .role-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--soft-2);
  padding:18px;
}

.doc-convencoes .role-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  background:var(--soft);
  border:1px solid #cfe0f9;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.doc-convencoes .role-icon i{
  width:20px;
  height:20px;
  color:var(--brand);
}

.doc-convencoes .bullet-list,
.doc-convencoes .check-list{
  margin:0;
  padding-left:20px;
  line-height:1.7;
  color:var(--text);
}

.doc-convencoes .code-card{
  background:#0f1b2d;
  color:#e8eefb;
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  margin-top:18px;
}

.doc-convencoes .code-label{
  background:#11243f;
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:12px 16px;
  font-size:.9rem;
  font-weight:700;
  color:#bfd7ff;
}

.doc-convencoes .code-card pre{
  margin:0;
  padding:18px;
  overflow:auto;
  line-height:1.6;
  font-size:.94rem;
}

.doc-convencoes .code-card code{
  background:transparent;
  color:inherit;
  padding:0;
}

.doc-convencoes .mini-card h3{
  font-size:1rem;
}

.doc-convencoes .check-card.success{
  background: var(--green-soft);
  border-color: var(--green-line);
}

.doc-convencoes .check-card.danger{
  background: var(--red-soft);
  border-color: var(--red-line);
}

@media (max-width: 980px){
  .doc-convencoes .grid.two,
  .doc-convencoes .grid.three{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .doc-convencoes .hero h1{
    font-size:1.9rem;
  }

  .doc-convencoes .section-card{
    padding:22px;
  }

  .doc-convencoes .role-card{
    flex-direction:column;
  }
}
