/* ============================================================
   VPJoomla docs catalog — subcategory cards
   Used on category-blog pages that contain only subcategories,
   e.g. /docs/extensions-docs.

   Style matches .vp-extension-card from product catalog: same
   border-radius, hover lift, color tokens.
   ============================================================ */

.vp-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 880px) {
    .vp-docs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.vp-docs-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 22px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vp-docs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    border-color: #cbd5e1;
}

@media (max-width: 560px) {
    .vp-docs-card {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 20px;
    }
}

/* ---------- Icon ---------- */

.vp-docs-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.vp-docs-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    box-sizing: border-box;
}

.vp-docs-card-icon-fallback {
    font-size: 28px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -0.02em;
}

@media (max-width: 560px) {
    .vp-docs-card-icon {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }

    .vp-docs-card-icon img {
        padding: 10px;
    }

    .vp-docs-card-icon-fallback {
        font-size: 22px;
    }
}

/* ---------- Body ---------- */

.vp-docs-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vp-docs-card-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.vp-docs-card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.015em;
}

.vp-docs-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.vp-docs-card-title a:hover {
    color: #2563eb;
}

.vp-docs-card-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

.vp-docs-card-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #475569;
}

/* ---------- Footer ---------- */

.vp-docs-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.vp-docs-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: gap .18s ease;
}

.vp-docs-card-cta:hover {
    color: #1d4ed8;
    text-decoration: none;
    gap: 10px;
}

.vp-docs-card-cta-arrow {
    transition: transform .18s ease;
}

.vp-docs-card:hover .vp-docs-card-cta-arrow {
    transform: translateX(2px);
}

/* ---------- Page-level adjustments when this is a directory page ---------- */

.vp-catalog-page-directory .vp-catalog-description {
    max-width: 720px;
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
}

.vp-badge-pro {
    display: inline-block;
    background: linear-gradient(180deg, #1d4ed8, #2563eb);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 6px;
}

/* Lead paragraph — slightly larger and lighter for the first paragraph */
.vp-lead {
    font-size: 1.1em;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.5em;
}

/* Documentation figures — image + caption */
.com-content-article figure {
    margin: 1.5em 0;
}
.com-content-article figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.com-content-article figure figcaption {
    font-size: 0.875em;
    color: #64748b;
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
}