/* ==========================================================================
   DBOOK WORDPRESS PLUGIN DOCUMENTATION STYLES
   ========================================================================== */

.doc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.doc-sidebar-sticky {
    position: sticky;
    top: 96px;
    z-index: 10;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.doc-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.doc-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.doc-nav-link:hover {
    color: #0d6efd;
    background-color: #f1f5f9;
}

.doc-nav-link.active {
    color: #0d6efd;
    background-color: #eff6ff;
    border-color: #bfdbfe;
    font-weight: 600;
}

/* Mobile Scrollable Pill Bar */
.doc-mobile-toc-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.8rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.doc-mobile-toc-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.doc-mobile-toc-scroll::-webkit-scrollbar {
    display: none;
}

.doc-mobile-pill {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #475569;
    font-size: 0.825rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-mobile-pill.active,
.doc-mobile-pill:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* Doc Content Cards */
.doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
    margin-bottom: 2rem;
    transition: box-shadow 0.2s ease;
}

.doc-card:hover {
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.doc-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.doc-card-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

.doc-screenshot-frame {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.75rem;
    overflow: hidden;
    margin: 1.25rem 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.doc-screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    display: block;
}

.doc-code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.doc-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.doc-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
}

.doc-feature-pill i {
    color: #16a34a;
}

/* Nav dropdown hover rule on desktop */
@media (min-width: 768px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

