/* ===== ShieldPress Docs PRO Layout ===== */
html{
  scroll-behavior:smooth;
}
/* ===== HERO ===== */

.spdocs-hero{
background:linear-gradient(135deg,#0f172a,#020617);
color:white;
text-align:center;
padding:90px 20px;
}

.spdocs-hero h1{
font-size:44px;
font-weight:700;
margin-bottom:12px;
letter-spacing:-0.5px;
}

.spdocs-hero p{
opacity:.85;
font-size:18px;
}

.spdocs-hero input{
margin-top:24px;
padding:14px 18px;
border-radius:12px;
border:none;
width:420px;
max-width:92%;
font-size:15px;
}

/* ===========================
   DOCS LAYOUT
=========================== */

.spdocs-wrap{
  max-width:1250px;
  margin:60px auto;
  padding:0 20px;
  display:flex;
  gap:24px;

  /* IMPORTANT for sticky */
  align-items:stretch;
}

/* ===========================
   LEFT SIDEBAR (STICKY)
=========================== */

.spdocs-sidebar{
  width:240px;
  flex-shrink:0;
  position:relative;
}

.spdocs-sidebar .docs-sidebar{
  background:#fff;
  padding:22px;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.08);

  /* STICKY */
  position:sticky;
  top:20px;

  /* scroll if long */
  max-height:calc(100vh - 40px);
  overflow-y:auto;
}

/* Sidebar links */
.spdocs-sidebar a{
  display:block;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  color:#334155;
  font-weight:500;
  margin-bottom:6px;
  transition:all .2s ease;
}

/* Hover (premium but safe) */
.spdocs-sidebar a:hover{
  background:#f1f5f9;
  color:#0f172a;
  transform:translateX(3px);
}

/* Active */
.spdocs-sidebar a.active{
  background:#eff6ff;
  color:#2563eb;
  font-weight:600;
  border-left:3px solid #2563eb;
}

/* ===========================
   MAIN CONTENT
=========================== */

.spdocs-content{
  flex:1;
  min-width:0;

  /* FIX for sticky on small pages */
  min-height:calc(100vh - 120px);
}

/* Header */
.spdocs-header{
  margin-bottom:25px;
}

.spdocs-header h1{
  font-size:30px;
  margin:10px 0;
}

.spdocs-header p{
  color:#64748b;
  max-width:700px;
}

/* Article card */
.spdocs-article{
  background:#fff;
  padding:28px;
  border-radius:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.08);
  min-height:500px;
}

/* Typography */
.spdocs-content h1{
  font-size:34px;
  margin-bottom:14px;
}

.spdocs-content h2{
  margin-top:34px;
  margin-bottom:10px;
  font-size:22px;
}

.spdocs-content p{
  color:#475569;
  line-height:1.75;
}

/* ===========================
   BREADCRUMB
=========================== */

.spdocs-breadcrumb{
  font-size:13px;
  color:#94a3b8;
  margin-bottom:15px;
}

.spdocs-breadcrumb a{
  color:#2563eb;
  text-decoration:none;
}

.spdocs-breadcrumb span{
  margin:0 6px;
}

/* ===========================
   RIGHT TOC (STICKY)
=========================== */

.spdocs-toc{
  width:240px;
  flex-shrink:0;
  position:relative;
}

.spdocs-toc .docs-toc{
  background:#fff;
  padding:22px;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.08);

  /* STICKY */
  position:sticky;
  top:20px;

  /* scroll */
  max-height:calc(100vh - 40px);
  overflow-y:auto;
}

/* Hide empty TOC */
.spdocs-toc:empty{
  display:none;
}

/* ===========================
   TOC LIST CLEANUP
=========================== */

.spdocs-toc ul{
  list-style:none;       /* remove dots */
  padding-left:0;        /* remove indent */
  margin:0;
}

.spdocs-toc li{
  margin:6px 0;
}

/* TOC links */
.spdocs-toc a{
  display:block;
  font-size:14px;
  color:#475569;
  text-decoration:none;
  padding:6px 8px;
  border-radius:6px;
  transition:all .2s ease;
}

/* Hover */
.spdocs-toc a:hover{
  background:#f1f5f9;
  color:#0f172a;
}

.spdocs-toc a.active{
  background:#eff6ff;
  color:#2563eb;
  font-weight:600;
  border-left:3px solid #2563eb;
}
.spdocs-toc li li a{
  padding-left:16px;
  font-size:13px;
}

.spdocs-toc a.active::before{
  content:'';
  position:absolute;
  left:-10px;
  top:6px;
  width:4px;
  height:14px;
  background:#2563eb;
  border-radius:2px;
}

/* ===========================
   FIX DOUBLE HEADING
=========================== */

body.docs-home .spdocs-article h1:first-child{
  display:none;
}

/* ===========================
   SCROLLBAR (PREMIUM TOUCH)
=========================== */

.spdocs-sidebar .docs-sidebar::-webkit-scrollbar,
.spdocs-toc .docs-toc::-webkit-scrollbar{
  width:6px;
}

.spdocs-sidebar .docs-sidebar::-webkit-scrollbar-thumb,
.spdocs-toc .docs-toc::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:10px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1100px){

  .spdocs-wrap{
    flex-direction:column;
  }

  .spdocs-sidebar,
  .spdocs-toc{
    width:100%;
  }

  .spdocs-sidebar .docs-sidebar,
  .spdocs-toc .docs-toc{
    position:relative;
    max-height:none;
    overflow:visible;
  }
}

/* ===== Screenshot ===== */

.doc-shot{
height:auto;
background:linear-gradient(135deg,#e2e8f0,#f1f5f9);
border-radius:16px;
margin:26px 0;
display:flex;
align-items:center;
justify-content:center;
color:#64748b;
font-weight:600;
}

/* ===== Feedback ===== */

.docs-feedback{
margin-top:60px;
padding:26px;
background:#f1f5f9;
border-radius:16px;
text-align:center;
}

.docs-feedback button{
margin:6px;
padding:10px 18px;
border:none;
border-radius:10px;
background:#2563eb;
color:white;
font-weight:600;
cursor:pointer;
}

/* ===== DOC UI BLOCKS ===== */

.doc-note{
background:#eff6ff;
border-left:4px solid #2563eb;
padding:14px 16px;
border-radius:10px;
margin:16px 0;
}

.doc-tip{
background:#ecfdf5;
border-left:4px solid #10b981;
padding:14px 16px;
border-radius:10px;
margin:16px 0;
}

.doc-warning{
background:#fef2f2;
border-left:4px solid #ef4444;
padding:14px 16px;
border-radius:10px;
margin:16px 0;
}

.doc-example{
background:#fff7ed;
border-left:4px solid #f97316;
padding:14px 16px;
border-radius:10px;
margin:16px 0;
}

.doc-cta{
margin-top:50px;
padding:26px;
background:#f1f5f9;
border-radius:16px;
text-align:center;
}

/* ===== TROUBLESHOOTING ===== */
.doc-troubleshoot{
background:#fff7ed;
border-left:4px solid #f97316;
padding:16px;
border-radius:10px;
margin:20px 0;
}

/* ===== FAQ ===== */
.doc-faq{
margin-top:40px;
}

.doc-faq-item{
border-bottom:1px solid #e5e7eb;
padding:12px 0;
}

.doc-faq-item h4{
font-size:16px;
margin-bottom:6px;
}

.doc-faq-item p{
font-size:14px;
color:#475569;
}

/* ===== DOC IMAGES ===== */

.doc-image{
margin:24px 0;
text-align:center;
}

.doc-image img{
max-width:100%;
border-radius:14px;
box-shadow:0 20px 60px rgba(0,0,0,.08);
border:1px solid #e5e7eb;
}

.doc-caption{
margin-top:10px;
font-size:14px;
color:#64748b;
}

/* ===== ENTERPRISE DOC STYLE ===== */

.sp-card{
  background:#fff;
  padding:28px;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.08);
}

.sp-title{
  font-size:22px;
  margin-bottom:10px;
}

.sp-subtitle{
  margin-top:24px;
  font-size:18px;
}

.sp-text{
  color:#475569;
  line-height:1.7;
}

.sp-divider{
  margin:24px 0;
  border:none;
  border-top:1px solid #e5e7eb;
}

/* TABLE */
.sp-table-wrap{
  overflow:auto;
}

.sp-table{
  width:100%;
}

.sp-table th{
  background:#f8fafc;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.4px;
}

/* BADGES */
.sp-badge{
  padding:4px 10px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
}

.sp-danger{background:#fee2e2;color:#b91c1c;}
.sp-warning{background:#fef3c7;color:#92400e;}
.sp-success{background:#dcfce7;color:#166534;}
.sp-info{background:#dbeafe;color:#1d4ed8;}

/* INFO BOXES */
.sp-note{
  background:#eff6ff;
  border-left:4px solid #2563eb;
  padding:14px;
  border-radius:10px;
}

.sp-warning{
  background:#fef2f2;
  border-left:4px solid #ef4444;
  padding:6px;
  border-radius:10px;
}

/* ===== MOBILE ===== */

@media (max-width:1100px){

.spdocs-wrap{
flex-direction:column;
}

.spdocs-sidebar,
.spdocs-toc{
width:100%;
}

.spdocs-sidebar .docs-sidebar,
.spdocs-toc .docs-toc{
position:relative;
top:0;
}

}