/* ==========================================================
   WooCommerce Publication Manager
   Modern Publication Grid
========================================================== */

.wcpm-publications{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:18px;
    margin:30px 0;
}

.wcpm-publication-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;

    background:#fff;
    text-decoration:none;
    text-align:center;

    padding:20px 15px;

    border-radius:16px;
    border:1px solid #ececec;

    box-shadow:0 4px 14px rgba(0,0,0,.06);

    transition:all .3s ease;

    min-height:220px;
}

.wcpm-publication-card:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 35px rgba(0,0,0,.12);

    border-color:#d8d8d8;

}

.wcpm-publication-image{

    margin-bottom:16px;

}

.wcpm-publication-image img{

    width:75px;
    height:75px;

    object-fit:contain;

    border-radius:50%;

    background:#fff;

    border:5px solid #f3f3f3;

    padding:8px;

}

.wcpm-publication-placeholder{

    width:75px;
    height:75px;

    border-radius:50%;

    background:#f5f5f5;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:34px;

}

.wcpm-publication-title{

    color:#222;

    font-size:16px;

    font-weight:600;

    line-height:1.4;

    margin:0 0 12px;

    word-break:break-word;

}

.wcpm-count{

    display:inline-block;

    background:#eef5ff;

    color:#0057d8;

    padding:6px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

    margin-bottom:12px;

}

.wcpm-description{

    margin:0;

    font-size:13px;

    color:#777;

    line-height:1.5;

}

/* ==========================
   Tablet
========================== */

@media (max-width:768px){

    .wcpm-publications{

        grid-template-columns:repeat(3,1fr);

        gap:14px;

    }

}

/* ==========================
   Mobile
========================== */

@media (max-width:576px){

    .wcpm-publications{

        grid-template-columns:repeat(2,1fr);

        gap:12px;

    }

    .wcpm-publication-card{

        padding:16px 12px;

        min-height:190px;

    }

    .wcpm-publication-image img,
    .wcpm-publication-placeholder{

        width:60px;

        height:60px;

    }

    .wcpm-publication-title{

        font-size:14px;

    }

    .wcpm-count{

        font-size:12px;

        padding:5px 12px;

    }

    .wcpm-description{

        font-size:12px;

    }

}