/* Post Grid with Date Badge – public styles */

.pgdb-grid {
    display: grid;
    gap: 24px;
    margin: 1.5rem 0;
}
.pgdb-cols-1 { grid-template-columns: 1fr; }
.pgdb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pgdb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pgdb-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .pgdb-cols-3,
    .pgdb-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pgdb-grid { grid-template-columns: 1fr !important; }
}

/* Card */
.pgdb-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease;
}
.pgdb-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
}

/* Thumbnail */
.pgdb-thumb {
    position: relative;
    overflow: hidden;
}
.pgdb-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.pgdb-card:hover .pgdb-thumb img {
    transform: scale(1.04);
}
.pgdb-no-thumb {
    display: block;
    width: 100%;
    height: 220px;
    background: #f0f0f0;
}

/* Date badge */
.pgdb-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #B22222;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    text-align: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.pgdb-day {
    font-size: 20px;
    font-weight: 700;
    display: block;
}
.pgdb-month {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: block;
}

/* Body */
.pgdb-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pgdb-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 8px;
}
.pgdb-title a {
    color: #1a8fa0;
    text-decoration: none;
}
.pgdb-title a:hover { text-decoration: underline; }

.pgdb-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
}

/* Button */
.pgdb-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #2ab8a0;
    color: #fff;
    border-radius: 24px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s;
}
.pgdb-btn:hover { background: #1f9c87; color: #fff; }
.pgdb-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Load More Button ── */
.pgdb-loadmore-wrap {
    text-align: center;
    margin: 32px 0 8px;
}
.pgdb-loadmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2ab8a0;
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
    letter-spacing: .03em;
}
.pgdb-loadmore-btn:hover:not(:disabled) {
    filter: brightness(0.9);
    transform: translateY(-1px);
}
.pgdb-loadmore-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}
.pgdb-loadmore-spinner {
    display: inline-flex;
    align-items: center;
}
.pgdb-spin {
    width: 18px;
    height: 18px;
    animation: pgdb-rotate 0.8s linear infinite;
}
@keyframes pgdb-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Post Type Badge ── */
.pgdb-post-type-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── New card entrance animation ── */
.pgdb-card-new {
    animation: pgdb-fadein 0.4s ease both;
}
@keyframes pgdb-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
