/* Publications Manager Pro - Frontend */

/* Container */
.pmp-archive { max-width: 1280px; margin: 0 auto; padding: 40px 20px; }
.pmp-single { max-width: 800px; margin: 0 auto; padding: 40px 20px; }

.pmp-filters {
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; margin-bottom: 32px;
    padding: 20px; background: #dac791; border-radius: 12px;
}
.pmp-filters input[type="text"],
.pmp-filters select {
    padding: 10px 16px; border: 1px solid #c4b07a;
    border-radius: 8px; font-size: 15px;
    background: #fff; color: #214E6B; transition: border-color .2s;
}
.pmp-filters input[type="text"]:focus,
.pmp-filters select:focus { border-color: #214E6B; outline: none; }
.pmp-filters button {
    padding: 10px 24px; background: #214E6B; color: #fff;
    border: none; border-radius: 8px; font-size: 15px;
    cursor: pointer; transition: background .2s;
}
.pmp-filters button:hover { background: #183a50; }

.pmp-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.pmp-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.pmp-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.pmp-card {
    background: #dac791; border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.pmp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.pmp-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.pmp-card__image { aspect-ratio: 16/9; overflow: hidden; background: #c4b07a; }
.pmp-card__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s ease;
}
.pmp-card:hover .pmp-card__image img { transform: scale(1.05); }
.pmp-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.pmp-card__title {
    font-size: 1.2em; font-weight: 700; margin: 0 0 8px;
    line-height: 1.3; color: #214E6B;
}
.pmp-card__date { font-size: .85em; color: #214E6B; opacity: .7; margin-bottom: 10px; }
.pmp-card__summary {
    font-size: .95em; color: #214E6B; line-height: 1.6;
    flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Single */
.pmp-single__header { margin-bottom: 32px; }
.pmp-single__title { font-size: 2.2em; font-weight: normal; line-height: 1.2; margin: 0 0 16px; color: #214E6B; }
.pmp-single__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9em; color: #214E6B; opacity: .75; margin-bottom: 24px; }
.pmp-single__image { width: 100%; border-radius: 12px; margin-bottom: 32px; }
.pmp-single__content { font-size: 1.1em; line-height: 1.8; color: #214E6B; }
.pmp-single__content p { margin-bottom: 1.4em; }
.pmp-single__content h2 { font-size: 1.5em; font-weight: 700; margin: 2em 0 .8em; color: #214E6B; }
.pmp-single__content h3 { font-size: 1.25em; font-weight: 600; margin: 1.5em 0 .6em; color: #214E6B; }
.pmp-single__tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid #c4b07a; display: flex; flex-wrap: wrap; gap: 8px; }
.pmp-single__tag {
    display: inline-block; padding: 6px 14px;
    background: #dac791; border-radius: 20px;
    font-size: .85em; color: #214E6B; text-decoration: none;
    transition: background .2s;
}
.pmp-single__tag:hover { background: #c4b07a; }

/* Pagination */
.pmp-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 6px; }
.pmp-pagination a, .pmp-pagination span {
    padding: 8px 14px; border-radius: 8px; font-size: .95em;
    text-decoration: none; border: 1px solid #c4b07a; color: #214E6B;
}
.pmp-pagination .current { background: #214E6B; color: #fff; border-color: #214E6B; }
.pmp-pagination a:hover { background: #dac791; }

@media (max-width: 600px) {
    .pmp-grid { grid-template-columns: 1fr; }
    .pmp-single__title { font-size: 1.6em; }
    .pmp-filters { flex-direction: column; }
}

/* Bottom padding */
.pmp-archive { padding-bottom: 120px !important; }
.pmp-single { padding-bottom: 120px; }

/* Previous / Next / Overview navigation */
.pmp-post-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid #c4b07a;
}
.pmp-post-nav a {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: #214E6B; font-weight: 600;
    font-size: .95em; padding: 10px 18px;
    background: #dac791; border-radius: 8px;
    transition: background .2s;
}
.pmp-post-nav a:hover { background: #c4b07a; }
.pmp-post-nav__prev::before { content: '\2190'; }
.pmp-post-nav__next::after { content: '\2192'; }
.pmp-post-nav__placeholder { width: 1px; }
