/* Nerd-Pastell Latest Posts */

.widget:has(.nplp-card),
.pastel-window:has(.nplp-card) {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.widget:has(.nplp-card) > .window-title,
.pastel-window:has(.nplp-card) > .window-title {
    display: none !important;
}

.pastel-window:has(.nplp-card) > *,
.widget:has(.nplp-card) > * {
    margin-inline: 0 !important;
}

.sidebar .widget:has(.nplp-card),
.sidebar .pastel-window:has(.nplp-card) {
    width: 100% !important;
}

.nplp-card {
    width: 100%;
    overflow: hidden;
    border: 2px solid #d8c8f3;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px rgba(100, 78, 160, 0.16);
}

.nplp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    color: #fff;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #9f82e8, #c4a9f7);
}

.nplp-body {
    position: relative;
    padding: 20px 22px 22px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 120, 173, 0.18), transparent 26%),
        radial-gradient(circle at 82% 30%, rgba(111, 220, 207, 0.16), transparent 24%),
        radial-gradient(circle at 60% 92%, rgba(169, 139, 232, 0.14), transparent 28%),
        linear-gradient(180deg, #fffafe 0%, #fff7fb 100%);
}

.nplp-body::before {
    position: absolute;
    inset: 12px;
    content: "";
    border-radius: 18px;
    background-image:
        radial-gradient(circle, rgba(255, 209, 102, 0.58) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 120, 173, 0.36) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(111, 220, 207, 0.38) 0 1px, transparent 2px);
    background-size: 68px 68px, 94px 94px, 120px 120px;
    background-position: 10px 12px, 32px 48px, 70px 20px;
    opacity: 0.55;
    pointer-events: none;
}

.nplp-list,
.nplp-twinkle {
    position: relative;
    z-index: 1;
}

.nplp-list {
    display: grid;
    gap: 16px;
}

.nplp-item {
    margin: 0;
}

.nplp-item a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 150px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    background: #f6f0ff;
    box-shadow: 0 12px 24px rgba(100, 78, 160, 0.12);
}

.nplp-thumb {
    display: block;
    width: 100%;
    height: 150px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 14px !important;
    transition: transform 220ms ease, filter 220ms ease;
}

.nplp-item a:hover .nplp-thumb {
    transform: scale(1.04);
    filter: brightness(0.92);
}

.nplp-item a::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            180deg,
            rgba(47, 42, 96, 0.08),
            rgba(47, 42, 96, 0.70)
        );
    pointer-events: none;
}

.nplp-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    gap: 4px;
    padding: 18px 20px;
}

.nplp-title {
    color: #fff;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.18;
    text-transform: uppercase;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.55),
         1px -1px 0 rgba(0,0,0,0.55),
        -1px  1px 0 rgba(0,0,0,0.55),
         1px  1px 0 rgba(0,0,0,0.55);
}

.nplp-overlay time {
    color: #fff;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.45),
         1px -1px 0 rgba(0,0,0,0.45),
        -1px  1px 0 rgba(0,0,0,0.45),
         1px  1px 0 rgba(0,0,0,0.45);
}

.nplp-placeholder {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 150px;
    padding: 20px;
    color: #2f2a60;
    text-align: center;
    border: 2px solid #d8c8f3;
    border-radius: 14px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 120, 173, 0.20), transparent 28%),
        linear-gradient(135deg, #fff8fb, #e8fbff);
}

.nplp-placeholder span {
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 1rem;
    font-weight: 800;
}

.nplp-placeholder small {
    color: #ff78ad;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.8rem;
}

.nplp-twinkle {
    position: absolute;
    font-size: 1.1rem;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.nplp-twinkle-1 {
    top: 16px;
    left: 24px;
    color: #ffd166;
}

.nplp-twinkle-2 {
    right: 30px;
    top: 46px;
    color: #ff8fc0;
}

.nplp-twinkle-3 {
    right: 74px;
    bottom: 24px;
    color: #6fdccf;
}
