/**
 * BP Docs - Frontend Styles
 *
 * Responsive grid layout for docs display
 */

/* =============================================
   Grid Layout
   ============================================= */
.bp-docs-grid {
    display: grid;
    grid-template-columns: repeat(var(--bp-docs-columns, 3), 1fr);
    gap: 24px;
    padding: 10px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablet: 2 columns */
@media (max-width: 768px) {
    .bp-docs-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0px 20px 50px;
        gap: 16px;
    }
}

/* Mobile: 1 column */
@media (max-width: 480px) {
    .bp-docs-grid {
        grid-template-columns: 1fr;
        padding: 0px 20px;
        gap: 14px;
    }
}

/* =============================================
   Docs Card
   ============================================= */
.bp-docs-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bp-docs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.08);
}

/* =============================================
   Card Image
   ============================================= */
.bp-docs-card__link {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.bp-docs-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 141.4%;
    /* ~A4 ratio (1:1.414) */
    overflow: hidden;
    background: #f0f2f5;
}

.bp-docs-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bp-docs-card:hover .bp-docs-card__image {
    transform: scale(1.04);
}

/* Placeholder when no image */
.bp-docs-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #b0b8c4;
    font-size: 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

/* =============================================
   Card Info
   ============================================= */
.bp-docs-card__info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Title */
.bp-docs-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-docs-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bp-docs-card:hover .bp-docs-card__title a {
    color: #007D3D;
}

/* Download Count */
.bp-docs-card__downloads {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-top: auto;
}

.bp-docs-card__downloads-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Download Button */
.bp-docs-card__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #007D3D, #00a550);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}

.bp-docs-card__download:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

.bp-docs-card__download svg {
    flex-shrink: 0;
}

/* =============================================
   Empty State
   ============================================= */
.bp-docs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.navigation.pagination{
    justify-content: center;
    margin-bottom: 30px;
    .nav-links{
        display: flex;
        gap: 20px;
    }
}

