/* /domains/gromadan.com/public_html/css/all_list/post/style.css
   Плоский список постів/питань (/post/, /question/) — без фото-мозаїки
   і без тексту допису. Ліва/права колонки не чіпаємо, тільки центр. */

.all-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.all-list-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
}

.all-list-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow);
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.all-list-tabs::-webkit-scrollbar { display: none; }

.all-list-tab {
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.all-list-tab.active {
    background: var(--primary);
    color: #fff;
}

.all-list-tab:disabled {
    cursor: default;
    opacity: 0.55;
}

.all-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.all-list-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.all-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 36px rgba(15, 76, 129, 0.12);
}

.all-list-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    text-decoration: none;
    color: inherit;
}

.all-list-item-body {
    min-width: 0;
    flex: 1;
}

.all-list-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.all-list-item-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.all-list-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.all-list-stat .icon {
    width: 17px;
    height: 17px;
}

.all-list-item-date {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.all-list-item-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.all-list-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-list-empty {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* === MOBILE === */
@media (max-width: 900px) {
    .all-list-item-link {
        padding: 16px;
        gap: 12px;
    }
    .all-list-item-thumb {
        width: 76px;
        height: 76px;
    }
    .all-list-title {
        font-size: 1.5rem;
    }
}