/* ============================================================
   Press Releases Plugin — Frontend Stylesheet v2.0.0
   Theme: Dark Green (#0F6E56)
============================================================ */

/* Box sizing reset */
.pr-plugin-wrap *,
.pr-plugin-wrap *::before,
.pr-plugin-wrap *::after {
    box-sizing: border-box;
}

.pr-plugin-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.75rem 0;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ── Masthead ────────────────────────────────────────── */
.pr-plugin-masthead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1.5px solid #e4e4e4;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.pr-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0F6E56;
    margin: 0 0 6px;
}

.pr-heading {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.2;
}

.pr-sub {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ── Controls ────────────────────────────────────────── */
.pr-plugin-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pr-search-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d4d4d4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}

.pr-search-wrap:focus-within {
    border-color: #0F6E56;
    box-shadow: 0 0 0 3px rgba(15,110,86,.12);
}

.pr-search-wrap input[type="text"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    font-size: 13px;
    color: #111;
    padding: 9px 12px;
    width: 200px;
    margin: 0;
}

.pr-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border: none;
    border-left: 1.5px solid #d4d4d4;
    background: #0F6E56;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.pr-search-btn:hover  { background: #085041; }
.pr-search-btn:active { background: #04342C; }
.pr-search-btn svg    { width: 14px; height: 14px; flex-shrink: 0; }

.pr-sort-tabs {
    display: flex;
    gap: 6px;
}

.pr-stab {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid #d4d4d4;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all .15s;
}

.pr-stab:hover       { border-color: #0F6E56; color: #0F6E56; }
.pr-stab.pr-stab-on  { background: #E1F5EE; color: #0F6E56; border-color: #5DCAA5; font-weight: 600; }

/* ── List ────────────────────────────────────────────── */
.pr-plugin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Item card ───────────────────────────────────────── */
.pr-plugin-item {
    display: grid;
    grid-template-columns: 104px 1fr auto;
    gap: 0 18px;
    align-items: flex-start;
    background: #fff;
    border: 1.5px solid #ebebeb;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    color: inherit;
}

.pr-plugin-item:hover {
    border-color: #5DCAA5;
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(15,110,86,.08);
}

/* ── Thumbnail ───────────────────────────────────────── */
.pr-thumb-wrap { flex-shrink: 0; }

.pr-thumb {
    width: 104px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.pr-thumb-placeholder {
    width: 104px;
    height: 78px;
    border-radius: 10px;
    background: #E1F5EE;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-thumb-placeholder svg { width: 40px; height: 40px; }

/* ── Item body ───────────────────────────────────────── */
.pr-item-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding-top: 2px;
}

.pr-item-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pr-date-text {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.pr-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pr-tag-pr  { background: #E1F5EE; color: #0F6E56; }
.pr-tag-pdf { background: #FAECE7; color: #993C1D; }
.pr-tag-doc { background: #EAF3DE; color: #3B6D11; }
.pr-tag-xls { background: #FAEEDA; color: #BA7517; }

.pr-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
}

.pr-title-link {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.pr-title-link:hover { color: #0F6E56; }

.pr-item-excerpt {
    font-size: 12.5px;
    color: #666;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.pr-item-size {
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
}

/* ── Actions ─────────────────────────────────────────── */
.pr-item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 2px;
    flex-shrink: 0;
}

.pr-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #d4d4d4;
    background: #fff;
    color: #666;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}

.pr-dl-btn svg { width: 18px; height: 18px; }
.pr-dl-btn:hover {
    background: #E1F5EE;
    color: #0F6E56;
    border-color: #5DCAA5;
}

.pr-new-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 100px;
    background: #0F6E56;
    color: #fff;
    letter-spacing: .07em;
    white-space: nowrap;
}

/* ── No results ──────────────────────────────────────── */
.pr-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 3rem 0;
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

.pr-no-results svg { width: 48px; height: 48px; }
.pr-no-results p   { margin: 0; }

/* ── Footer ──────────────────────────────────────────── */
.pr-plugin-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.pr-showing {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

.pr-clear {
    font-size: 12px;
    font-weight: 600;
    color: #0F6E56;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .15s;
}

.pr-clear:hover { text-decoration-color: #0F6E56; }

/* ── Empty state ─────────────────────────────────────── */
.pr-empty {
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 2.5rem 0;
}

/* ── Utilities ───────────────────────────────────────── */
.pr-hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
    .pr-plugin-item {
        grid-template-columns: 80px 1fr auto;
        gap: 0 12px;
        padding: 12px;
    }
    .pr-thumb, .pr-thumb-placeholder { width: 80px; height: 60px; }
    .pr-thumb-placeholder svg        { width: 30px; height: 30px; }
    .pr-search-wrap input[type="text"] { width: 140px; }
    .pr-plugin-masthead { flex-direction: column; align-items: flex-start; }
    .pr-item-name { font-size: 13.5px; }
    .pr-heading   { font-size: 20px; }
}

@media (max-width: 420px) {
    .pr-plugin-item { grid-template-columns: 1fr auto; }
    .pr-thumb-wrap  { display: none; }
}

/* ── Clickable card state ────────────────────────── */
.pr-item-clickable {
    cursor: pointer;
}

.pr-item-clickable:hover {
    border-color: #5DCAA5;
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(15,110,86,.1);
}

.pr-item-clickable:hover .pr-item-name,
.pr-item-clickable:hover .pr-title-link {
    color: #0F6E56;
}

.pr-item-clickable:focus {
    outline: 3px solid rgba(15,110,86,.35);
    outline-offset: 2px;
}

.pr-item-clickable:active {
    transform: translateX(2px) scale(0.995);
    box-shadow: 0 2px 10px rgba(15,110,86,.08);
}

/* Prevent double-cursor on nested links/buttons inside clickable card */
.pr-item-clickable .pr-dl-btn,
.pr-item-clickable .pr-title-link {
    position: relative;
    z-index: 2;
}

/* Click ripple hint on the card arrow */
.pr-item-clickable .pr-item-name::after {
    content: " ↗";
    font-size: 11px;
    color: #5DCAA5;
    opacity: 0;
    transition: opacity .15s;
}

.pr-item-clickable:hover .pr-item-name::after {
    opacity: 1;
}
