/* =============================================
   WAIDESK — DOC PAGES STYLES
   ============================================= */

.doc-page {
  min-height: 100vh;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
}

/* ---- Doc nav ---- */
.doc-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 158, 240, 0.1);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.doc-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.doc-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.doc-nav__logo img { width: 36px; height: 36px; object-fit: contain; }

.doc-nav__logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.doc-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.doc-nav__back:hover {
  color: var(--blue-primary);
  background: var(--blue-light);
}

/* ---- Doc main ---- */
.doc-main {
  flex: 1;
  padding: 56px 0 80px;
}

.doc-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 158, 240, 0.08);
  overflow: hidden;
}

/* ---- Doc header band ---- */
.doc-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.doc-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(26,158,240,0.18) 0%, transparent 70%);
}

.doc-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-primary);
  background: rgba(26,158,240,0.15);
  border: 1px solid rgba(26,158,240,0.25);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.doc-header__title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
}

.doc-header__meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  position: relative;
}

/* ---- Doc article ---- */
.doc-content {
  padding: 40px 48px 48px;
}

.doc-content h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.doc-content h2:first-child { margin-top: 0; }

.doc-content p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 14px;
}

.doc-content ul {
  list-style: none;
  margin: 8px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.doc-content ul li {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
}

.doc-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--blue-primary);
  border-radius: 50%;
}

.doc-content strong { color: var(--dark); font-weight: 600; }

/* Hide the h1 and doc-meta inside doc-content (shown in header band) */
.doc-content > h1,
.doc-content > p.doc-meta { display: none; }

/* ---- Doc footer ---- */
.doc-footer {
  background: var(--dark);
  padding: 28px 0;
}

.doc-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.doc-footer__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.doc-footer__brand img {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.35;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .doc-main { padding: 32px 0 60px; }
  .doc-header { padding: 28px 28px; }
  .doc-content { padding: 28px 28px 36px; }
}

@media (max-width: 480px) {
  .doc-main { padding: 0 0 48px; }
  .doc-wrapper { border-radius: 0; box-shadow: none; border: none; }
  .doc-header { padding: 24px 20px; }
  .doc-content { padding: 24px 20px 32px; }
  .doc-footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}
