/* =============================================
   Climate Role Widget v7
   ============================================= */
.crw-widget-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── SEARCH BAR ── */
.crw-search-wrap { margin-bottom: 20px; }
.crw-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #c5d5cd;
    border-radius: 100px;
    padding: 6px 6px 6px 18px;
    gap: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.crw-search-box:focus-within {
    border-color: #1e5c42;
    box-shadow: 0 0 0 3px rgba(30,92,66,0.10);
}
.crw-search-icon { color: #6b8c7e; flex-shrink: 0; opacity: 0.75; }
.crw-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #1a2e25;
    padding: 6px 0;
    min-width: 0;
}
.crw-search-input::placeholder { color: #9ab8ad; }
.crw-search-btn {
    padding: 9px 22px;
    border-radius: 100px;
    border: none;
    background: #1e5c42;
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.crw-search-btn:hover { background: #155233; }

/* ── TABS ── */
.crw-tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.crw-tab-btn {
    padding: 7px 18px;
    border-radius: 100px;
    border: 1.5px solid #c5d5cd;
    background: transparent;
    color: #4a6b5e;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}
.crw-tab-btn:hover { background: #e2ede8; border-color: #2d7a5e; color: #1a4a38; }
.crw-tab-btn.active { background: #1e5c42; border-color: #1e5c42; color: #fff; }

/* ── POSTS LIST ── */
.crw-posts-list { display: flex; flex-direction: column; gap: 12px; min-height: 80px; }

/* ── LOADER ── */
.crw-loader { display: flex; justify-content: center; padding: 40px 0; }
.crw-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2ede8;
    border-top-color: #1e5c42;
    border-radius: 50%;
    animation: crwSpin 0.7s linear infinite;
}
@keyframes crwSpin { to { transform: rotate(360deg); } }

/* ── CARD ── */
.crw-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1.5px solid transparent;
    transition: border-color 0.2s, box-shadow 0.22s, transform 0.18s;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    animation: crwFade 0.22s ease both;
}
.crw-card:hover {
    border-color: #1e5c42;
    box-shadow: 0 4px 20px rgba(30,92,66,0.12);
    transform: translateY(-1px);
    text-decoration: none !important;
}
@keyframes crwFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.crw-card-left { flex: 1; min-width: 0; }
.crw-post-title { font-size: 16px; font-weight: 600; color: #1a2e25; margin-bottom: 7px; line-height: 1.35; }
.crw-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.crw-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #6b8c7e; }
.crw-meta-item svg { opacity: .75; flex-shrink: 0; }
.crw-card-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

/* ── TAGS ── */
.crw-tag {
    padding: 5px 13px; border-radius: 100px;
    font-size: 12.5px; font-weight: 500;
    background: #e8f2ee; color: #2d7a5e;
    border: 1px solid #c8e0d5; white-space: nowrap; line-height: 1.4;
}
.crw-tag-roles { background: #f5f5f5; color: #555; border-color: #dedede; }

/* ── ARROW ── */
.crw-arrow-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f0f7f4; border: 1.5px solid #c8e0d5;
    display: flex; align-items: center; justify-content: center;
    color: #2d7a5e; transition: all 0.2s; flex-shrink: 0;
}
.crw-card:hover .crw-arrow-btn { background: #1e5c42; color: #fff; border-color: #1e5c42; }

/* ── EMPTY ── */
.crw-empty { text-align: center; padding: 40px 20px; color: #8aab9c; font-size: 14px; }

/* ── PAGINATION ── */
.crw-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; margin-top: 28px; flex-wrap: wrap;
}
.crw-page-btn {
    min-width: 38px; height: 38px; padding: 0 10px;
    border-radius: 8px; border: 1.5px solid #c5d5cd;
    background: transparent; color: #4a6b5e;
    font-family: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.crw-page-btn:hover:not(:disabled):not(.active) { background: #e2ede8; border-color: #2d7a5e; color: #1a4a38; }
.crw-page-btn.active { background: #1e5c42; border-color: #1e5c42; color: #fff; cursor: default; }
.crw-page-btn:disabled { opacity: .4; cursor: default; }
.crw-page-btn.crw-prev-btn, .crw-page-btn.crw-next-btn { padding: 0 16px; font-size: 13px; }
.crw-dots { color: #8aab9c; padding: 0 2px; line-height: 38px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .crw-card { flex-direction: column; align-items: flex-start; padding: 16px; }
    .crw-card-right { justify-content: flex-start; width: 100%; }
    .crw-arrow-btn { display: none; }
    .crw-search-btn { padding: 9px 14px; font-size: 12px; }
}
