/* ========== Author Meta ========== */

/* Loader container */
.pcf-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Rotating Circle Spinner */
.pcf-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pcf-pagination.hidden {
    display: none;
}

.pcf-author-meta {
    display: flex;
    align-items: center;
    margin-top: 12px;
    gap: 15px;
    padding:0 12px 12px 12px;
}

.pcf-author-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.4;
}

.pcf-author-name {
    font-weight: 600;
    color: #fff;
}

.pcf-post-date {
    font-size: 12px;
    color: #ccc;
}

.pcf-pagination{
    margin-top: 50px;
    text-align: center;
}

/* ========== Post Card ========== */
/* Masonry container */
.pcf-posts {
display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Masonry item */
.pcf-post {
    display: inline-block;
    background: #121314;
    border-radius: 9px;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: background 0.4s ease, transform 0.3s ease;
    break-inside: avoid;
        width: calc(33.33% - 10px);
}

.pcf-post:hover {
    transform: translateY(-4px);
}

.pcf-post img {
    width: 100%;
    display: block;
    border-radius: 6px;
    transition: transform 0.4s ease-in-out;
    object-fit: cover;
}

.pcf-post-thumbnail{
    height: 190px!important;
}

.pcf-avatar {
    width: 40px!important;
    height: 40px!important;
    border-radius: 50%!important;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff3;
}

.pcf-post:hover img {
    transform: scale(1.05);
}

.pcf-post-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 5px 0;
    text-align: left;
    padding:15px 12px 0 12px;
    min-height:41px;
}/* ========== Slider ========== */
.pcf-filter-slider {
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px 0;
    margin-bottom: 20px;
}

.pcf-filter-slider::-webkit-scrollbar {
    height: 2px;
}

.pcf-filter-slider::-webkit-scrollbar-track {
    border-radius: 22px;
}

.pcf-filter-slider::-webkit-scrollbar-thumb {
    border-radius: 22px;
}

body.site-dark .pcf-filter-slider::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #121314;
}

body.site-dark .pcf-filter-slider::-webkit-scrollbar-thumb {
    background-color:#fff;
}

body.site-light .pcf-filter-slider::-webkit-scrollbar-track {
    background-color: #fff;
}

body.site-light .pcf-filter-slider::-webkit-scrollbar-thumb {
    background-color: #121314;
}

.pcf-filter-inner { 
    display: inline-flex; 
    gap: 10px; 
}

.pcf-cat {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    background:
        linear-gradient(#111827,#111827) padding-box,
        linear-gradient(135deg,#41f5ff,#f336ff) border-box;
    border: 2px solid transparent;
    box-shadow: 0 0 12px rgba(115, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

/* glowing diagonal highlight */
.pcf-cat::before {
    content: "";
    position: absolute;
    top: 12%;
    left: 14%;
    width: 26%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
    opacity: 0.8;
}

/* second small highlight */
.pcf-cat::after {
    content: "";
    position: absolute;
    top: 26%;
    left: 22%;
    width: 16%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
    opacity: 0.8;
}

.pcf-cat:hover,
.pcf-cat.active {
    box-shadow: 0 0 18px rgba(115, 255, 255, 0.7);
    transform: translateY(-1px);
}\n\n/* ========== Pagination ========== */
.pcf-pagination {
    margin-top: 50px;
    text-align: center;
}
.pcf-pagination .pcf-page {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    text-align: center;
    background-color: #6778E3!important;
    color: #FFF!important;
    font-size: 16px;
    font-weight: 700;
    clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0% 50%);
    padding: 20px 30px;
    border-radius: 0px;
    transition: 0.2s;
    margin: 0 4px;
}

/* ========== Skeleton Loader ========== */
.pcf-skeletons {
    column-count: 3;
    column-gap: 15px;
    width: 100%;
}

.pcf-skeleton.post {
    display: inline-block;
    width: 100%;
    margin: 0 0 15px;
    height: 200px;
    background-position:center;
    background-repeat:no-repeat;
    border-radius: 8px;
    animation: pulse 1.5s infinite ease-in-out;
}

body.site-light .pcf-skeleton.post {
    background:rgb(50 55 56);
}

body.site-dark .pcf-skeleton.post{
    background:rgb(255 255 255)
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}\n\n#pcf-show-more{
    display:none;
}

@media (max-width:1023px){
    #pcf-show-more{
        display:block;
        justify-self: center;
    }
    .pcf-posts,
    .pcf-skeletons {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .pcf-posts,
    .pcf-skeletons {
        column-count: 1;
    }
    
    .pcf-post{
       width:100%
    }

    .pcf-pagination .pcf-page{
        height:35px!important;
        padding:2px 10px;
        clip-path:border-box;
    }

    .pcf-cat{
        min-width:unset;
        padding: 10px 22px;
        font-size: 13px;
    }
}