/* =============================================
   Qscreen-ai — Posts Module
   Brand color: #923DB6
   ============================================= */

.qscreen-posts-container {
    margin: 40px auto;
    color: #333;
    line-height: 1.6;
}

/* Header row: title left, filter right */
.qscreen-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Heading (h1) */
.qscreen-posts-heading {
    font-size: 2.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
}

/* Category description */
.qscreen-posts-cat-desc {
    color: #777;
    font-size: 0.9rem;
    margin: 0 0 12px;
}

/* Divider */
.qscreen-posts-divider {
    border: 0;
    border-top: 1px solid rgba(146, 61, 182, 0.15);
    margin: 0 0 32px !important;
}

/* ---- Year filter dropdown (compact) ---- */
.qscreen-year-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
}

.qscreen-year-filter__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.qscreen-year-filter__select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.qscreen-year-filter__select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid rgba(146, 61, 182, 0.25);
    border-radius: 6px;
    color: #923DB6;
    font-size: 0.82rem;
    font-weight: 600;
    height: 35px;
    padding: 0 28px 0 10px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.qscreen-year-filter__select:hover,
.qscreen-year-filter__select:focus {
    border-color: #923DB6;
}

.qscreen-year-filter__chevron {
    position: absolute;
    right: 7px;
    pointer-events: none;
    color: #923DB6;
    display: flex;
    align-items: center;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .qscreen-posts-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Archive item */
.qscreen-posts-item {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(146, 61, 182, 0.1);
}

.qscreen-posts-item:last-of-type {
    border-bottom: none;
}

/* Date */
.qscreen-posts-item__date {
    font-size: 0.82rem;
    color: #923DB6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 0 0 8px;
}

/* Title */
.qscreen-posts-item__title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.qscreen-posts-item__title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qscreen-posts-item__title a:hover {
    color: #923DB6;
}

/* Excerpt */
.qscreen-posts-item__excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 16px;
}

/* Read more */
.qscreen-posts-item__readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #923DB6;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.qscreen-posts-item__readmore:hover {
    border-color: #923DB6;
    color: #7a2f9a;
}

/* Pagination */
.qscreen-posts-pagination {
    padding-top: 24px;
    border-top: 1px solid rgba(146, 61, 182, 0.15);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.qscreen-posts-pagination a,
.qscreen-posts-pagination span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(146, 61, 182, 0.25);
    text-decoration: none;
    color: #923DB6;
    font-size: 0.88rem;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.qscreen-posts-pagination .current {
    background: #923DB6;
    color: #fff;
    border-color: #923DB6;
    font-weight: 700;
}

.qscreen-posts-pagination a:hover {
    background: rgba(146, 61, 182, 0.08);
    border-color: #923DB6;
}

/* Empty state */
.qscreen-posts-empty {
    color: #888;
    font-size: 0.95rem;
    padding: 32px 0;
    text-align: center;
}