/* === Infinite Posts (PaleQuill) === */

.infinite-posts-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-intro {
    margin-bottom: 40px;
    padding: 20px;
    background: #1e1e1e;
    color: #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

.page-intro .page-content {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* GRID */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
}

/* CARD */
.post-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    transition: transform .3s ease, box-shadow .3s ease;
}
.post-block:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

/* THUMBNAIL */
.post-thumbnail a {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}
.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* TITLE */
.post-header h2 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #80475e;
}
.post-header h2 a {
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
}
.post-header h2 a:hover { color: #d1417c; }

/* EXCERPT + LINK */
.post-excerpt {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}
.read-more-button {
    color: #80475e;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    display: inline-block;
    transition: color .3s ease;
}
.read-more-button:hover {
    color: #d1417c;
    text-decoration: underline;
}

/* SPINNER */
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(0,0,0,0.2);
    border-top: 4px solid var(--accent, #d1417c);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* END MESSAGE */
.no-more-posts {
    text-align: center;
    font-style: italic;
    margin: 20px 0;
    color: var(--ink, #333);
    opacity: 1;
}
